|
|
@ -4284,6 +4284,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void itemClosed(String itemId) { |
|
|
public void itemClosed(String itemId) { |
|
|
|
|
|
logger.info("开始执行结案操作,项目Id->"+itemId); |
|
|
//1.获取项目基础数据
|
|
|
//1.获取项目基础数据
|
|
|
ItemEntity entity = baseDao.selectById(itemId); |
|
|
ItemEntity entity = baseDao.selectById(itemId); |
|
|
if (null == entity) { |
|
|
if (null == entity) { |
|
|
@ -4310,13 +4311,14 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//3.判断评价结果,未评价的赋值为满意并且结案给网格化平台推送结果;已评价的结果为满意直接结案给网格化推结果,不满意直接给网格化推结果
|
|
|
//3.判断评价结果,未评价的赋值为满意并且结案给市平台推送;已评价的结果为满意直接结案给市平台推送
|
|
|
QueryWrapper<ItemCommentFeedbackEntity> wrapper = new QueryWrapper<>(); |
|
|
QueryWrapper<ItemCommentFeedbackEntity> wrapper = new QueryWrapper<>(); |
|
|
wrapper.eq("item_id", itemId); |
|
|
wrapper.eq("item_id", itemId); |
|
|
wrapper.eq("del_flag", "0"); |
|
|
wrapper.eq("del_flag", "0"); |
|
|
List<ItemCommentFeedbackEntity> feedbackEntityList = itemCommentFeedbackDao.selectList(wrapper); |
|
|
List<ItemCommentFeedbackEntity> feedbackEntityList = itemCommentFeedbackDao.selectList(wrapper); |
|
|
ItemHandleProcessDTO processDTO = new ItemHandleProcessDTO(); |
|
|
ItemHandleProcessDTO processDTO = new ItemHandleProcessDTO(); |
|
|
if (null == entity.getEvaluationScore() || 0 != entity.getEvaluationScore() || CollUtil.isNotEmpty(feedbackEntityList)) { |
|
|
if ("0".equals(entity.getPeopleFlag()) && |
|
|
|
|
|
(null == entity.getEvaluationScore() || 0 != entity.getEvaluationScore() || CollUtil.isNotEmpty(feedbackEntityList))) { |
|
|
QueryWrapper<ItemHandleProcessEntity> hWrapper = new QueryWrapper<>(); |
|
|
QueryWrapper<ItemHandleProcessEntity> hWrapper = new QueryWrapper<>(); |
|
|
hWrapper.eq("item_id", itemId); |
|
|
hWrapper.eq("item_id", itemId); |
|
|
hWrapper.eq("state", ItemGridPlatformHandleStatusEnum.HANDLE_XFPJ.getValue()); |
|
|
hWrapper.eq("state", ItemGridPlatformHandleStatusEnum.HANDLE_XFPJ.getValue()); |
|
|
|