|
@@ -374,57 +374,59 @@ public class SubInfoQueryServiceImpl implements SubInfoQueryService {
|
|
|
.filter(StringUtils::isNotBlank)
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
|
-
|
|
|
- List<SubInfoFixDetailPreNew> preNewList = Optional.ofNullable(
|
|
|
- subInfoMapper.selectSubPreNewBySubIds(subIdList)
|
|
|
- ).orElse(Collections.emptyList());
|
|
|
-
|
|
|
-
|
|
|
- Map<String, List<SubInfoFixDetailPreNew>> preNewMap = preNewList.stream().collect(Collectors.groupingBy(SubInfoFixDetailPreNew::getSubId));
|
|
|
-
|
|
|
-
|
|
|
- list.forEach(e->{
|
|
|
- List<SubInfoFixDetailPreNew> subInfoFixDetailPreNewList = preNewMap.get(e.getId());
|
|
|
- StringBuilder sb = new StringBuilder();
|
|
|
- if (com.rtrh.common.util.CollectionUtil.isNotEmpty(subInfoFixDetailPreNewList)){
|
|
|
-
|
|
|
- StringBuilder end = new StringBuilder("已完成:");
|
|
|
-
|
|
|
- StringBuilder yellow = new StringBuilder("进行中:");
|
|
|
-
|
|
|
- boolean endBoolean = subInfoFixDetailPreNewList.stream().anyMatch(f->"2".equals(f.getStatusConf()));
|
|
|
-
|
|
|
- boolean yellowBoolean = subInfoFixDetailPreNewList.stream().anyMatch(f->"1".equals(f.getStatusConf()));
|
|
|
- subInfoFixDetailPreNewList.forEach(f->{
|
|
|
- if ("1".equals(f.getStatusConf())){
|
|
|
- yellow.append(f.getTitle()).append(",");
|
|
|
- }else if ("2".equals(f.getStatusConf())){
|
|
|
- end.append(f.getTitle()).append(",");
|
|
|
+ if (list != null && list.size() > 0){
|
|
|
+
|
|
|
+ List<SubInfoFixDetailPreNew> preNewList = Optional.ofNullable(
|
|
|
+ subInfoMapper.selectSubPreNewBySubIds(subIdList)
|
|
|
+ ).orElse(Collections.emptyList());
|
|
|
+
|
|
|
+
|
|
|
+ Map<String, List<SubInfoFixDetailPreNew>> preNewMap = preNewList.stream().collect(Collectors.groupingBy(SubInfoFixDetailPreNew::getSubId));
|
|
|
+
|
|
|
+
|
|
|
+ list.forEach(e->{
|
|
|
+ List<SubInfoFixDetailPreNew> subInfoFixDetailPreNewList = preNewMap.get(e.getId());
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ if (com.rtrh.common.util.CollectionUtil.isNotEmpty(subInfoFixDetailPreNewList)){
|
|
|
+
|
|
|
+ StringBuilder end = new StringBuilder("已完成:");
|
|
|
+
|
|
|
+ StringBuilder yellow = new StringBuilder("进行中:");
|
|
|
+
|
|
|
+ boolean endBoolean = subInfoFixDetailPreNewList.stream().anyMatch(f->"2".equals(f.getStatusConf()));
|
|
|
+
|
|
|
+ boolean yellowBoolean = subInfoFixDetailPreNewList.stream().anyMatch(f->"1".equals(f.getStatusConf()));
|
|
|
+ subInfoFixDetailPreNewList.forEach(f->{
|
|
|
+ if ("1".equals(f.getStatusConf())){
|
|
|
+ yellow.append(f.getTitle()).append(",");
|
|
|
+ }else if ("2".equals(f.getStatusConf())){
|
|
|
+ end.append(f.getTitle()).append(",");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (endBoolean){
|
|
|
+ sb.append(end, 0, end.length()-1).append("。");
|
|
|
+ }
|
|
|
+ if (yellowBoolean){
|
|
|
+ sb.append(yellow, 0, yellow.length()-1).append("。");
|
|
|
+ }
|
|
|
+ if (!endBoolean && !yellowBoolean){
|
|
|
+ sb.append("暂无手续办理情况!");
|
|
|
}
|
|
|
- });
|
|
|
- if (endBoolean){
|
|
|
- sb.append(end, 0, end.length()-1).append("。");
|
|
|
- }
|
|
|
- if (yellowBoolean){
|
|
|
- sb.append(yellow, 0, yellow.length()-1).append("。");
|
|
|
}
|
|
|
- if (!endBoolean && !yellowBoolean){
|
|
|
- sb.append("暂无手续办理情况!");
|
|
|
+ e.setQqsxblqk(sb.toString());
|
|
|
+ if (StringUtils.isNotBlank(e.getSubjectId())){
|
|
|
+ e.setSubjectId(jsddNameMap.getOrDefault(e.getSubjectId(),""));
|
|
|
}
|
|
|
- }
|
|
|
- e.setQqsxblqk(sb.toString());
|
|
|
- if (StringUtils.isNotBlank(e.getSubjectId())){
|
|
|
- e.setSubjectId(jsddNameMap.getOrDefault(e.getSubjectId(),""));
|
|
|
- }
|
|
|
|
|
|
-
|
|
|
- e.setAmtTotal(e.getAmtTotal().divide(new BigDecimal("10000"), 2, RoundingMode.HALF_UP));
|
|
|
+
|
|
|
+ e.setAmtTotal(e.getAmtTotal().divide(new BigDecimal("10000"), 2, RoundingMode.HALF_UP));
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- String content = e.getContent();
|
|
|
- e.setContent(content == null ? "" : StringUtils.substring(content, 0, 100));
|
|
|
- });
|
|
|
+
|
|
|
+
|
|
|
+ String content = e.getContent();
|
|
|
+ e.setContent(content == null ? "" : StringUtils.substring(content, 0, 100));
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
PageInfo<SubFixListVo> pageInfo = new PageInfo<SubFixListVo>(list);
|
|
|
page.setList(list);
|