|
@@ -2006,9 +2006,15 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
if (!StringUtils.isEmpty(planStartDate)) {
|
|
|
p.setPlanStartDate(LocalDate.parse(planStartDate));
|
|
|
+ } else if (oldProject.getPlanStartDate() != null){
|
|
|
+ //置空项目开始日期
|
|
|
+ projectMapper.updateProjectStartDateToNull(id);
|
|
|
}
|
|
|
if (!StringUtils.isEmpty(planEndDate)) {
|
|
|
p.setPlanEndDate(LocalDate.parse(planEndDate));
|
|
|
+ } else if (oldProject.getPlanEndDate() != null){
|
|
|
+ //置空项目结束日期
|
|
|
+ projectMapper.updateProjectEndDateToNull(id);
|
|
|
}
|
|
|
if (customerId != null && customerId != 0) {
|
|
|
p.setCustomerName(customerInfoMapper.selectById(customerId).getCustomerName());
|