|
|
@@ -5633,17 +5633,29 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
continue;
|
|
|
}
|
|
|
//校验签字注师
|
|
|
- String signatureAnnotator1 = iUserApi.getUserIdByName(item.getSignatureAnnotator1());
|
|
|
- String signatureAnnotator2 = iUserApi.getUserIdByName(item.getSignatureAnnotator2());
|
|
|
+ String signatureAnnotator1 = iUserApi.getUserIdByUserName(item.getSignatureAnnotator1());
|
|
|
+ String signatureAnnotator2 = iUserApi.getUserIdByUserName(item.getSignatureAnnotator2());
|
|
|
//处理签字注师信息
|
|
|
if (StringUtils.isBlank(signatureAnnotator1) && StringUtils.isBlank(signatureAnnotator2)) {
|
|
|
result.add("第" + (actualIndex) + "条,报告名为" + item.getReportName() + "的数据存在以下问题:签字注师1和签字注师2至少填写一个");
|
|
|
continue;
|
|
|
} else {
|
|
|
+ UserDTO userCountDto = iUserApi.getCount(signatureAnnotator1);
|
|
|
+ if (userCountDto.getAccountantUserCount() >= 100 && userCountDto.getAccountantUserFlag() == 1) {
|
|
|
+ if(!"王真".equals(userCountDto.getName())){
|
|
|
+ result.add("第" + (actualIndex) + "条,报告名为" + item.getReportName() + "的数据存在以下问题:签字注师1被选次数大于100次");
|
|
|
+ continue;
|
|
|
+ }else{
|
|
|
+ if(userCountDto.getAccountantUserCount() >= 120 ){
|
|
|
+ result.add("第" + (actualIndex) + "条,报告名为" + item.getReportName() + "的数据存在以下问题:签字注师1王真的被选次数已达120次");
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
item.setSignatureAnnotator1(signatureAnnotator1);
|
|
|
item.setSignatureAnnotator2(signatureAnnotator2);
|
|
|
}
|
|
|
- String nextAssignee = iUserApi.getUserIdByName(item.getNextAssignee());
|
|
|
+ String nextAssignee = iUserApi.getUserIdByUserName(item.getNextAssignee());
|
|
|
if (StringUtils.isBlank(nextAssignee)) {
|
|
|
result.add("第" + (actualIndex) + "条,报告名为" + item.getReportName() + "的数据存在以下问题:未找到下一节点审核人的信息");
|
|
|
continue;
|
|
|
@@ -5654,7 +5666,7 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
if (StringUtils.isBlank(item.getRealCreate())) {
|
|
|
item.setRealCreate(userDTO.getId());
|
|
|
} else {
|
|
|
- String userId = iUserApi.getUserIdByName(item.getRealCreate());
|
|
|
+ String userId = iUserApi.getUserIdByUserName(item.getRealCreate());
|
|
|
if (StringUtils.isNotBlank(userId)) {
|
|
|
item.setRealCreate(userId);
|
|
|
} else {
|
|
|
@@ -5692,7 +5704,7 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
String projectResult = cwProjectRecordsService.importProjectRecords(cwProjectRecordsDTOS);
|
|
|
|
|
|
if (StringUtils.isNotBlank(projectResult)) {
|
|
|
- result.add("第" + (actualIndex) + "条,报告名为" + item.getReportName() + "的数据存在以下问题:" + projectResult);
|
|
|
+ result.add("第" + (actualIndex) + "条,报告名为" + item.getReportName() + "的数据存在以下问题:该项目信息未登记,请先登记,或在表格内将对应项目信息进行补充完整后再次上传" );
|
|
|
continue;
|
|
|
}else{
|
|
|
LambdaQueryWrapper<CwProjectRecords> projectWrapper = new LambdaQueryWrapper<>();
|