From d015cc0b48ca51a2b93b6c60c91dc352a104b1e7 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: 星期一, 23 九月 2024 10:41:50 +0800
Subject: [PATCH] 删除密码加密

---
 goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/controller/ExamineMngController.java |   33 +++++++++++++--------------------
 1 files changed, 13 insertions(+), 20 deletions(-)

diff --git a/goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/controller/ExamineMngController.java b/goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/controller/ExamineMngController.java
index cb150be..83a5405 100644
--- a/goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/controller/ExamineMngController.java
+++ b/goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/controller/ExamineMngController.java
@@ -11,6 +11,7 @@
 import com.gkhy.safePlatform.targetDuty.model.dto.req.ExamineMngQueryCriteria;
 import com.gkhy.safePlatform.targetDuty.model.dto.resp.ExamineMngDto;
 import com.gkhy.safePlatform.targetDuty.service.ExamineMngService;
+import com.gkhy.safePlatform.targetDuty.service.baseService.ExamineMngBaseService;
 import org.springframework.security.core.Authentication;
 import org.springframework.web.bind.annotation.*;
 
@@ -37,6 +38,10 @@
     @Resource
     private ExamineMngService examineMngService;
 
+    @Resource
+    private ExamineMngBaseService examineMngBaseService;
+
+
     /**
      * 分页查询所有数据
      *
@@ -45,10 +50,10 @@
      */
     @PostMapping(value = "/page/list")
     public ResultVO selectAll(@RequestBody PageQuery<ExamineMngQueryCriteria> pageQuery){
-		PageUtils.checkCheck(pageQuery);
+
 		return this.examineMngService.queryAll(pageQuery);
     }
-	
+
 
     /**
      * 通过主键查询单条数据
@@ -71,13 +76,13 @@
     @PostMapping(value = "/addOrUpdate")
     public ResultVO update(Authentication authentication, @RequestBody ExamineMng examineMng) {
         // 获取当前用户
-        ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal();
+/*        ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal();
         examineMng.setExamineDepartmentId(currentUser.getDepId());
-        examineMng.setExaminePersonId(currentUser.getUid());
+        examineMng.setExaminePersonId(currentUser.getUid());*/
         if (examineMng.getId() == null) {
-            return new ResultVO<>(ResultCodes.OK,examineMngService.save(examineMng));
+            return new ResultVO<>(ResultCodes.OK,examineMngBaseService.save(examineMng));
         } else {
-            examineMngService.update(examineMng,new UpdateWrapper<ExamineMng>().eq("id",examineMng.getId()));
+            examineMngBaseService.update(examineMng,new UpdateWrapper<ExamineMng>().eq("id",examineMng.getId()));
             return new ResultVO<>(ResultCodes.OK);
         }
     }
@@ -90,19 +95,7 @@
      */
     @RequestMapping(value = "/delete",method = RequestMethod.POST)
     public ResultVO delete(@RequestBody Long[] ids) {
-        if(ids == null){
-            return new ResultVO<>(ResultCodes.CLIENT_PARAM_ILLEGAL);
-        }
-        List<Long> idList = Arrays.asList(ids);
-
-        List<ExamineMng> delList = new ArrayList<>();
-        idList.forEach(f->{
-            ExamineMng info = new ExamineMng();
-            info.setDelFlag(1);
-            info.setId(f);
-            delList.add(info);
-        });
-        this.examineMngService.updateBatchById(delList);
+        this.examineMngService.delete(ids);
         return new ResultVO<>(ResultCodes.OK);
     }
 
@@ -124,4 +117,4 @@
 
         System.out.println(JSONObject.toJSONString(examineTemplateSaveOrUpdate));
     }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.2