|
|
|
|
@ -55,9 +55,7 @@ public class SecondDistributeFlow extends Flow {
|
|
|
|
|
myWork.setWorkState(Work.State.done.name()).setUpdateTime(now); |
|
|
|
|
workService.updateById(myWork); |
|
|
|
|
|
|
|
|
|
List<JSONObject> secondDept = new ArrayList<>(); |
|
|
|
|
JSONObject secondDistributeInfo = JSONObject.of("mainDept", JSONObject.of("id", mainDeptId), |
|
|
|
|
"secondDept", secondDept); |
|
|
|
|
JSONObject secondDistributeInfo = JSONObject.of("mainDept", JSONObject.of("id", mainDeptId)); |
|
|
|
|
if (myWork.getMainDeptFlag()) { |
|
|
|
|
// 下发信件(主责单位)
|
|
|
|
|
workService.saveOrUpdate(mail, RoleEnum.THREE_DEPT_CLASSES.getRoleId(), mainDeptId, now, true, FlowNameEnum.PENDING_SIGN.getName()); |
|
|
|
|
@ -66,7 +64,6 @@ public class SecondDistributeFlow extends Flow {
|
|
|
|
|
workService.saveOrUpdate(mail, RoleEnum.THREE_DEPT_CLASSES.getRoleId(), mainDeptId, now, false, |
|
|
|
|
FlowNameEnum.CO_HANDLING.getName(), |
|
|
|
|
FlowNodeEnum.CO_HANDLING.getKey()); |
|
|
|
|
secondDept.add(JSONObject.of("id", mainDeptId)); |
|
|
|
|
} |
|
|
|
|
Integer secondDeptId1 = data.getInteger("secondDeptId1"); |
|
|
|
|
if (Objects.nonNull(secondDeptId1)) { |
|
|
|
|
@ -74,7 +71,7 @@ public class SecondDistributeFlow extends Flow {
|
|
|
|
|
workService.saveOrUpdate(mail, RoleEnum.THREE_DEPT_CLASSES.getRoleId(), secondDeptId1, now, false, |
|
|
|
|
FlowNameEnum.PENDING_SIGN_CO.getName(), |
|
|
|
|
FlowNodeEnum.CO_HANDLING.getKey()); |
|
|
|
|
secondDept.add(JSONObject.of("id", secondDeptId1)); |
|
|
|
|
secondDistributeInfo.put("secondDept1", JSONObject.of("id", secondDeptId1)); |
|
|
|
|
} |
|
|
|
|
Integer secondDeptId2 = data.getInteger("secondDeptId2"); |
|
|
|
|
if (Objects.nonNull(secondDeptId2)) { |
|
|
|
|
@ -82,7 +79,7 @@ public class SecondDistributeFlow extends Flow {
|
|
|
|
|
workService.saveOrUpdate(mail, RoleEnum.THREE_DEPT_CLASSES.getRoleId(), secondDeptId2, now, false, |
|
|
|
|
FlowNameEnum.PENDING_SIGN_CO.getName(), |
|
|
|
|
FlowNodeEnum.CO_HANDLING.getKey()); |
|
|
|
|
secondDept.add(JSONObject.of("id", secondDeptId1)); |
|
|
|
|
secondDistributeInfo.put("secondDept2", JSONObject.of("id", secondDeptId2)); |
|
|
|
|
} |
|
|
|
|
Flow nextNode = next.get(nextActionKey); |
|
|
|
|
if (myWork.getMainDeptFlag()) { |
|
|
|
|
|