|
|
@ -311,24 +311,20 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
if (itemEntityResult.getUserId().equals(evaluationFormDTO.getUserId()) && itemEntityResult.getEvaluationScore() == null) { |
|
|
|
//内容审核 - start
|
|
|
|
Boolean isConReview = evaluationFormDTO.getIsConReview(); |
|
|
|
String userName = null; |
|
|
|
if(null != SecurityUser.getUser()){ |
|
|
|
userName = SecurityUser.getUser().getUsername(); |
|
|
|
} |
|
|
|
String mobile = null; |
|
|
|
Result<UserDTO> user = userFeignClient.getUserInfoById(evaluationFormDTO.getUserId()); |
|
|
|
if(null != user.getData()){ |
|
|
|
mobile = user.getData().getMobile(); |
|
|
|
} |
|
|
|
// 获取所有上级机构名称和ID拼接
|
|
|
|
ParentAndAllDeptDTO deptDto = adminFeignClient.getParentAndAllDept(SecurityUser.getDeptId()).getData(); |
|
|
|
ParentAndAllDeptDTO deptDto = adminFeignClient.getParentAndAllDept(evaluationFormDTO.getDeptId()).getData(); |
|
|
|
List<String> textList = new ArrayList<>(); |
|
|
|
textList.add(evaluationFormDTO.getEvaluationContent()); |
|
|
|
CheckResultDTO contentResult = CheckDataUtils.checkContent(textList); |
|
|
|
if (!isConReview && (contentResult != null && !contentResult.getAllPass())) { |
|
|
|
//组装要保存的信息
|
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(evaluationFormDTO.getUserId(), |
|
|
|
userName,CheckDataUtils.cate_two , CheckDataUtils.decision_one, |
|
|
|
evaluationFormDTO.getUserName(),CheckDataUtils.cate_two , CheckDataUtils.decision_one, |
|
|
|
ModuleName.ITEM_SATISFACTION.getCode(), textList,null, null,contentResult, |
|
|
|
null,null,mobile,"0",deptDto); |
|
|
|
contentSecurityFeign.insertViolationsRecord(record); |
|
|
@ -348,7 +344,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
//接口异常,保存至待审核信息
|
|
|
|
if(contentResult == null && !isConReview) { |
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(evaluationFormDTO.getUserId(), |
|
|
|
userName, CheckDataUtils.cate_two, null,ModuleName.ITEM_SATISFACTION.getCode(), textList, |
|
|
|
evaluationFormDTO.getUserName(), CheckDataUtils.cate_two, null,ModuleName.ITEM_SATISFACTION.getCode(), textList, |
|
|
|
null, itemEntity.getId(),null,null, null,mobile,"1",deptDto); |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
@ -364,7 +360,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
if (CheckDataUtils.review.equals(twoTypes.getSuggestion())) { |
|
|
|
//组装要保存的信息
|
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(evaluationFormDTO.getUserId(), |
|
|
|
userName, CheckDataUtils.cate_two, null, ModuleName.ITEM_SATISFACTION.getCode(), textList, |
|
|
|
evaluationFormDTO.getUserName(), CheckDataUtils.cate_two, null, ModuleName.ITEM_SATISFACTION.getCode(), textList, |
|
|
|
null,itemEntity.getId(), null,null,twoTypes,mobile,"0",deptDto); |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
|