浏览代码

fixed 会员余额发放限制

fushengqian 1 年之前
父节点
当前提交
5acbf20c46

+ 10 - 10
fuint-application/src/main/java/com/fuint/common/service/GoodsService.java

@@ -51,8 +51,8 @@ public interface GoodsService {
     /**
     /**
      * 根据编码获取商品信息
      * 根据编码获取商品信息
      *
      *
-     * @param  merchantId
-     * @param  goodsNo
+     * @param  merchantId 商户ID
+     * @param  goodsNo 商品编码
      * @throws BusinessCheckException
      * @throws BusinessCheckException
      * @return
      * @return
      */
      */
@@ -70,7 +70,7 @@ public interface GoodsService {
     /**
     /**
      * 根据ID获取商品详情
      * 根据ID获取商品详情
      *
      *
-     * @param  id
+     * @param  id 商品ID
      * @throws BusinessCheckException
      * @throws BusinessCheckException
      * @return
      * @return
      */
      */
@@ -79,7 +79,7 @@ public interface GoodsService {
     /**
     /**
      * 根据ID删除
      * 根据ID删除
      *
      *
-     * @param  id       ID
+     * @param  id 商品ID
      * @param  operator 操作人
      * @param  operator 操作人
      * @throws BusinessCheckException
      * @throws BusinessCheckException
      * @return
      * @return
@@ -89,11 +89,11 @@ public interface GoodsService {
     /**
     /**
      * 获取店铺的商品列表
      * 获取店铺的商品列表
      *
      *
-     * @param storeId
-     * @param keyword
-     * @param cateId
-     * @param page
-     * @param pageSize
+     * @param storeId 店铺ID
+     * @param keyword 关键字
+     * @param cateId 分类ID
+     * @param page 当前页码
+     * @param pageSize 每页数量
      * @return
      * @return
      * */
      * */
     Map<String, Object> getStoreGoodsList(Integer storeId, String keyword, Integer cateId, Integer page, Integer pageSize) throws BusinessCheckException;
     Map<String, Object> getStoreGoodsList(Integer storeId, String keyword, Integer cateId, Integer page, Integer pageSize) throws BusinessCheckException;
@@ -109,7 +109,7 @@ public interface GoodsService {
     /**
     /**
      * 获取规格详情
      * 获取规格详情
      *
      *
-     * @param specId
+     * @param specId 规格ID
      * @return
      * @return
      * */
      * */
     MtGoodsSpec getSpecDetail(Integer specId);
     MtGoodsSpec getSpecDetail(Integer specId);

+ 3 - 0
fuint-application/src/main/java/com/fuint/common/service/impl/BalanceServiceImpl.java

@@ -211,6 +211,9 @@ public class BalanceServiceImpl extends ServiceImpl<MtBalanceMapper, MtBalance>
             throw new BusinessCheckException("平台账号不能执行该操作");
             throw new BusinessCheckException("平台账号不能执行该操作");
         }
         }
         BigDecimal balanceAmount = new BigDecimal(amount);
         BigDecimal balanceAmount = new BigDecimal(amount);
+        if (balanceAmount.compareTo(new BigDecimal(20000)) > 0) {
+            throw new BusinessCheckException("单次充值金额不能大于20000");
+        }
 
 
         List<Integer> userIdArr = new ArrayList<>();
         List<Integer> userIdArr = new ArrayList<>();
         List<String> userIdList = Arrays.asList(userIds.split(","));
         List<String> userIdList = Arrays.asList(userIds.split(","));