Commit 07f9ae3118c6202d1f54a2220866cf7c8e2992c4
1 parent
674c0cc8
commit
Showing
1 changed file
with
5 additions
and
5 deletions
src/main/java/com/zteits/irain/portal/web/govclouds/DataGeneralizeController.java
@@ -714,11 +714,11 @@ public class DataGeneralizeController { | @@ -714,11 +714,11 @@ public class DataGeneralizeController { | ||
714 | //分->元 | 714 | //分->元 |
715 | BigDecimal hundred = new BigDecimal("100"); | 715 | BigDecimal hundred = new BigDecimal("100"); |
716 | OrderTransDTO o = orderDTO.getData(); | 716 | OrderTransDTO o = orderDTO.getData(); |
717 | - o.setAliTotalAmount(o.getAliTotalAmount().divide(hundred)); | ||
718 | - o.setCashTotalAmount(o.getCashTotalAmount().divide(hundred)); | ||
719 | - o.setPayedTotalAmount(o.getPayedTotalAmount().divide(hundred)); | ||
720 | - o.setWxTotalAmount(o.getWxTotalAmount().divide(hundred)); | ||
721 | - o.setYlTotalAmount(o.getYlTotalAmount().divide(hundred)); | 717 | + o.setAliTotalAmount(o.getAliTotalAmount() == null ? new BigDecimal("0") : o.getAliTotalAmount().divide(hundred)); |
718 | + o.setCashTotalAmount(o.getCashTotalAmount() == null ? new BigDecimal("0") : o.getCashTotalAmount().divide(hundred)); | ||
719 | + o.setPayedTotalAmount(o.getPayedTotalAmount() == null ? new BigDecimal("0") : o.getPayedTotalAmount().divide(hundred)); | ||
720 | + o.setWxTotalAmount(o.getWxTotalAmount() == null ? new BigDecimal("0") : o.getWxTotalAmount().divide(hundred)); | ||
721 | + o.setYlTotalAmount(o.getYlTotalAmount() == null ? new BigDecimal("0") : o.getYlTotalAmount().divide(hundred)); | ||
722 | orderDTO.setData(o); | 722 | orderDTO.setData(o); |
723 | 723 | ||
724 | logger.info("调用后场dubbo服务,响应为: result={}", JSONObject.toJSONString(orderDTO)); | 724 | logger.info("调用后场dubbo服务,响应为: result={}", JSONObject.toJSONString(orderDTO)); |