|
@@ -15,6 +15,7 @@ import javax.validation.Valid;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.springblade.business.entity.*;
|
|
import org.springblade.business.entity.*;
|
|
|
|
+import org.springblade.business.feign.MessageWarningClient;
|
|
import org.springblade.business.feign.OperationLogClient;
|
|
import org.springblade.business.feign.OperationLogClient;
|
|
import org.springblade.business.feign.RecycleBinClient;
|
|
import org.springblade.business.feign.RecycleBinClient;
|
|
import org.springblade.business.feign.TaskClient;
|
|
import org.springblade.business.feign.TaskClient;
|
|
@@ -98,6 +99,8 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
|
|
|
private final NewIOSSClient newIOSSClient;
|
|
private final NewIOSSClient newIOSSClient;
|
|
|
|
|
|
|
|
+ private final MessageWarningClient messageWarningClient;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 初始化合同段导图树
|
|
* 初始化合同段导图树
|
|
*/
|
|
*/
|
|
@@ -550,6 +553,8 @@ public class InformationWriteQueryController extends BladeController {
|
|
wrapper.set(InformationQuery::getStatus, 0);
|
|
wrapper.set(InformationQuery::getStatus, 0);
|
|
//将电签的pdf路径置空
|
|
//将电签的pdf路径置空
|
|
wrapper.set(InformationQuery::getEVisaPdfUrl, null);
|
|
wrapper.set(InformationQuery::getEVisaPdfUrl, null);
|
|
|
|
+ //将上报批次置空
|
|
|
|
+ wrapper.set(InformationQuery::getReportNumber, null);
|
|
|
|
|
|
this.informationQueryService.update(wrapper.in(InformationQuery::getId, Arrays.asList(task.getFormDataId().split(","))));
|
|
this.informationQueryService.update(wrapper.in(InformationQuery::getId, Arrays.asList(task.getFormDataId().split(","))));
|
|
}
|
|
}
|
|
@@ -558,10 +563,40 @@ public class InformationWriteQueryController extends BladeController {
|
|
String title = "批量废除";
|
|
String title = "批量废除";
|
|
if(queries != null && queries.size() > 0){
|
|
if(queries != null && queries.size() > 0){
|
|
title = queries.stream().map(InformationQuery::getName).distinct().collect(Collectors.joining());
|
|
title = queries.stream().map(InformationQuery::getName).distinct().collect(Collectors.joining());
|
|
|
|
+
|
|
|
|
+ for(InformationQuery query : queries){
|
|
|
|
+ if(StringUtils.isNotEmpty(query.getFileUserIdAndName())){
|
|
|
|
+ String[] userArray = query.getFileUserIdAndName().split(",");
|
|
|
|
+ for(String str : userArray){
|
|
|
|
+ String[] strs = str.split("-");
|
|
|
|
+ try{
|
|
|
|
+ //保存通知记录
|
|
|
|
+ this.messageWarningClient.savePushUserMessageWarning(
|
|
|
|
+ new MessageWarningVO(
|
|
|
|
+ query.getProjectId(),
|
|
|
|
+ query.getContractId(),
|
|
|
|
+ //废除通知
|
|
|
|
+ 3,
|
|
|
|
+ //内容
|
|
|
|
+ AuthUtil.getNickName() + "废除了【" + query.getName() + "】",
|
|
|
|
+ //推送的目标人
|
|
|
|
+ Long.parseLong(strs[0]),
|
|
|
|
+ //默认未读
|
|
|
|
+ 0
|
|
|
|
+ ));
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
//保存操作记录
|
|
//保存操作记录
|
|
- this.operationLogClient.saveUserOperationLog(6, "资料管理", "工序资料", task.getFormDataId(), title);
|
|
|
|
|
|
+ this.operationLogClient.saveUserOperationLog(6, "资料管理", "工序资料", Func.toStrList(task.getFormDataId()), title);
|
|
}
|
|
}
|
|
return R.data(true, "废除成功");
|
|
return R.data(true, "废除成功");
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
@@ -601,7 +636,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
StringBuilder stringBuilder = new StringBuilder();
|
|
StringBuilder stringBuilder = new StringBuilder();
|
|
taskUsers.forEach(users -> stringBuilder.append(",").append(users.getTaskUser()).append("-").append(users.getTaskUserName()));
|
|
taskUsers.forEach(users -> stringBuilder.append(",").append(users.getTaskUser()).append("-").append(users.getTaskUserName()));
|
|
//修改记录
|
|
//修改记录
|
|
- this.informationQueryService.update(Wrappers.<InformationQuery>lambdaUpdate().set(InformationQuery::getStatus, 1).set(InformationQuery::getAuditUserIdAndName, stringBuilder.substring(1)).eq(InformationQuery::getId, id));
|
|
|
|
|
|
+ this.informationQueryService.update(Wrappers.<InformationQuery>lambdaUpdate().set(InformationQuery::getReportNumber, taskVO.getBatch()).set(InformationQuery::getStatus, 1).set(InformationQuery::getAuditUserIdAndName, stringBuilder.substring(1)).eq(InformationQuery::getId, id));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -617,7 +652,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
}
|
|
}
|
|
|
|
|
|
//保存操作记录
|
|
//保存操作记录
|
|
- this.operationLogClient.saveUserOperationLog(5, "资料管理", "工序资料", startTaskVO.getIds(), title);
|
|
|
|
|
|
+ this.operationLogClient.saveUserOperationLog(5, "资料管理", "工序资料", Func.toStrList(startTaskVO.getIds()), title);
|
|
return R.data(true);
|
|
return R.data(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1070,7 +1105,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
WbsTreeContract queries = this.wbsTreeContractClient.getContractWbsTreeByPrimaryKeyId(pKeyId);
|
|
WbsTreeContract queries = this.wbsTreeContractClient.getContractWbsTreeByPrimaryKeyId(pKeyId);
|
|
|
|
|
|
//保存操作记录
|
|
//保存操作记录
|
|
- this.operationLogClient.saveUserOperationLog(3, "资料管理", "工序资料", pKeyId, StringUtils.isNotEmpty(queries.getFullName()) ? queries.getFullName() : queries.getDeptName());
|
|
|
|
|
|
+ this.operationLogClient.saveUserOperationLog(3, "资料管理", "工序资料", Func.toStrList(pKeyId.toString()), StringUtils.isNotEmpty(queries.getFullName()) ? queries.getFullName() : queries.getDeptName());
|
|
return R.data(this.wbsTreeContractClient.updateContractNodeParameter(node));
|
|
return R.data(this.wbsTreeContractClient.updateContractNodeParameter(node));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1149,11 +1184,12 @@ public class InformationWriteQueryController extends BladeController {
|
|
}
|
|
}
|
|
|
|
|
|
//保存操作记录
|
|
//保存操作记录
|
|
- this.operationLogClient.saveUserOperationLog(4, "资料管理", "工序资料", ids, nodeName);
|
|
|
|
|
|
+ List<String> idArray = JSONArray.parseArray(JSONObject.toJSONString(ids.split(",")), String.class);
|
|
|
|
+ this.operationLogClient.saveUserOperationLog(4, "资料管理", "工序资料", idArray, nodeName);
|
|
//保存进回收站
|
|
//保存进回收站
|
|
- this.recycleBinClient.saveDelBusinessData(ids, removeNode.getDeptName(), 2, parentNodeName.toString(), removeNode.getProjectId(), removeNode.getContractId());
|
|
|
|
|
|
+ this.recycleBinClient.saveDelBusinessData(idArray, StringUtils.isNotEmpty(removeNode.getFullName()) ? removeNode.getFullName() : removeNode.getDeptName(), 2, parentNodeName.toString(), removeNode.getProjectId(), removeNode.getContractId());
|
|
|
|
|
|
- return R.data(this.wbsTreeContractClient.removeContractTreeNode(Func.toStrList(ids)));
|
|
|
|
|
|
+ return R.data(this.wbsTreeContractClient.removeContractTreeNode(idArray));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1339,7 +1375,7 @@ public class InformationWriteQueryController extends BladeController {
|
|
try{
|
|
try{
|
|
//保存操作记录
|
|
//保存操作记录
|
|
this.operationLogClient.saveUserOperationLog(operationType, "资料管理", "工序资料",
|
|
this.operationLogClient.saveUserOperationLog(operationType, "资料管理", "工序资料",
|
|
- String.join(",", JSONArray.parseArray(JSONObject.toJSONString(saveList.stream().map(WbsTreeContract::getPKeyId).distinct().collect(Collectors.toList())), String.class)),
|
|
|
|
|
|
+ JSONArray.parseArray(JSONObject.toJSONString(saveList.stream().map(WbsTreeContract::getPKeyId).distinct().collect(Collectors.toList())), String.class),
|
|
saveList.stream().map(wbs -> StringUtils.isNotEmpty(wbs.getFullName()) ? wbs.getFullName() : wbs.getDeptName()).collect(Collectors.joining()));
|
|
saveList.stream().map(wbs -> StringUtils.isNotEmpty(wbs.getFullName()) ? wbs.getFullName() : wbs.getDeptName()).collect(Collectors.joining()));
|
|
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|