【DAOP-1.0】企业认证
【功能点】测试问题处理
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -15,6 +15,7 @@ import org.springframework.stereotype.Component; | ... | @@ -15,6 +15,7 @@ import org.springframework.stereotype.Component; |
15 | import java.math.BigDecimal; | 15 | import java.math.BigDecimal; |
16 | import java.math.RoundingMode; | 16 | import java.math.RoundingMode; |
17 | import java.util.ArrayList; | 17 | import java.util.ArrayList; |
18 | import java.util.Comparator; | ||
18 | import java.util.Date; | 19 | import java.util.Date; |
19 | import java.util.List; | 20 | import java.util.List; |
20 | import java.util.stream.Collectors; | 21 | import java.util.stream.Collectors; |
... | @@ -56,6 +57,7 @@ public class ChangeInfoUtil { | ... | @@ -56,6 +57,7 @@ public class ChangeInfoUtil { |
56 | list.add(vo); | 57 | list.add(vo); |
57 | } | 58 | } |
58 | } | 59 | } |
60 | list = list.stream().sorted(Comparator.comparing(ChangeInfoVO::getDate).thenComparing(ChangeInfoVO::getNameEn)).collect(Collectors.toList()); | ||
59 | return list; | 61 | return list; |
60 | } | 62 | } |
61 | 63 | ||
... | @@ -71,7 +73,9 @@ public class ChangeInfoUtil { | ... | @@ -71,7 +73,9 @@ public class ChangeInfoUtil { |
71 | if(v == null){ | 73 | if(v == null){ |
72 | return ""; | 74 | return ""; |
73 | } | 75 | } |
74 | return v.setScale(2, RoundingMode.HALF_DOWN).toString(); | 76 | String s = v.setScale(2, RoundingMode.HALF_DOWN).toString(); |
77 | s = s.split("\\.")[0] + s.split("\\.")[1].substring(0,2); | ||
78 | return s; | ||
75 | } | 79 | } |
76 | 80 | ||
77 | public static void getVenueResult(EnterpriseServiceImpl.ChangeApproveBean item, List<CompareResult> diffList) { | 81 | public static void getVenueResult(EnterpriseServiceImpl.ChangeApproveBean item, List<CompareResult> diffList) { | ... | ... |
-
Please register or sign in to post a comment