|
|
@ -4290,11 +4290,27 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
if (null == entity) { |
|
|
if (null == entity) { |
|
|
throw new RenException("获取项目数据失败,项目Id->" + itemId); |
|
|
throw new RenException("获取项目数据失败,项目Id->" + itemId); |
|
|
} |
|
|
} |
|
|
//2.判断是发展、执法诉求的不作处理(这两个诉求项目必须走诉求初验终验逻辑);判断是已结案的不做处理(第二次可以评价了,没超过24小时用户评价了,此时就是已结案了)
|
|
|
//2.判断是已结案的不做处理(第二次可以评价了,没超过24小时用户评价了,此时就是已结案了)
|
|
|
if (!"0".equals(entity.getPeopleFlag()) || "10".equals(entity.getItemState())) { |
|
|
if ("10".equals(entity.getItemState())) { |
|
|
logger.info("当前诉求不做结案处理,原因:诉求分类PeopleFlag->" + entity.getPeopleFlag() + ",诉求状态itemState->" + entity.getItemState()); |
|
|
|
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
//2.判断是发展、执法诉求的(这两个诉求项目必须走诉求初验终验逻辑)或者是评价了不满意的民生诉求的需要走市里的初验申请
|
|
|
|
|
|
if (!"0".equals(entity.getPeopleFlag()) || entity.getEvaluationScore() == 0) { |
|
|
|
|
|
//logger.info("当前诉求不做结案处理,原因:诉求分类PeopleFlag->" + entity.getPeopleFlag() + ",诉求状态itemState->" + entity.getItemState());
|
|
|
|
|
|
ItemHandleProcessEntity processEntity = new ItemHandleProcessEntity(); |
|
|
|
|
|
processEntity.setId(UUID.randomUUID().toString().replaceAll("-", "")); |
|
|
|
|
|
processEntity.setItemId(itemId); |
|
|
|
|
|
processEntity.setState(ItemGridPlatformHandleStatusEnum.HANDLE_CYSQ.getValue()); |
|
|
|
|
|
processEntity.setHandleAdvice("诉求已上报市平台初验申请"); |
|
|
|
|
|
processEntity.setOutHandleAdvice("初验申请"); |
|
|
|
|
|
itemHandleProcessService.insert(processEntity); |
|
|
|
|
|
//初验申请
|
|
|
|
|
|
ItemHandleProcessDTO dto = new ItemHandleProcessDTO(); |
|
|
|
|
|
dto.setId(processEntity.getId()); |
|
|
|
|
|
pushToCityGridService.earlyInspectionApply(dto); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//3.判断评价结果,未评价的赋值为满意并且结案给网格化平台推送结果;已评价的结果为满意直接结案给网格化推结果,不满意直接给网格化推结果
|
|
|
//3.判断评价结果,未评价的赋值为满意并且结案给网格化平台推送结果;已评价的结果为满意直接结案给网格化推结果,不满意直接给网格化推结果
|
|
|
ItemHandleProcessDTO processDTO = new ItemHandleProcessDTO(); |
|
|
ItemHandleProcessDTO processDTO = new ItemHandleProcessDTO(); |
|
|
if (null == entity.getEvaluationScore() || 0 != entity.getEvaluationScore()) { |
|
|
if (null == entity.getEvaluationScore() || 0 != entity.getEvaluationScore()) { |
|
|
|