|
@@ -78,13 +78,13 @@ public class WorkFlow0001Service extends AWorkFlowService {
|
|
|
tmpTaskBussinessinfo.setTaskStatus("01");
|
|
|
service.insertBussinessInfo(tmpTaskBussinessinfo);
|
|
|
|
|
|
- List<DictTree> nounTrees = nounManageService.getNounTree("TMP-INDEX-NOUN");
|
|
|
- Map<String, List<DictTree>> nounMap = new HashMap<>();
|
|
|
- for (int i = 0; i < nounTrees.get(0).getChildren().size(); i++) {
|
|
|
- nounMap.put(nounTrees.get(0).getChildren().get(i).getKey(), nounTrees.get(0).getChildren().get(i).getChildren());
|
|
|
- }
|
|
|
- List<TmpTaskBussinessBaseinfo> baseinfos = new ArrayList<>();
|
|
|
- TmpTaskBussinessBaseinfo baseinfo;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
List<TmpConfSupTaskRelatedinfo> tmpConfSupTaskRelatedinfos = confService.geTaskRelatedinfos(taskCode);
|
|
@@ -103,26 +103,26 @@ public class WorkFlow0001Service extends AWorkFlowService {
|
|
|
service.saveTaskTmprelas(taskbussinessid, tmprelas);
|
|
|
|
|
|
for (TmpConfSupTaskRelatedinfo tmpConfSupTaskRelatedinfo : tmpConfSupTaskRelatedinfos) {
|
|
|
- if (nounMap.containsKey(tmpConfSupTaskRelatedinfo.getTmpcode())) {
|
|
|
- List<DictTree> trees = nounMap.get(tmpConfSupTaskRelatedinfo.getTmpcode());
|
|
|
- for (DictTree tree : trees) {
|
|
|
- IndexTmpConfBaseInfo index = confService.getIndexByIndexCode(tree.getValue());
|
|
|
- baseinfo = new TmpTaskBussinessBaseinfo();
|
|
|
- baseinfo.setTaskbussinessid(taskbussinessid);
|
|
|
- baseinfo.setTaskCode(taskCode);
|
|
|
- baseinfo.setIndexcode(index.getIndexcode());
|
|
|
- baseinfo.setIndexname(index.getIndexname());
|
|
|
- baseinfo.setOeorLevel(index.getOeorlevel());
|
|
|
- baseinfo.setDeptcode(index.getDeptcode());
|
|
|
- baseinfo.setBaorfiChanges(index.getBaorfichanges());
|
|
|
- baseinfo.setRaftNextstage(index.getRaftnextstage());
|
|
|
- baseinfo.setCpValue(index.getCpvalue());
|
|
|
- baseinfo.setCpvalTypeName(index.getCpvalTypeName());
|
|
|
- baseinfo.setDict(index.getDict());
|
|
|
- baseinfos.add(baseinfo);
|
|
|
- }
|
|
|
- continue;
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
TmpConfBaseInfo tmpConfBaseInfo = confService
|
|
@@ -139,9 +139,9 @@ public class WorkFlow0001Service extends AWorkFlowService {
|
|
|
TmpTaskUtil.getTmpTableName(tmpConfSupTaskRelatedinfo.getTmpcode(), taskbussinessid));
|
|
|
tmpTaskBussinessdetails.add(bussinessdetail);
|
|
|
}
|
|
|
- if (!baseinfos.isEmpty()) {
|
|
|
- service.saveTmpTaskBussinessBaseInfos(tmpTaskBussinessinfo, baseinfos);
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if (!tmpTaskBussinessdetails.isEmpty()) {
|
|
|
service.saveTmpTaskBussinessdetails(tmpTaskBussinessinfo, tmpTaskBussinessdetails);
|
|
|
}
|
|
@@ -150,8 +150,8 @@ public class WorkFlow0001Service extends AWorkFlowService {
|
|
|
|
|
|
|
|
|
|
|
|
- DBExecutor.doModify("delete from sys_input_suptaskrun_taskallstatus where term = '" + term + "' and taskCode = '" + taskCode + "'");
|
|
|
- DBExecutor.doModify("insert into sys_input_suptaskrun_taskallstatus(term,termDT,taskCode,isover) values('" + term + "','" + TmpTaskUtil.getThisMonthDateByTerm(term) + "','" + taskCode + "','0')");
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
DBExecutor.doModify("commit");
|
|
@@ -225,7 +225,7 @@ public class WorkFlow0001Service extends AWorkFlowService {
|
|
|
String term = DBExecutor.doQuery("select term from rmc_imput_suptaskrun_bussinessinfo where taskbussinessid='" + taskbussinessid + "'");
|
|
|
LOG.debug("流程:{},被撤销,删除所有数据", businessinsid);
|
|
|
service.deleteFlowAllInfo(businessinsid);
|
|
|
- DBExecutor.doModify("delete from sys_input_suptaskrun_taskallstatus where term = '" + term + "' and taskCode = '" + taskCode + "'");
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -305,7 +305,7 @@ public class WorkFlow0001Service extends AWorkFlowService {
|
|
|
service.flowDataComplete(taskBussinessInfo);
|
|
|
;
|
|
|
|
|
|
- DBExecutor.doModify("update sys_input_suptaskrun_taskallstatus set isover = '1' where term = '" + businfo.getTerm() + "' and taskCode = '" + businfo.getTaskCode() + "'");
|
|
|
+
|
|
|
LOG.debug("流程:{},终审完成", businessinsid);
|
|
|
|
|
|
|