| | |
| | | package com.panzhihua.sangeshenbian.api; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.interfaces.OperLog; |
| | |
| | | if(systemUser.getAccountLevel() != 1){ |
| | | return R.fail("删除失败"); |
| | | } |
| | | Banner banner = new Banner(); |
| | | banner.setId(id); |
| | | banner.setDel(1); |
| | | bannerService.updateById(banner); |
| | | bannerService.update(new UpdateWrapper<Banner>().eq("id", id).set("del", 1)); |
| | | return R.ok(); |
| | | } |
| | | |