Commit 07f9ae3118c6202d1f54a2220866cf7c8e2992c4

Authored by 王飞
1 parent 674c0cc8

commit

src/main/java/com/zteits/irain/portal/web/govclouds/DataGeneralizeController.java
... ... @@ -714,11 +714,11 @@ public class DataGeneralizeController {
714 714 //分->元
715 715 BigDecimal hundred = new BigDecimal("100");
716 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 722 orderDTO.setData(o);
723 723  
724 724 logger.info("调用后场dubbo服务,响应为: result={}", JSONObject.toJSONString(orderDTO));
... ...