|
@@ -8,6 +8,8 @@ import org.jeecg.common.dto.prowork.ProWorkLogicContentAddReqDTO;
|
|
|
import org.jeecg.common.dto.prowork.ProWorkLogicContentListRespDTO;
|
|
|
import org.jeecg.common.dto.prowork.ProWorkLogicRespDTO;
|
|
|
import org.jeecg.common.exception.JeecgBootException;
|
|
|
+import org.jeecg.modules.archives.entity.ProjectManageBusinessOther;
|
|
|
+import org.jeecg.modules.archives.service.ProjectManageBusinessOtherService;
|
|
|
import org.jeecg.modules.prowork.entity.ProWorkLogic;
|
|
|
import org.jeecg.modules.prowork.entity.ProWorkLogicContent;
|
|
|
import org.jeecg.modules.prowork.mapper.ProWorkLogicMapper;
|
|
@@ -34,6 +36,8 @@ public class ProWorkLogicServiceImpl extends ServiceImpl<ProWorkLogicMapper, Pro
|
|
|
private ProWorkLogicContentService proWorkLogicContentService;
|
|
|
@Autowired
|
|
|
private ISysSerialPatternService sysSerialPatternService;
|
|
|
+ @Autowired
|
|
|
+ private ProjectManageBusinessOtherService projectManageBusinessOtherService;
|
|
|
|
|
|
|
|
|
* @desc 新增
|
|
@@ -58,6 +62,11 @@ public class ProWorkLogicServiceImpl extends ServiceImpl<ProWorkLogicMapper, Pro
|
|
|
ProWorkLogicContent proWorkLogicContent = new ProWorkLogicContent(detail);
|
|
|
proWorkLogicContent.setSort(sort++);
|
|
|
proWorkLogicContentService.save(proWorkLogicContent);
|
|
|
+
|
|
|
+
|
|
|
+ projectManageBusinessOtherService.updateById(new ProjectManageBusinessOther(proWorkLogicContent.getProPlanId(),
|
|
|
+ proWorkLogicContent.getId(), proWorkLogicContent.getDuration().toString()));
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -77,6 +86,9 @@ public class ProWorkLogicServiceImpl extends ServiceImpl<ProWorkLogicMapper, Pro
|
|
|
ProWorkLogicContent proWorkLogicContent = new ProWorkLogicContent(detail);
|
|
|
proWorkLogicContent.setSort(sort++);
|
|
|
proWorkLogicContentService.save(proWorkLogicContent);
|
|
|
+
|
|
|
+ projectManageBusinessOtherService.updateById(new ProjectManageBusinessOther(proWorkLogicContent.getProPlanId(),
|
|
|
+ proWorkLogicContent.getId(), proWorkLogicContent.getDuration().toString()));
|
|
|
}
|
|
|
return true;
|
|
|
}
|