增加可用优惠券数量
This commit is contained in:
@@ -36,6 +36,10 @@ public class UserService {
|
||||
@Autowired
|
||||
private TbUserInfoMapper userInfoMapper;
|
||||
@Autowired
|
||||
private TbUserCouponsMapper userCouponsMapper;
|
||||
@Autowired
|
||||
private TbSystemCouponsMapper systemCouponsMapper;
|
||||
@Autowired
|
||||
RedisUtils redisUtils;
|
||||
|
||||
public JSONObject modityIntegral(IntegralVo integralVo, String userSign) {
|
||||
@@ -218,4 +222,10 @@ public class UserService {
|
||||
result.put("data", pageInfo);
|
||||
return result;
|
||||
}
|
||||
|
||||
public int userCoupon(String userId, BigDecimal orderNum) {
|
||||
int userNum = userCouponsMapper.selectByUserIdAndAmount(userId,orderNum);
|
||||
int sysNum = systemCouponsMapper.selectByAmount(orderNum);
|
||||
return userNum+sysNum;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user