| | |
| | | }
|
| | | }
|
| | | }
|
| | | |
| | | 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));
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|