|
|
|
|
@ -182,11 +182,18 @@ public class NegativeQueryService {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
if (CollectionUtil.isNotEmpty(param.getHandleResultCode())){ |
|
|
|
|
String codes = param.getHandleResultCode().stream() |
|
|
|
|
.map(code -> "'" + code + "'") |
|
|
|
|
.collect(Collectors.joining(",")); |
|
|
|
|
queryWrapper.inSql( Negative::getId, |
|
|
|
|
"SELECT DISTINCT negativeId FROM negative_blame WHERE handleResultCode IN (" + codes + ")" |
|
|
|
|
String likeOr = param.getHandleResultCode().stream() |
|
|
|
|
.map(code -> |
|
|
|
|
"(" |
|
|
|
|
+ "CONCAT(',', handleResultCode, ',') LIKE CONCAT('%,','" + code + "',',%')" |
|
|
|
|
+ " OR " |
|
|
|
|
+ "CONCAT(',', leadHandleResultCode, ',') LIKE CONCAT('%,','" + code + "',',%')" |
|
|
|
|
+ ")" |
|
|
|
|
) |
|
|
|
|
.collect(Collectors.joining(" OR ")); |
|
|
|
|
queryWrapper.inSql( |
|
|
|
|
Negative::getId, |
|
|
|
|
"SELECT DISTINCT negativeId FROM negative_blame WHERE " + likeOr |
|
|
|
|
); |
|
|
|
|
queryWrapper.in(Negative::getProcessingStatus,List.of("completed", "approval")); |
|
|
|
|
} |
|
|
|
|
@ -201,7 +208,7 @@ public class NegativeQueryService {
|
|
|
|
|
NegativeQueryVo vo = new NegativeQueryVo(); |
|
|
|
|
BeanUtils.copyProperties(item, vo); |
|
|
|
|
if (Objects.nonNull(item.getFirstDistributeTime()) && !ProcessingStatusEnum.completed.name().equals(item.getProcessingStatus())) { |
|
|
|
|
vo.setRemainingDuration(TimeUtil.getRemainingDuration(item.getFirstDistributeTime(), item.getMaxSignDuration(), item.getMaxHandleDuration(), item.getExtensionDays(), item.getFlowKey())); |
|
|
|
|
// vo.setRemainingDuration(TimeUtil.getRemainingDuration(item.getFirstDistributeTime(), item.getMaxSignDuration(), item.getMaxHandleDuration(), item.getExtensionDays(), item.getFlowKey()));
|
|
|
|
|
} |
|
|
|
|
return vo; |
|
|
|
|
}).toList(); |
|
|
|
|
|