【生产】报表打印-评审报告中评审结果排序问题、报价等字段去掉小数点

This commit is contained in:
付庆吉
2022-01-13 09:33:41 +08:00
parent 63d4401be8
commit 863e3678e4
2 changed files with 7 additions and 7 deletions

View File

@ -23,10 +23,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.math.BigDecimal;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
@ -154,8 +151,8 @@ public class ReviewReportImpl implements ExportService {
//表五 价格评审数据 投标人,投标价,评审价格,价格得分
map.put("bj", detail.getPrice() == null ? BigDecimal.ZERO : detail.getPrice());
map.put("psjg", detail.getPriceReview() == null ? BigDecimal.ZERO : detail.getPriceReview());
map.put("bj", detail.getPrice() == null ? BigDecimal.ZERO : detail.getPrice().stripTrailingZeros().toString());
map.put("psjg", detail.getPriceReview() == null ? BigDecimal.ZERO : detail.getPriceReview().stripTrailingZeros().toString());
map.put("jgdf", StrUtil.isNotBlank(detail.getPriceScore()) ? detail.getPriceScore() : "");
@ -167,10 +164,13 @@ public class ReviewReportImpl implements ExportService {
String finalZbfs = zbfs;
String finalPbwyhzz = pbwyhzz;
List<Map<String, Object>> sortList3 = list3.stream().sorted(Comparator.comparing(m -> String.valueOf(m.get("bj")))).collect(Collectors.toList());
List<Map<String, Object>> list4 = list3.stream().sorted(Comparator.comparing(m -> String.valueOf(m.get("psjg")))).collect(Collectors.toList());
Map<String, Object> all = new HashMap<String, Object>() {{
put("table1", list1);
put("table2", list2);
put("table3", list3);
put("table3", sortList3);
put("table4", list4);
put("zbdljg", project.getTenderAgencyName());
put("zbbh", project.getEbpProjectNumber());
put("zbfs", finalZbfs);