Pārlūkot izejas kodu

fix(mapper):修复优惠券用户列表查询参数绑定问题

- 为 selectFsStoreCouponUserListByEnableForCash 方法添加 @Param 注解以正确绑定参数- 修正积分抵扣金额注释描述
- 保持 FsStoreOrderComputeDTO 类结构一致性
xw 1 mēnesi atpakaļ
vecāks
revīzija
7856e342be

+ 1 - 1
fs-service/src/main/java/com/fs/hisStore/dto/FsStoreOrderComputeDTO.java

@@ -30,4 +30,4 @@ public class FsStoreOrderComputeDTO implements Serializable
     private BigDecimal deductionPrice;
 
 
-}
+}

+ 1 - 1
fs-service/src/main/java/com/fs/hisStore/mapper/FsStoreCouponUserScrmMapper.java

@@ -137,5 +137,5 @@ public interface FsStoreCouponUserScrmMapper
             "and i.coupon_type = #{maps.couponType} " +
             "</if>" +
             "</script>"})
-    List<FsStoreCouponUserScrm> selectFsStoreCouponUserListByEnableForCash(FsCouponUserEnableParam param);
+    List<FsStoreCouponUserScrm> selectFsStoreCouponUserListByEnableForCash(@Param("maps") FsCouponUserEnableParam param);
 }

+ 1 - 1
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreOrderScrmServiceImpl.java

@@ -542,7 +542,7 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
 
         FsUserScrm user = userService.selectFsUserById(uid);
         // 积分抵扣
-        BigDecimal deductionPrice = BigDecimal.ZERO; //抵扣金额
+        BigDecimal deductionPrice = BigDecimal.ZERO; //积分抵扣金额
         double usedIntegral = 0; //使用了多少积分
         if (param.getUseIntegral() != null && param.getUseIntegral() == 1 && user.getIntegral().intValue() > 0) {
             //如果积分总和小于用户积分 抵扣比例 计算抵扣价格