|
|
@ -337,13 +337,6 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
contentSecurityFeign.insertViolationsRecord(record); |
|
|
|
return new Result().error(CheckDataUtils.violations_message); |
|
|
|
} |
|
|
|
//接口异常,保存至待审核信息
|
|
|
|
if(contentResult == null) { |
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(evaluationFormDTO.getUserId(), |
|
|
|
userName, CheckDataUtils.cate_two, null,ModuleName.ITEM_SATISFACTION.getCode(), textList, |
|
|
|
null, null,null,null, null,mobile,"1"); |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
|
|
|
|
|
ItemEntity itemEntity = new ItemEntity(); |
|
|
|
itemEntity.setId(evaluationFormDTO.getItemId()); |
|
|
@ -352,8 +345,15 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
itemEntity.setEvaluationTime(new Date()); |
|
|
|
baseDao.updateById(itemEntity); |
|
|
|
|
|
|
|
//接口异常,保存至待审核信息
|
|
|
|
if(contentResult == null) { |
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(evaluationFormDTO.getUserId(), |
|
|
|
userName, CheckDataUtils.cate_two, null,ModuleName.ITEM_SATISFACTION.getCode(), textList, |
|
|
|
null, itemEntity.getId(),null,null, null,mobile,"1"); |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
|
|
|
|
|
//判断是否为待审核
|
|
|
|
if (contentResult != null) { |
|
|
|
CheckResultMessageDTO twoTypes = CheckDataUtils.checkTwoTypes(contentResult, null); |
|
|
|
if (CheckDataUtils.review.equals(twoTypes.getSuggestion())) { |
|
|
|
//组装要保存的信息
|
|
|
@ -362,7 +362,6 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
null,itemEntity.getId(), null,null,twoTypes,mobile,"0"); |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
|
}//如果是审核状态是pass,不作任何处理
|
|
|
|
return new Result(); |
|
|
|
} else { |
|
|
|
return new Result().error("您无法评价"); |
|
|
|