修改 10086 为常量
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user