|
|
@ -880,6 +880,16 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
itemEntity.setEvaluationScore(evaluationFormDTO.getEvaluationScore()); |
|
|
itemEntity.setEvaluationScore(evaluationFormDTO.getEvaluationScore()); |
|
|
itemEntity.setEvaluationContent(evaluationFormDTO.getEvaluationContent()); |
|
|
itemEntity.setEvaluationContent(evaluationFormDTO.getEvaluationContent()); |
|
|
itemEntity.setEvaluationTime(new Date()); |
|
|
itemEntity.setEvaluationTime(new Date()); |
|
|
|
|
|
//2022.10.24 评价接口增加第一次评价不管第二次为满意时不管为不满意时将数据推到难点堵点的逻辑
|
|
|
|
|
|
if(evaluationFormDTO.getEvaluationScore()==0){ |
|
|
|
|
|
QueryWrapper<ItemCommentFeedbackEntity> wrapper = new QueryWrapper<>(); |
|
|
|
|
|
wrapper.eq("item_id", evaluationFormDTO.getItemId()); |
|
|
|
|
|
wrapper.eq("del_flag", "0"); |
|
|
|
|
|
List<ItemCommentFeedbackEntity> iEntityList = itemCommentFeedbackDao.selectList(wrapper); |
|
|
|
|
|
if (CollUtil.isNotEmpty(iEntityList)) { |
|
|
|
|
|
itemEntity.setIsDifficulty("1"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
baseDao.updateById(itemEntity); |
|
|
baseDao.updateById(itemEntity); |
|
|
|
|
|
|
|
|
//内容审核接口异常,保存至待审核信息
|
|
|
//内容审核接口异常,保存至待审核信息
|
|
|
|