From a611b251f7486cc0e14cdf5bb26265f18956c068 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 10 六月 2019 19:30:04 +0800 Subject: [PATCH] 拼多多商品与订单添加 --- fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserShareGoodsRecordServiceImpl.java | 25 +++++++++++++++++++++++++ 1 files changed, 25 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 c8bccea..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)); + } } } } @@ -795,6 +817,9 @@ } } } + + // 娓呯悊缂撳瓨 + redisManager.removeCommonString(shareKey); } /** -- Gitblit v1.8.0