Pu Zhibing
2025-02-27 dd8ba2862f97f79caeaef780dfc709985b669ccc
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/ProblemTypeController.java
@@ -1,6 +1,7 @@
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;
@@ -97,10 +98,7 @@
      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();
   }