From 43350ad40b10f7cf84cafcc545e0756d55c3693f Mon Sep 17 00:00:00 2001 From: czx <28353131@qq.com> Date: Mon, 28 Dec 2020 14:17:04 +0800 Subject: [PATCH] =?UTF-8?q?bug=EF=BC=9A=E8=AE=A2=E9=A4=90=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fantang/service/impl/FtStaffDemandDaoServiceImpl.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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();