| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | /** |
| | | * 查询体检其他检测列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检其他检测列表") |
| | | public TableDataInfo list(TjOtherCheck tjOtherCheck) { |
| | |
| | | /** |
| | | * 导出体检其他检测列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:export')") |
| | | @Log(title = "体检其他检测", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出体检其他检测列表") |
| | |
| | | /** |
| | | * 获取体检其他检测详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取体检其他检测详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | |
| | | /** |
| | | * 新增体检其他检测 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:add')") |
| | | @Log(title = "体检其他检测", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增体检其他检测") |
| | |
| | | /** |
| | | * 修改体检其他检测 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:edit')") |
| | | @Log(title = "体检其他检测", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改体检其他检测") |
| | |
| | | /** |
| | | * 删除体检其他检测 |
| | | */ |
| | | @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); |
| | | } |
| | | } |