From 1b7ed7edb09aaecf68ddf3396ee007bc6eadf52a Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期一, 30 十二月 2024 17:04:09 +0800
Subject: [PATCH] zjh202412030

---
 ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOtherCheckController.java |   29 +++++++++++++++++++++++------
 1 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOtherCheckController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOtherCheckController.java
index cc9f955..55d7b64 100644
--- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOtherCheckController.java
+++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjOtherCheckController.java
@@ -9,6 +9,7 @@
 import javax.servlet.http.HttpServletResponse;
 
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.ltkj.common.core.domain.model.LoginUser;
 import com.ltkj.common.core.redis.RedisCache;
 import com.ltkj.framework.config.MatchUtils;
 import com.ltkj.hosp.domain.TjCustomer;
@@ -18,6 +19,7 @@
 import com.ltkj.hosp.service.ITjOtherCheckService;
 import com.ltkj.hosp.service.ITjProjectService;
 import com.ltkj.hosp.service.TjAsyncService;
+import com.ltkj.system.domain.SysLogininfor;
 import com.ltkj.system.service.ISysConfigService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -52,7 +54,7 @@
     /**
      * 鏌ヨ浣撴鍏朵粬妫�娴嬪垪琛�
      */
-    @PreAuthorize("@ss.hasPermi('system:check:list')")
+    //@PreAuthorize("@ss.hasPermi('system:check:list')")
     @GetMapping("/list")
     @ApiOperation(value = "鏌ヨ浣撴鍏朵粬妫�娴嬪垪琛�")
     public TableDataInfo list(TjOtherCheck tjOtherCheck) {
@@ -102,7 +104,7 @@
     /**
      * 瀵煎嚭浣撴鍏朵粬妫�娴嬪垪琛�
      */
-    @PreAuthorize("@ss.hasPermi('system:check:export')")
+    //@PreAuthorize("@ss.hasPermi('system:check:export')")
     @Log(title = "浣撴鍏朵粬妫�娴�", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     @ApiOperation(value = "瀵煎嚭浣撴鍏朵粬妫�娴嬪垪琛�")
@@ -115,7 +117,7 @@
     /**
      * 鑾峰彇浣撴鍏朵粬妫�娴嬭缁嗕俊鎭�
      */
-    @PreAuthorize("@ss.hasPermi('system:check:query')")
+    //@PreAuthorize("@ss.hasPermi('system:check:query')")
     @GetMapping(value = "/{id}")
     @ApiOperation(value = "鑾峰彇浣撴鍏朵粬妫�娴嬭缁嗕俊鎭�")
     public AjaxResult getInfo(@PathVariable("id") String id) {
@@ -125,7 +127,7 @@
     /**
      * 鏂板浣撴鍏朵粬妫�娴�
      */
-    @PreAuthorize("@ss.hasPermi('system:check:add')")
+    //@PreAuthorize("@ss.hasPermi('system:check:add')")
     @Log(title = "浣撴鍏朵粬妫�娴�", businessType = BusinessType.INSERT)
     @PostMapping
     @ApiOperation(value = "鏂板浣撴鍏朵粬妫�娴�")
@@ -136,7 +138,7 @@
     /**
      * 淇敼浣撴鍏朵粬妫�娴�
      */
-    @PreAuthorize("@ss.hasPermi('system:check:edit')")
+    //@PreAuthorize("@ss.hasPermi('system:check:edit')")
     @Log(title = "浣撴鍏朵粬妫�娴�", businessType = BusinessType.UPDATE)
     @PutMapping
     @ApiOperation(value = "淇敼浣撴鍏朵粬妫�娴�")
@@ -147,11 +149,26 @@
     /**
      * 鍒犻櫎浣撴鍏朵粬妫�娴�
      */
-    @PreAuthorize("@ss.hasPermi('system:check:remove')")
+    //@PreAuthorize("@ss.hasPermi('system:check:remove')")
     @Log(title = "浣撴鍏朵粬妫�娴�", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
     @ApiOperation(value = "鍒犻櫎浣撴鍏朵粬妫�娴�")
     public AjaxResult remove(@PathVariable String[] ids) {
         return toAjax(tjOtherCheckService.deleteTjOtherCheckByIds(ids));
     }
+
+
+    /**
+     * 鏌ュ浘鏂囧垪琛�
+     */
+    @GetMapping("/getPhotoList")
+    @ApiOperation(value = "鏌ュ浘鏂囧垪琛�")
+    public AjaxResult getPhotoList(String tjNumber,String proId) {
+        LambdaQueryWrapper<TjOtherCheck> wq=new LambdaQueryWrapper<>();
+        wq.eq(TjOtherCheck::getTjNum,tjNumber);
+        wq.eq(TjOtherCheck::getProId,proId);
+        wq.orderByDesc(TjOtherCheck::getCreateTime);
+        List<TjOtherCheck> list = tjOtherCheckService.list(wq);
+        return AjaxResult.success(list);
+    }
 }

--
Gitblit v1.8.0