diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/service/impl/FtStaffDemandDaoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/service/impl/FtStaffDemandDaoServiceImpl.java index 858005de6..6a9d2c974 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/service/impl/FtStaffDemandDaoServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/service/impl/FtStaffDemandDaoServiceImpl.java @@ -33,12 +33,10 @@ public class FtStaffDemandDaoServiceImpl extends ServiceImpl wrapper = new QueryWrapper<>(); - wrapper.eq("type", type); - int ret = this.baseMapper.update(dao, wrapper); + + int ret = this.baseMapper.updateById(dao); if (ret == 0) return AjaxResult.error("更新订餐状态失败"); return AjaxResult.success();