|
@@ -84,7 +84,7 @@ public class ContractLogController extends BladeController {
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "contractId", value = "合同段ID"),
|
|
|
@ApiImplicitParam(name = "nodePrimaryKeyId", value = "左侧填报日志节点primaryKeyId"),
|
|
|
- @ApiImplicitParam(name = "time", value = "所选的时间,格式为yyyy-MM-dd")
|
|
|
+ @ApiImplicitParam(name = "time", value = "所选的时间,格式为yyyy-MM-dd、yyyy-MM、yyyy")
|
|
|
})
|
|
|
public R<List<ContractLog>> queryLogByContractIdAndNodePrimaryKeyId(@RequestParam String contractId, @RequestParam String nodePrimaryKeyId, @RequestParam String time){
|
|
|
return R.data(this.contractLogService.list(Wrappers.<ContractLog>lambdaQuery().eq(ContractLog::getContractId, contractId).eq(ContractLog::getWbsNodeId, nodePrimaryKeyId).like(ContractLog::getRecordTime, time)));
|
|
@@ -336,8 +336,13 @@ public class ContractLogController extends BladeController {
|
|
|
}
|
|
|
|
|
|
List<ContractLog> contractLogs = this.contractLogService.getBaseMapper().selectBatchIds(Arrays.asList(task.getFormDataId().split(",")));
|
|
|
+ List<String> fileNameList = new ArrayList<>();
|
|
|
for(ContractLog contractLog : contractLogs){
|
|
|
|
|
|
+ if(!fileNameList.contains(contractLog.getFileName())){
|
|
|
+ fileNameList.add(contractLog.getFileName());
|
|
|
+ }
|
|
|
+
|
|
|
ProjectInfo projectInfo = this.projectClient.queryProjectList(Func.toStrList(contractLog.getProjectId().toString())).get(0);
|
|
|
ContractInfo contractInfo = this.contractClient.getContractById(contractLog.getContractId());
|
|
|
|
|
@@ -354,7 +359,6 @@ public class ContractLogController extends BladeController {
|
|
|
contractLog.getCreateUser(),
|
|
|
//默认未读
|
|
|
0
|
|
|
-
|
|
|
));
|
|
|
|
|
|
//保存操作记录
|
|
@@ -364,11 +368,43 @@ public class ContractLogController extends BladeController {
|
|
|
|
|
|
this.operationLogClient.saveUserOperationLog(9, "台账日志", "日志填报", json);
|
|
|
|
|
|
+
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ try{
|
|
|
+ //获取当前任务的环节审批人
|
|
|
+ List<TaskParallel> linkList = this.taskClient.queryApprovalUserByTaskId(task.getProcessInstanceId());
|
|
|
+ if(linkList != null && linkList.size() > 0){
|
|
|
+ ProjectInfo projectInfo = this.projectClient.queryProjectList(Func.toStrList(task.getProjectId())).get(0);
|
|
|
+ ContractInfo contractInfo = this.contractClient.getContractById(Long.parseLong(task.getContractId()));
|
|
|
+
|
|
|
+ List<MessageWarningVO> messageList = new ArrayList<>();
|
|
|
+ for(String fileName : fileNameList){
|
|
|
+ for(TaskParallel taskParallel : linkList){
|
|
|
+ messageList.add(new MessageWarningVO(
|
|
|
+ Long.parseLong(task.getProjectId()),
|
|
|
+ Long.parseLong(task.getContractId()),
|
|
|
+ //废除通知
|
|
|
+ 3,
|
|
|
+ //内容
|
|
|
+ (StringUtils.isNotEmpty(projectInfo.getProjectAlias()) ? projectInfo.getProjectAlias() : projectInfo.getProjectName()) + contractInfo.getContractName() + "的用户" + AuthUtil.getNickName() + "废除了【" + fileName + "】流程,请及时查看",
|
|
|
+ //推送的目标人
|
|
|
+ Long.parseLong(taskParallel.getTaskUser()),
|
|
|
+ //默认未读
|
|
|
+ 0
|
|
|
+ ));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(messageList.size() > 0){
|
|
|
+ this.messageWarningClient.savePushUserMessageWarning(messageList);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return R.data(true);
|