修改 10086 为常量

This commit is contained in:
gong
2025-12-11 18:36:35 +08:00
parent e4ea8de704
commit 1ed69dd986
6 changed files with 42 additions and 34 deletions

View File

@@ -15,6 +15,7 @@ import com.czg.account.entity.*;
import com.czg.account.service.*;
import com.czg.config.RabbitPublisher;
import com.czg.config.RedisCst;
import com.czg.constant.MarketConstants;
import com.czg.constant.TableValueConstant;
import com.czg.entity.notify.CzgPayNotifyDTO;
import com.czg.entity.notify.CzgRefundNotifyDTO;
@@ -710,7 +711,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
* 判断每日使用限量
*/
private void isUseLimit(ShopCoupon coupon, MkShopCouponRecord record) {
if (coupon.getUseLimit() != -10086) {
if (coupon.getUseLimit() != MarketConstants.Num.NOT_LIMIT) {
long useNum = couponRecordService.count(new QueryWrapper()
.eq(MkShopCouponRecord::getCouponId, coupon.getId())
.eq(MkShopCouponRecord::getShopId, record.getShopId())