|
@@ -1378,11 +1378,6 @@ public class SubInfoExportController extends BaseController {
|
|
|
})
|
|
|
);
|
|
|
Map<String, List<SubInfoGxj>> currScaleGroups = currSubInfoList.stream()
|
|
|
- .peek(t->{
|
|
|
- if (t.getAmtTotal() == null) {
|
|
|
- t.setAmtTotal(BigDecimal.ZERO);
|
|
|
- }
|
|
|
- })
|
|
|
.collect(Collectors.groupingBy(transaction -> {
|
|
|
for (Map.Entry<String, BigDecimal> entry : groupBoundaries.entrySet()) {
|
|
|
if (transaction.getAmtTotal().compareTo(entry.getValue()) < 0) {
|
|
@@ -1535,23 +1530,6 @@ public class SubInfoExportController extends BaseController {
|
|
|
return zhStrBuilder.append(preText).append(mainText).append(postText).append("\n");
|
|
|
}
|
|
|
|
|
|
- private StringBuilder buildZhParagraph(String preText, List<LogOperateVO> value, int month) {
|
|
|
- StringBuilder zhStrBuilder = new StringBuilder().append("\t");
|
|
|
- StatusChangeCountersVO tempVo = new StatusChangeCountersVO();
|
|
|
- addNum(value, tempVo);
|
|
|
- List<LogOperateVO> currList = value.stream().filter(logOperate -> DateUtil.month(logOperate.getCreateTime()) == DateUtil.month(new Date())).collect(Collectors.toList());
|
|
|
- StatusChangeCountersVO currTempVo = new StatusChangeCountersVO();
|
|
|
- addNum(currList, currTempVo);
|
|
|
-
|
|
|
- String mainText = String.format("储备项目转新建%s个、新建项目转在建%s个、在建项目转投产%s个、投产项目转入规%s个,新建项目降级为储备%s个、入规项目转为在建%s个。" +
|
|
|
- "其中,%s月当月,储备项目转新建%s个、新建项目转在建%s个、在建项目转投产%s个、投产项目转入规%s个,新建项目降级为储备%s个、入规项目转为在建%s个。 "
|
|
|
- , tempVo.cbToXjNum, tempVo.xjToZjNum, tempVo.zjToTcNum, tempVo.tcToRgNum, tempVo.xjToCbNum, tempVo.rgToZjNum,
|
|
|
- month, currTempVo.cbToXjNum, currTempVo.xjToZjNum, currTempVo.zjToTcNum, currTempVo.tcToRgNum, currTempVo.xjToCbNum, currTempVo.rgToZjNum
|
|
|
- );
|
|
|
- String postText = "1-%s月,项目开工率%s、投产率%s、入规率%s,较1-(%s)月,分别增长%s、%s、%s个百分点。";
|
|
|
- return zhStrBuilder.append(preText).append(mainText).append(postText).append("\n");
|
|
|
- }
|
|
|
-
|
|
|
private void addNum(List<LogOperateVO> lastLogList, StatusChangeCountersVO vo) {
|
|
|
for (LogOperate logOperate : lastLogList) {
|
|
|
if (SubInfoStatusEnum.CB.getCode().equals(logOperate.getStatusFirst()) && SubInfoStatusEnum.XJ.getCode().equals(logOperate.getStatusAfter())) {
|