From 111c99cc49f7d466b93c287610abbd39fe690413 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期二, 28 五月 2019 16:29:26 +0800 Subject: [PATCH] 画图文件缓存 改成C盘 --- 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