|
@@ -4596,6 +4596,15 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
private void checkNfPayLimit(Long goodsId, Long userId) throws Exception {
|
|
private void checkNfPayLimit(Long goodsId, Long userId) throws Exception {
|
|
|
if (goodsId != null && goodsId == 1) {
|
|
if (goodsId != null && goodsId == 1) {
|
|
|
Boolean isCheck = true;
|
|
Boolean isCheck = true;
|
|
|
|
|
+ SysConfig config = sysConfigService.getOne(Wrappers.lambdaQuery(SysConfig.class)
|
|
|
|
|
+ .eq(SysConfig::getSysKey, Constant.NF_PURCHASE_LIMIT_KEY)
|
|
|
|
|
+ .last("limit 1"));
|
|
|
|
|
+ if (config == null) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (StrUtil.isEmpty(config.getSysValue())) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
SysConfig nfLimitPayWhiteConfig = sysConfigService.getOne(Wrappers.lambdaQuery(SysConfig.class)
|
|
SysConfig nfLimitPayWhiteConfig = sysConfigService.getOne(Wrappers.lambdaQuery(SysConfig.class)
|
|
|
.eq(SysConfig::getSysKey, Constant.NF_PURCHASE_LIMIT_WHITE_KEY)
|
|
.eq(SysConfig::getSysKey, Constant.NF_PURCHASE_LIMIT_WHITE_KEY)
|
|
|
.last("limit 1"));
|
|
.last("limit 1"));
|