|
|
|
|
@ -110,7 +110,7 @@ public class PlanServiceImpl extends BaseServiceImpl<PlanMapper, PlanEntity> imp
|
|
|
|
|
boolean modify = plan.getId() != null; |
|
|
|
|
PlanEntity entity = BeanUtil.copy(plan, PlanEntity.class); |
|
|
|
|
if (StringUtil.isBlank(plan.getName())) { |
|
|
|
|
String nameSuffix = "0".equals(plan.getAutoVideo()) ? "日常检查" : "维护养护"; |
|
|
|
|
String nameSuffix = "0".equals(plan.getAutoVideo()) ? "日常检查" : "维修养护"; |
|
|
|
|
entity.setName(LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")) + nameSuffix); |
|
|
|
|
} |
|
|
|
|
//不管是新增还是修改成功后都为待提交状态
|
|
|
|
|
|