bug:订餐配置信息
This commit is contained in:
parent
08864e17b9
commit
43350ad40b
@ -33,12 +33,10 @@ public class FtStaffDemandDaoServiceImpl extends ServiceImpl<FtStaffDemandDaoMap
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult setDemandMode(Long id, Integer type, Boolean demandMode) {
|
public AjaxResult setDemandMode(Long id, Integer type, Boolean demandMode) {
|
||||||
FtStaffDemandDao dao = new FtStaffDemandDao();
|
FtStaffDemandDao dao = this.baseMapper.selectById(id);
|
||||||
dao.setId(id);
|
|
||||||
dao.setDemandMode(demandMode);
|
dao.setDemandMode(demandMode);
|
||||||
QueryWrapper<FtStaffDemandDao> wrapper = new QueryWrapper<>();
|
|
||||||
wrapper.eq("type", type);
|
int ret = this.baseMapper.updateById(dao);
|
||||||
int ret = this.baseMapper.update(dao, wrapper);
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
return AjaxResult.error("更新订餐状态失败");
|
return AjaxResult.error("更新订餐状态失败");
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user