| | |
| | | /** |
| | | * 查询advice列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:list')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "体检建议列表查询") |
| | | public AjaxResult list(@RequestParam(required = false) @ApiParam(value = "项目名") String proName, |
| | |
| | | /** |
| | | * 导出advice列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:export')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:export')") |
| | | @Log(title = "advice", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjAdvice tjAdvice) { |
| | |
| | | /** |
| | | * 获取advice详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:query')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(tjAdviceService.selectTjAdviceById(id)); |
| | |
| | | /** |
| | | * 新增advice |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:add')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:add')") |
| | | @Log(title = "advice", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjAdvice tjAdvice) { |
| | |
| | | /** |
| | | * 修改advice |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:edit')") |
| | | @Log(title = "advice", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjAdvice tjAdvice) { |
| | |
| | | /** |
| | | * 删除advice |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:remove')") |
| | | @Log(title = "advice", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |