admin
2019-06-03 a1c01c3b1df1034eecd0e35a0bf75cf0a2bf5d92
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserShareGoodsRecordServiceImpl.java
@@ -197,6 +197,28 @@
                     }
                  }
               }
               String shareType = shareRecord.getShareType();
               if (StringUtil.isNullOrEmpty(shareType)) {
                  shareRecord.setShareType(UserShareGoodsRecord.SHARETYPE_SINGLE);
               }
               BigDecimal totalMoney = shareRecord.getTotalMoney();
               if (totalMoney == null) {
                  shareRecord.setTotalMoney(new BigDecimal(0));
               }
            }
         } else {
            for (UserShareGoodsRecord shareRecord : list) {
               String shareType = shareRecord.getShareType();
               if (StringUtil.isNullOrEmpty(shareType)) {
                  shareRecord.setShareType(UserShareGoodsRecord.SHARETYPE_SINGLE);
               }
               BigDecimal totalMoney = shareRecord.getTotalMoney();
               if (totalMoney == null) {
                  shareRecord.setTotalMoney(new BigDecimal(0));
               }
            }
         }
      }