This commit is contained in:
LiJianZhao 2025-05-26 16:42:02 +08:00
parent 0bed77b5d7
commit 7f14dc586d
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ public class GoodsService extends BaseService {
return dbGoods;
}
UpdateWrapper<Goods> updateWrapper = new UpdateWrapper<>();
updateWrapper.set("sale_status", false);
updateWrapper.set("sale_status", target);
updateWrapper.eq("id", id);
goodsMapper.update(null, updateWrapper);
dbGoods.setSaleStatus(target);