From ec2bb08f0aad10bbf1f133046d8e9943be3a6d72 Mon Sep 17 00:00:00 2001 From: zjh <zjh@888> Date: 星期三, 26 六月 2024 15:34:44 +0800 Subject: [PATCH] zjh 本地 2024/06/26 --3修改签到撤销接口不判断作废状态 --- 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