店铺配置 quota为0 跳过验证
This commit is contained in:
parent
deef8ac225
commit
9586707b28
|
@ -47,8 +47,6 @@ public class AiServiceImpl implements IAiService {
|
||||||
private IBusStoreConfigInfoService iBusStoreConfigInfoService;
|
private IBusStoreConfigInfoService iBusStoreConfigInfoService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IBusBanOperateInfoService iBusBanOperateInfoService;
|
private IBusBanOperateInfoService iBusBanOperateInfoService;
|
||||||
@Autowired
|
|
||||||
private IBusReturnVisitInfoService iBusReturnVisitInfoService;
|
|
||||||
|
|
||||||
private String userSn = "SYSUSER|8398f13f3feccef770ee4d465fe22fbf";
|
private String userSn = "SYSUSER|8398f13f3feccef770ee4d465fe22fbf";
|
||||||
private String aiUserSn = "SYSUSER|2665bcca63a2b5c724095fa01dce0470";
|
private String aiUserSn = "SYSUSER|2665bcca63a2b5c724095fa01dce0470";
|
||||||
|
@ -339,11 +337,13 @@ public class AiServiceImpl implements IAiService {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// 当日此店铺营销限额
|
// 当日此店铺营销限额
|
||||||
int quota = iBusReturnVisitInfoService.countByToday(storeInfo.getStoreCode());
|
if (busStoreConfigInfo.getQuota() != 0){
|
||||||
if (quota >= busStoreConfigInfo.getQuota()) {
|
int quota = returnVisitInfoService.countByToday(storeInfo.getStoreCode());
|
||||||
break;
|
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();
|
BusFifteenInfo fifteenInfo = new BusFifteenInfo();
|
||||||
fifteenInfo.setCustomId(busOrderInfo.getCustomId());
|
fifteenInfo.setCustomId(busOrderInfo.getCustomId());
|
||||||
List<BusFifteenInfo> listInfo = fifteenInfoService.selectBusFifteenInfoList(fifteenInfo);
|
List<BusFifteenInfo> listInfo = fifteenInfoService.selectBusFifteenInfoList(fifteenInfo);
|
||||||
|
|
Loading…
Reference in New Issue