From 0588d6be74335f41c79a8d8e32dbd1c3d3e47fa3 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期三, 29 五月 2019 17:20:50 +0800 Subject: [PATCH] 精选库商品入库及更新调整 + 9k9类商品查询取消标签查询 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserShareGoodsRecordServiceImpl.java | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserShareGoodsRecordServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserShareGoodsRecordServiceImpl.java index 4f6a5c4..1e3c1db 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserShareGoodsRecordServiceImpl.java +++ b/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)); + } } } } -- Gitblit v1.8.0