| | |
| | | package com.panzhihua.sangeshenbian.api; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | 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("删除失败"); |
| | | } |
| | | ProblemType problemType = new ProblemType(); |
| | | problemType.setId(id); |
| | | problemType.setDel(1); |
| | | problemTypeService.updateById(problemType); |
| | | problemTypeService.update(new UpdateWrapper<ProblemType>().eq("id", id).set("del", 1)); |
| | | return R.ok(); |
| | | } |
| | | |