Pu Zhibing
2025-02-25 a7dc3517b3c028eab02cdde35a57389278217ed2
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/api/ProblemTypeController.java
@@ -59,7 +59,7 @@
      if(systemUser.getAccountLevel() != 1){
         return R.fail("添加失败");
      }
      int count = problemTypeService.count(new LambdaQueryWrapper<ProblemType>().eq(ProblemType::getName, problemType.getName()).eq(ProblemType::getDel, 0));
      long count = problemTypeService.count(new LambdaQueryWrapper<ProblemType>().eq(ProblemType::getName, problemType.getName()).eq(ProblemType::getDel, 0));
      if(0 < count){
         return R.fail("该问题类型已存在");
      }
@@ -79,7 +79,7 @@
      if(systemUser.getAccountLevel() != 1){
         return R.fail("编辑失败");
      }
      int count = problemTypeService.count(new LambdaQueryWrapper<ProblemType>().eq(ProblemType::getName, problemType.getName()).eq(ProblemType::getDel, 0).ne(ProblemType::getId, problemType.getId()));
      long count = problemTypeService.count(new LambdaQueryWrapper<ProblemType>().eq(ProblemType::getName, problemType.getName()).eq(ProblemType::getDel, 0).ne(ProblemType::getId, problemType.getId()));
      if(0 < count){
         return R.fail("该问题类型已存在");
      }