店铺配置 quota为0 跳过验证

This commit is contained in:
wangshuai 2024-07-12 13:24:55 +08:00
parent deef8ac225
commit 9586707b28
1 changed files with 6 additions and 6 deletions

View File

@ -47,8 +47,6 @@ public class AiServiceImpl implements IAiService {
private IBusStoreConfigInfoService iBusStoreConfigInfoService;
@Autowired
private IBusBanOperateInfoService iBusBanOperateInfoService;
@Autowired
private IBusReturnVisitInfoService iBusReturnVisitInfoService;
private String userSn = "SYSUSER|8398f13f3feccef770ee4d465fe22fbf";
private String aiUserSn = "SYSUSER|2665bcca63a2b5c724095fa01dce0470";
@ -339,11 +337,13 @@ public class AiServiceImpl implements IAiService {
continue;
}
// 当日此店铺营销限额
int quota = iBusReturnVisitInfoService.countByToday(storeInfo.getStoreCode());
if (quota >= busStoreConfigInfo.getQuota()) {
break;
if (busStoreConfigInfo.getQuota() != 0){
int quota = returnVisitInfoService.countByToday(storeInfo.getStoreCode());
if (quota >= busStoreConfigInfo.getQuota()) {
break;
}
}
redisTemplate.opsForValue().set(busStoreConfigInfo.getStoreCode() + now.format(dateTimeFormatterNow), quota + "");
// redisTemplate.opsForValue().set(busStoreConfigInfo.getStoreCode() + now.format(dateTimeFormatterNow), quota + "");
BusFifteenInfo fifteenInfo = new BusFifteenInfo();
fifteenInfo.setCustomId(busOrderInfo.getCustomId());
List<BusFifteenInfo> listInfo = fifteenInfoService.selectBusFifteenInfoList(fifteenInfo);