|
|
|
@ -95,6 +95,10 @@ public class EquPlanServiceImpl implements IEquPlanService {
|
|
|
|
|
equPlan.setUpdateTimeEnd(formatter.format(equPlan.getUpdateTimeArray().get(1)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (equPlan.getLoopStartArray() != null) {
|
|
|
|
|
equPlan.setLoopStart(equPlan.getLoopStartArray().get(0));
|
|
|
|
|
equPlan.setLoopEnd(equPlan.getLoopStartArray().get(1));
|
|
|
|
|
}
|
|
|
|
|
List<EquPlan> equPlans = equPlanMapper.selectEquPlanList(equPlan);
|
|
|
|
|
|
|
|
|
|
//获取当前所选工厂
|
|
|
|
@ -140,8 +144,10 @@ public class EquPlanServiceImpl implements IEquPlanService {
|
|
|
|
|
|
|
|
|
|
equPlan.setPlanId(IdUtils.fastSimpleUUID());
|
|
|
|
|
equPlan.setPlanCode((DateUtils.dateTimeNow(DateUtils.YYYYMMDD) + planSerialNum));
|
|
|
|
|
if (equPlan.getPlanTimeArray().size() > 0) {
|
|
|
|
|
equPlan.setPlanLoopStart(equPlan.getPlanTimeArray().get(0));
|
|
|
|
|
equPlan.setPlanLoopEnd(equPlan.getPlanTimeArray().get(1));
|
|
|
|
|
}
|
|
|
|
|
equPlan.setFactoryCode(factory);
|
|
|
|
|
equPlan.setCreateBy(SecurityContextHolder.getUserName());
|
|
|
|
|
equPlan.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|