|
@@ -378,6 +378,7 @@ public class TaskController extends BladeController {
|
|
|
|
|
|
//审批
|
|
//审批
|
|
this.taskService.batchCompleteApprovalTask(taskApprovalVOS);
|
|
this.taskService.batchCompleteApprovalTask(taskApprovalVOS);
|
|
|
|
+ Map<String, TaskApprovalVO> taskApprovalVOMap = taskApprovalVOS.stream().collect(Collectors.toMap(TaskApprovalVO::getTaskId, taskApprovalVO -> taskApprovalVO, (o1, o2) -> o1));
|
|
for (Task task : taskList) {
|
|
for (Task task : taskList) {
|
|
if (batchTaskVO.getFlag().equals("NO")) {
|
|
if (batchTaskVO.getFlag().equals("NO")) {
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
@@ -385,8 +386,9 @@ public class TaskController extends BladeController {
|
|
json.put("operationObjName", "批量废除");
|
|
json.put("operationObjName", "批量废除");
|
|
json.put("projectId", task.getProjectId());
|
|
json.put("projectId", task.getProjectId());
|
|
json.put("contractId", task.getContractId());
|
|
json.put("contractId", task.getContractId());
|
|
|
|
+ json.put("saveData", JSONObject.toJSONString(taskApprovalVOMap.get(task.getId() + "")));
|
|
//保存操作记录
|
|
//保存操作记录
|
|
- this.operationLogClient.saveUserOperationLog(61, "资料撤回废除", "工序资料", json);
|
|
|
|
|
|
+ this.operationLogClient.saveUserOperationLog(61, "资料驳回废除", "工序资料", json);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1235,6 +1237,7 @@ public class TaskController extends BladeController {
|
|
json.put("operationObjName", "批量废除");
|
|
json.put("operationObjName", "批量废除");
|
|
json.put("projectId", task.getProjectId());
|
|
json.put("projectId", task.getProjectId());
|
|
json.put("contractId", task.getContractId());
|
|
json.put("contractId", task.getContractId());
|
|
|
|
+ json.put("saveData", JSONObject.toJSONString(taskApprovalVO));
|
|
//保存操作记录
|
|
//保存操作记录
|
|
this.operationLogClient.saveUserOperationLog(61, "资料驳回废除", "工序资料", json);
|
|
this.operationLogClient.saveUserOperationLog(61, "资料驳回废除", "工序资料", json);
|
|
}
|
|
}
|
|
@@ -1532,6 +1535,17 @@ public class TaskController extends BladeController {
|
|
OperationLog operationLog = min.get();
|
|
OperationLog operationLog = min.get();
|
|
if (operationLog.getOperationType() != null && operationLog.getOperationType() == 61) {
|
|
if (operationLog.getOperationType() != null && operationLog.getOperationType() == 61) {
|
|
businessTaskPageVO.setEVisaStatus("驳回成功:"+operationLog.getCreateUserName()+"-"+operationLog.getCreateTime());
|
|
businessTaskPageVO.setEVisaStatus("驳回成功:"+operationLog.getCreateUserName()+"-"+operationLog.getCreateTime());
|
|
|
|
+ String saveData = operationLog.getSaveData();
|
|
|
|
+ if (saveData != null && !saveData.isEmpty()) {
|
|
|
|
+ try {
|
|
|
|
+ JSONObject data = JSONObject.parseObject(saveData);
|
|
|
|
+ if (data != null && data.containsKey("comment")) {
|
|
|
|
+ businessTaskPageVO.setEVisaStatus("驳回成功:"+operationLog.getCreateUserName()+"-"+operationLog.getCreateTime() + ";驳回原因:"+data.getString("comment"));
|
|
|
|
+ }
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
} else if (operationLog.getOperationType() != null && operationLog.getOperationType() == 62) {
|
|
} else if (operationLog.getOperationType() != null && operationLog.getOperationType() == 62) {
|
|
businessTaskPageVO.setEVisaStatus("撤回成功:"+operationLog.getCreateUserName()+"-"+operationLog.getCreateTime());
|
|
businessTaskPageVO.setEVisaStatus("撤回成功:"+operationLog.getCreateUserName()+"-"+operationLog.getCreateTime());
|
|
} else {
|
|
} else {
|