zhaowenxuan
2024-10-21 936e2c79cd741472a6acfe28d730eb644b082cf7
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);
    }
}