邏輯刪除 的數據 如何恢復
您好老師,我問下
?????邏輯刪除后如何恢復,
?????使用框架的修改語句 會自動拼接 where條件 ?deletedAt == null,
????我該如何 set deletedAt == null ?只能自己手寫修改語句嗎?
UpdateWrapper?updateWrapper?=?new?UpdateWrapper<AdPlanCinemaMapEntity>();
updateWrapper.set("deleted_at",?null);
updateWrapper.eq(adPlanId?!=?null,?"ad_plan_id",?adPlanId);
updateWrapper.in(cinemas?!=?null,?"cinema_id",?cinemas);
this.update(updateWrapper);sql語句如下:
UPDATE ad_plan_cinema_maps SET deleted_at=? WHERE deleted_at IS NULL AND (ad_plan_id = ? AND cinema_id IN (?,?,?,?,?))
怎么樣在這個里面單獨排除掉?deleted_at IS NULL
2024-03-25
MP本身不支持恢復數據,恢復方法可參考:https://blog.csdn.net/qq_38989725/article/details/125910118