|
|
@ -2712,6 +2712,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
wrapper.eq("item_id", itemId); |
|
|
wrapper.eq("item_id", itemId); |
|
|
wrapper.eq("created_by", "网格化平台"); |
|
|
wrapper.eq("created_by", "网格化平台"); |
|
|
wrapper.eq("del_flag", NumConstant.ZERO_STR); |
|
|
wrapper.eq("del_flag", NumConstant.ZERO_STR); |
|
|
|
|
|
// 任何主动在流程表里插入的网格化操作都应该在过滤列表中,为了能够正常拉取网格化流程数据
|
|
|
wrapper.notIn("state", ItemGridPlatformHandleStatusEnum.HANDLE_BH.getValue(), ItemGridPlatformHandleStatusEnum.HANDLE_JA.getValue()); |
|
|
wrapper.notIn("state", ItemGridPlatformHandleStatusEnum.HANDLE_BH.getValue(), ItemGridPlatformHandleStatusEnum.HANDLE_JA.getValue()); |
|
|
wrapper.orderByDesc("created_time"); |
|
|
wrapper.orderByDesc("created_time"); |
|
|
wrapper.last("limit 1"); |
|
|
wrapper.last("limit 1"); |
|
|
@ -2838,9 +2839,14 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
} else if (ItemGridPlatformHandleStatusEnum.HANDLE_ZCZ.getValue() == dto.getState() || ItemGridPlatformHandleStatusEnum.HANDLE_XSSQ.getValue() == dto.getState()) { |
|
|
} else if (ItemGridPlatformHandleStatusEnum.HANDLE_ZCZ.getValue() == dto.getState() || ItemGridPlatformHandleStatusEnum.HANDLE_XSSQ.getValue() == dto.getState()) { |
|
|
pushToCityGridService.again(dto);//再处置、向上申请时判断上个节点是退回则(2.9 退件审核)结果为通过
|
|
|
pushToCityGridService.again(dto);//再处置、向上申请时判断上个节点是退回则(2.9 退件审核)结果为通过
|
|
|
} else if (ItemGridPlatformHandleStatusEnum.HANDLE_DB.getValue() == dto.getState()) { |
|
|
} else if (ItemGridPlatformHandleStatusEnum.HANDLE_DB.getValue() == dto.getState()) { |
|
|
//诉求督办
|
|
|
//诉求督办10.20废弃
|
|
|
pushToCityGridService.appealSupervise(dto); |
|
|
// pushToCityGridService.appealSupervise(dto);
|
|
|
} else if (ItemGridPlatformHandleStatusEnum.HANDLE_XFPJ.getValue() == dto.getState()) { |
|
|
} else if (ItemGridPlatformHandleStatusEnum.HANDLE_XFHC.getValue() == dto.getState()) { |
|
|
|
|
|
//初验申请
|
|
|
|
|
|
pushToCityGridService.earlyInspectionApply(dto); |
|
|
|
|
|
} else if (ItemGridPlatformHandleStatusEnum.HANDLE_HCSB.getValue() == dto.getState()) { |
|
|
|
|
|
//诉求初验
|
|
|
|
|
|
pushToCityGridService.earlyInspection(dto); |
|
|
//诉求终验
|
|
|
//诉求终验
|
|
|
pushToCityGridService.endInspection(dto); |
|
|
pushToCityGridService.endInspection(dto); |
|
|
} else if (ItemGridPlatformHandleStatusEnum.HANDLE_ZF.getValue() == dto.getState()) { |
|
|
} else if (ItemGridPlatformHandleStatusEnum.HANDLE_ZF.getValue() == dto.getState()) { |
|
|
@ -3701,6 +3707,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
return new Result().error("未查到相关事件信息"); |
|
|
return new Result().error("未查到相关事件信息"); |
|
|
} |
|
|
} |
|
|
// 插入项目处理进度表
|
|
|
// 插入项目处理进度表
|
|
|
|
|
|
String firstHandleId = ""; |
|
|
ItemHandleProcessDTO itemHandleProcessDto = new ItemHandleProcessDTO(); |
|
|
ItemHandleProcessDTO itemHandleProcessDto = new ItemHandleProcessDTO(); |
|
|
itemHandleProcessDto.setId(UUID.randomUUID().toString().replaceAll("-", "")); |
|
|
itemHandleProcessDto.setId(UUID.randomUUID().toString().replaceAll("-", "")); |
|
|
itemHandleProcessDto.setItemId(itemPlat.getReferenceId()); |
|
|
itemHandleProcessDto.setItemId(itemPlat.getReferenceId()); |
|
|
@ -3731,17 +3738,6 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
//吹哨
|
|
|
//吹哨
|
|
|
itemHandleProcessDto.setOutHandleAdvice(formDto.getHandleAdvice() + "h_s办理人:" + item.getHandlePeopleName() + ",联系电话:" + item.getHandlePeopleMobile()); |
|
|
itemHandleProcessDto.setOutHandleAdvice(formDto.getHandleAdvice() + "h_s办理人:" + item.getHandlePeopleName() + ",联系电话:" + item.getHandlePeopleMobile()); |
|
|
} else { |
|
|
} else { |
|
|
/* |
|
|
|
|
|
//内容组成:第一个发起结案申请+办理人:XXX+办理电话:XXX。换行(前端处理) 感谢您的支持,“北尚诉办”全程为您服务!
|
|
|
|
|
|
ItemHandleProcessEntity firsthandleProcess = baseDao.selectFirstHandleProcessByItemId(itemPlat.getReferenceId()); |
|
|
|
|
|
// 结案去掉本系统拼接的办理人信息(2022-09-30 修改 wgf)
|
|
|
|
|
|
String handleAdvice = ""; |
|
|
|
|
|
if(StringUtils.isNotBlank(firsthandleProcess.getHandleAdvice())){ |
|
|
|
|
|
handleAdvice = firsthandleProcess.getHandleAdvice(); |
|
|
|
|
|
handleAdvice= handleAdvice.substring(0,handleAdvice.lastIndexOf(" 办理人:")); |
|
|
|
|
|
} |
|
|
|
|
|
itemHandleProcessDto.setOutHandleAdvice(handleAdvice+"h_s办理人:"+item.getHandlePeopleName()+",联系电话:"+item.getHandlePeopleMobile()); |
|
|
|
|
|
*/ |
|
|
|
|
|
//内容组成:第一个发起结案申请+办理人:XXX+办理电话:XXX。换行(前端处理) 感谢您的支持,“北尚诉办”全程为您服务!没有结案申请就取网格化结案状态流程数据
|
|
|
//内容组成:第一个发起结案申请+办理人:XXX+办理电话:XXX。换行(前端处理) 感谢您的支持,“北尚诉办”全程为您服务!没有结案申请就取网格化结案状态流程数据
|
|
|
ItemHandleProcessEntity firsthandleProcess = baseDao.selectFirstHandleProcessByItemId(itemPlat.getReferenceId(), ItemGridPlatformHandleStatusEnum.HANDLE_SQ.getValue()); |
|
|
ItemHandleProcessEntity firsthandleProcess = baseDao.selectFirstHandleProcessByItemId(itemPlat.getReferenceId(), ItemGridPlatformHandleStatusEnum.HANDLE_SQ.getValue()); |
|
|
if (firsthandleProcess == null) { |
|
|
if (firsthandleProcess == null) { |
|
|
@ -3749,9 +3745,11 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
if (firsthandleProcess == null) { |
|
|
if (firsthandleProcess == null) { |
|
|
itemHandleProcessDto.setOutHandleAdvice("办理人:" + item.getHandlePeopleName() + ",联系电话:" + item.getHandlePeopleMobile()); |
|
|
itemHandleProcessDto.setOutHandleAdvice("办理人:" + item.getHandlePeopleName() + ",联系电话:" + item.getHandlePeopleMobile()); |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
firstHandleId = firsthandleProcess.getId(); |
|
|
itemHandleProcessDto.setOutHandleAdvice(firsthandleProcess.getHandleAdvice() + "h_s办理人:" + item.getHandlePeopleName() + ",联系电话:" + item.getHandlePeopleMobile()); |
|
|
itemHandleProcessDto.setOutHandleAdvice(firsthandleProcess.getHandleAdvice() + "h_s办理人:" + item.getHandlePeopleName() + ",联系电话:" + item.getHandlePeopleMobile()); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
firstHandleId = firsthandleProcess.getId(); |
|
|
itemHandleProcessDto.setOutHandleAdvice(firsthandleProcess.getHandleAdvice() + "h_s办理人:" + item.getHandlePeopleName() + ",联系电话:" + item.getHandlePeopleMobile()); |
|
|
itemHandleProcessDto.setOutHandleAdvice(firsthandleProcess.getHandleAdvice() + "h_s办理人:" + item.getHandlePeopleName() + ",联系电话:" + item.getHandlePeopleMobile()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -3779,6 +3777,17 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
itemHandleProcessDto.setCreatedTime(null == formDto.getCreatedTime() ? new Date() : formDto.getCreatedTime()); |
|
|
itemHandleProcessDto.setCreatedTime(null == formDto.getCreatedTime() ? new Date() : formDto.getCreatedTime()); |
|
|
itemHandleProcessDto.setUpdatedTime(new Date()); |
|
|
itemHandleProcessDto.setUpdatedTime(new Date()); |
|
|
itemHandleProcessService.saveItemHandleProcess(itemHandleProcessDto); |
|
|
itemHandleProcessService.saveItemHandleProcess(itemHandleProcessDto); |
|
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(firstHandleId)){ |
|
|
|
|
|
// 插入第一级结案申请时的图片
|
|
|
|
|
|
List<ImgEntity> imageList = imgDao.selectListByRefeId(firstHandleId); |
|
|
|
|
|
for(ImgEntity imgEntity : imageList){ |
|
|
|
|
|
imgEntity.setId(null); |
|
|
|
|
|
imgEntity.setReferenceId(itemHandleProcessDto.getId()); |
|
|
|
|
|
imgDao.insert(imgEntity); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
//网格化平台结案/驳回操作增加的推送数据到市平台逻辑报错不能影响原有程序流程
|
|
|
//网格化平台结案/驳回操作增加的推送数据到市平台逻辑报错不能影响原有程序流程
|
|
|
if ("1".equals(formDto.getState())) { |
|
|
if ("1".equals(formDto.getState())) { |
|
|
@ -3802,8 +3811,10 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
} |
|
|
} |
|
|
successFlag = YesOrNoEnum.YES.value(); |
|
|
successFlag = YesOrNoEnum.YES.value(); |
|
|
// 保存接口调用日志
|
|
|
// 保存接口调用日志
|
|
|
|
|
|
String message = formDto.getP_recId(); |
|
|
|
|
|
message = message + ":" + formDto; |
|
|
this.saveInterfaceLog(itemPlat.getReferenceId(), InterfaceLogBusinessTypeEnum.ACCEPT_ITEM_PROCESS.getValue(), |
|
|
this.saveInterfaceLog(itemPlat.getReferenceId(), InterfaceLogBusinessTypeEnum.ACCEPT_ITEM_PROCESS.getValue(), |
|
|
ApiConstants.acceptItemProcess, successFlag, formDto.getP_recId(), returnMsgBody); |
|
|
ApiConstants.acceptItemProcess, successFlag, message, returnMsgBody); |
|
|
return new Result().ok("操作成功"); |
|
|
return new Result().ok("操作成功"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -3839,49 +3850,6 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
return 0 == process.getState() || 15 == process.getState(); |
|
|
return 0 == process.getState() || 15 == process.getState(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 领域类别处理 |
|
|
|
|
|
* |
|
|
|
|
|
* @param |
|
|
|
|
|
* @return void |
|
|
|
|
|
* @author zhy |
|
|
|
|
|
* @date 2022/9/6 21:14 |
|
|
|
|
|
*/ |
|
|
|
|
|
private void lbHandle(SendEventFormDto dto, String secondCategory) { |
|
|
|
|
|
if (StringUtils.isNotBlank(secondCategory)) { |
|
|
|
|
|
int length = secondCategory.length(); |
|
|
|
|
|
if (length % 2 == 0) { |
|
|
|
|
|
// 偶数
|
|
|
|
|
|
} else { |
|
|
|
|
|
// 奇数
|
|
|
|
|
|
secondCategory = "0" + secondCategory; |
|
|
|
|
|
} |
|
|
|
|
|
if (length > 2) { |
|
|
|
|
|
// 每隔2位加一个逗号
|
|
|
|
|
|
secondCategory = secondCategory.replaceAll("(.{2})", "$1,"); |
|
|
|
|
|
String[] categoryList = secondCategory.split(","); |
|
|
|
|
|
if (categoryList.length == NumConstant.TWO) { |
|
|
|
|
|
// 事件大类
|
|
|
|
|
|
dto.setSJDL(categoryList[1]); |
|
|
|
|
|
} else if (categoryList.length == NumConstant.THREE) { |
|
|
|
|
|
// 事件大类
|
|
|
|
|
|
dto.setSJDL(categoryList[1]); |
|
|
|
|
|
//事件小类
|
|
|
|
|
|
dto.setSJXL(categoryList[2]); |
|
|
|
|
|
} else if (categoryList.length == NumConstant.FOUR) { |
|
|
|
|
|
// 事件大类
|
|
|
|
|
|
dto.setSJDL(categoryList[1]); |
|
|
|
|
|
//事件小类
|
|
|
|
|
|
dto.setSJXL(categoryList[2]); |
|
|
|
|
|
//事件细类
|
|
|
|
|
|
dto.setSJXIL(categoryList[3]); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 处理中流程的当前处理部门 |
|
|
* 处理中流程的当前处理部门 |
|
|
* |
|
|
* |
|
|
@ -3942,10 +3910,62 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public List<CategoryAnalysisPieResultDTO> categoryAnalysis(ScreenTotalFormDTO formDTO) { |
|
|
public List<CategoryAnalysisPieResultDTO> categoryAnalysis(ScreenTotalFormDTO formDTO) { |
|
|
|
|
|
// 返回值
|
|
|
|
|
|
List<CategoryAnalysisPieResultDTO> resultList = new ArrayList<CategoryAnalysisPieResultDTO>(); |
|
|
|
|
|
|
|
|
|
|
|
if("0".equals(formDTO.getIsElse())){ |
|
|
|
|
|
// 城市综合
|
|
|
|
|
|
// 定义初始【城市综合】5大类
|
|
|
|
|
|
List<String> cityCompre = new ArrayList<>(); |
|
|
|
|
|
cityCompre.add("城市综合-交通运输"); |
|
|
|
|
|
cityCompre.add("城市综合-城市管理"); |
|
|
|
|
|
cityCompre.add("城市综合-城管执法"); |
|
|
|
|
|
cityCompre.add("城市综合-环境保护"); |
|
|
|
|
|
cityCompre.add("城市综合-居民生活"); |
|
|
|
|
|
// 获取分类全部数据
|
|
|
|
|
|
List<CategoryAnalysisPieResultDTO> list = baseDao.categoryAnalysisSecond(formDTO); |
|
|
|
|
|
// 其他总数
|
|
|
|
|
|
Integer elseValue = 0; |
|
|
|
|
|
for(CategoryAnalysisPieResultDTO dto : list){ |
|
|
|
|
|
if(cityCompre.contains(dto.getName())){ |
|
|
|
|
|
String newName = dto.getName(); |
|
|
|
|
|
dto.setName(newName.replace("城市综合-","")); |
|
|
|
|
|
resultList.add(dto); |
|
|
|
|
|
}else{ |
|
|
|
|
|
elseValue += Integer.parseInt(dto.getValue()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
List<CategoryAnalysisPieResultDTO> list = baseDao.categoryAnalysis(formDTO); |
|
|
} |
|
|
|
|
|
// 定义【其他】
|
|
|
|
|
|
CategoryAnalysisPieResultDTO elseCategory = new CategoryAnalysisPieResultDTO(); |
|
|
|
|
|
elseCategory.setCode("其他"); |
|
|
|
|
|
elseCategory.setName("其他"); |
|
|
|
|
|
elseCategory.setValue(elseValue.toString()); |
|
|
|
|
|
resultList.add(elseCategory); |
|
|
|
|
|
|
|
|
return list; |
|
|
}else{ |
|
|
|
|
|
// 其他
|
|
|
|
|
|
// 总数
|
|
|
|
|
|
Integer total = 0; |
|
|
|
|
|
List<CategoryAnalysisPieResultDTO> list = baseDao.categoryAnalysisFirst(formDTO); |
|
|
|
|
|
for(CategoryAnalysisPieResultDTO dto1 : list){ |
|
|
|
|
|
total += Integer.parseInt(dto1.getValue()); |
|
|
|
|
|
} |
|
|
|
|
|
for(CategoryAnalysisPieResultDTO dto2 : list){ |
|
|
|
|
|
if(!"城市综合".equals(dto2.getName())){ |
|
|
|
|
|
|
|
|
|
|
|
BigDecimal value = BigDecimal.valueOf(Integer.parseInt(dto2.getValue())); |
|
|
|
|
|
BigDecimal totalBig = BigDecimal.valueOf(total); |
|
|
|
|
|
BigDecimal proportion = value .divide(totalBig,2, RoundingMode.HALF_UP); |
|
|
|
|
|
dto2.setProportion(proportion + "%"); |
|
|
|
|
|
resultList.add(dto2); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return resultList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -4061,6 +4081,10 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
return baseDao.getItemListByAddress(params); |
|
|
return baseDao.getItemListByAddress(params); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Result supervise(AppealSuperviseResultDTO formDto){ |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
/** |
|
|
/** |
|
|
* 诉求变为可评价 |
|
|
* 诉求变为可评价 |
|
|
* |
|
|
* |
|
|
@ -4152,4 +4176,13 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Result reportReject(AppealWhistleReportRejectResultDTO formDto){ |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Result feedback(AppealWhistleFeedbackResultDTO formDto){ |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|