|
@@ -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<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;
|
|
|
- }
|
|
|
+// 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 (!baseinfos.isEmpty()) {
|
|
|
+// service.saveTmpTaskBussinessBaseInfos(tmpTaskBussinessinfo, baseinfos);
|
|
|
+// }
|
|
|
if (!tmpTaskBussinessdetails.isEmpty()) {
|
|
|
service.saveTmpTaskBussinessdetails(tmpTaskBussinessinfo, tmpTaskBussinessdetails);
|
|
|
}
|
|
@@ -150,8 +150,8 @@ public class WorkFlow0001Service extends AWorkFlowService {
|
|
|
// delete from sys_input_suptaskrun_taskallstatus where term = '' and taskCode = ''
|
|
|
// insert into sys_input_suptaskrun_taskallstatus(term,termDT,taskCode,isover) values('','','','0')
|
|
|
|
|
|
- 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("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 + "'");
|
|
|
+// DBExecutor.doModify("delete from sys_input_suptaskrun_taskallstatus where term = '" + term + "' and taskCode = '" + taskCode + "'");
|
|
|
|
|
|
// String counts = DBExecutor.doQuery("select count(1) from sys_input_suptaskrun_taskallstatus where term = '" + term + "' and isover = '0'");
|
|
|
// if ("0".equals(counts)) {
|
|
@@ -305,7 +305,7 @@ public class WorkFlow0001Service extends AWorkFlowService {
|
|
|
service.flowDataComplete(taskBussinessInfo);
|
|
|
;
|
|
|
// update sys_input_suptaskrun_taskallstatus set isover = '1' where term = '' and taskCode = ''
|
|
|
- DBExecutor.doModify("update sys_input_suptaskrun_taskallstatus set isover = '1' where term = '" + businfo.getTerm() + "' and taskCode = '" + businfo.getTaskCode() + "'");
|
|
|
+// DBExecutor.doModify("update sys_input_suptaskrun_taskallstatus set isover = '1' where term = '" + businfo.getTerm() + "' and taskCode = '" + businfo.getTaskCode() + "'");
|
|
|
LOG.debug("流程:{},终审完成", businessinsid);
|
|
|
|
|
|
// new Thread(new Runnable() {
|