去除一个无效的项目

This commit is contained in:
Chopper
2021-05-17 10:46:38 +08:00
parent 4cea9038eb
commit ff4de96f2a
7 changed files with 10 additions and 465 deletions

View File

@@ -125,13 +125,22 @@ public class PromotionEverydayExecute implements EveryDayExecute {
}
/**
* 获取促销修改查询条件 修改活动状态
* @param ids
* @return
*/
private UpdateWrapper getUpdatePromotionWrapper(List<String> ids) {
UpdateWrapper updateWrapper = new UpdateWrapper<>();
updateWrapper.in("id", ids);
updateWrapper.set("promotion_status", PromotionStatusEnum.END.name());
return updateWrapper;
}
/**
* 获取商品的促销修改查询条件 修改商品状态
* @param ids
* @return
*/
private UpdateWrapper getUpdatePromotionGoodsWrapper(List<String> ids) {
UpdateWrapper updateWrapper = new UpdateWrapper<>();
updateWrapper.in("promotion_id", ids);