|
|
|
@ -2811,16 +2811,14 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
List<EventProcessBatchHisResultDto> allProcess = new ArrayList<>(); |
|
|
|
|
|
|
|
partition.forEach(itemList -> { |
|
|
|
String successFlag = YesOrNoEnum.YES.value(); |
|
|
|
String ids = itemList.stream().map(ItemGridPlatformDTO::getTaskid).collect(Collectors.joining(",")); |
|
|
|
List<EventProcessBatchHisResultDto> processHistories = shiBeiCityGridApi.getBatchHistoryByRecIds(ids); |
|
|
|
allProcess.addAll(processHistories); |
|
|
|
if (processHistories.isEmpty()) { |
|
|
|
successFlag = YesOrNoEnum.NO.value(); |
|
|
|
} |
|
|
|
// 保存接口调用日志
|
|
|
|
// 失败的时候保存接口调用日志,成功就不需要了
|
|
|
|
this.saveInterfaceLog(StringUtils.EMPTY, InterfaceLogBusinessTypeEnum.PULL_ITEM_HANDLE_PROCESS.getValue(), |
|
|
|
ApiConstants.SearchCaseProcessByTaskId, successFlag, ids, ApiConstants.batchHistoryUrl + "?recIds=" + ids); |
|
|
|
ApiConstants.SearchCaseProcessByTaskId, YesOrNoEnum.NO.value(), ids, ApiConstants.batchHistoryUrl + "?recIds=" + ids); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
Map<String, EventProcessBatchHisResultDto> processMap = allProcess.stream().collect(Collectors.toMap(EventProcessBatchHisResultDto::getRECID, process -> process)); |
|
|
|
@ -4581,7 +4579,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
throw new RenException("获取项目数据失败,项目Id->" + itemId); |
|
|
|
} |
|
|
|
//2.判断是已结案的不做处理(第二次可以评价了,没超过24小时用户评价了,此时就是已结案了)
|
|
|
|
if ("10".equals(entity.getItemState())) { |
|
|
|
if (ItemHandleCategoryEnum.HANDLE_CLOSING_CASE.getValue() == entity.getItemState()) { |
|
|
|
return; |
|
|
|
} |
|
|
|
//查询项目反馈数据
|
|
|
|
@ -4639,7 +4637,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
throw new RenException("获取项目数据失败,项目Id->" + itemId); |
|
|
|
} |
|
|
|
//2.判断是已结案的不做处理(第二次可以评价了,没超过24小时用户评价了,此时就是已结案了)
|
|
|
|
if ("10".equals(entity.getItemState())) { |
|
|
|
if (ItemHandleCategoryEnum.HANDLE_CLOSING_CASE.getValue() == entity.getItemState()) { |
|
|
|
return; |
|
|
|
} |
|
|
|
//查询项目反馈数据
|
|
|
|
|