From fc0cc7e808f9228b39b1e6b9d29c5417f41dbcc4 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期五, 24 五月 2019 16:52:02 +0800 Subject: [PATCH] 删除 老版动态查询商品 关联yeshi_ec_taobao_goods 的sql --- 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