liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java
@@ -25,7 +25,7 @@
 */
@Api(description = "患者检查检验记录")
@RestController
@RequestMapping("/system/inspection")
@RequestMapping("/smartor/inspection")
public class PatMedInspectionController extends BaseController {
    @Autowired
    private IPatMedInspectionService patMedInspectionService;
@@ -34,9 +34,9 @@
     * 查询患者检查检验记录列表
     */
    @ApiOperation("查询患者检查检验记录列表")
    @PreAuthorize("@ss.hasPermi('system:inspection:list')")
    @GetMapping("/list")
    public TableDataInfo list(PatMedInspection patMedInspection) {
    //@PreAuthorize("@ss.hasPermi('system:inspection:list')")
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody PatMedInspection patMedInspection) {
        startPage();
        List<PatMedInspection> list = patMedInspectionService.selectPatMedInspectionList(patMedInspection);
        return getDataTable(list);
@@ -46,7 +46,7 @@
     * 导出患者检查检验记录列表
     */
    @ApiOperation("导出患者检查检验记录列表")
    @PreAuthorize("@ss.hasPermi('system:inspection:export')")
    //@PreAuthorize("@ss.hasPermi('system:inspection:export')")
    @Log(title = "患者检查检验记录", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, PatMedInspection patMedInspection) {
@@ -59,7 +59,7 @@
     * 获取患者检查检验记录详细信息
     */
    @ApiOperation("获取患者检查检验记录详细信息")
    @PreAuthorize("@ss.hasPermi('system:inspection:query')")
    //@PreAuthorize("@ss.hasPermi('system:inspection:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return success(patMedInspectionService.selectPatMedInspectionById(id));
@@ -68,10 +68,10 @@
    /**
     * 新增患者检查检验记录
     */
    @PreAuthorize("@ss.hasPermi('system:inspection:add')")
    //@PreAuthorize("@ss.hasPermi('system:inspection:add')")
    @Log(title = "新增患者检查检验记录", businessType = BusinessType.INSERT)
    @ApiOperation("新增患者检查检验记录")
    @PostMapping
    @PostMapping("/add")
    public AjaxResult add(@RequestBody PatMedInspection patMedInspection) {
        return toAjax(patMedInspectionService.insertPatMedInspection(patMedInspection));
    }
@@ -79,10 +79,10 @@
    /**
     * 修改患者检查检验记录
     */
    @PreAuthorize("@ss.hasPermi('system:inspection:edit')")
    //@PreAuthorize("@ss.hasPermi('system:inspection:edit')")
    @Log(title = "修改患者检查检验记录", businessType = BusinessType.UPDATE)
    @ApiOperation("修改患者检查检验记录")
    @PutMapping
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody PatMedInspection patMedInspection) {
        return toAjax(patMedInspectionService.updatePatMedInspection(patMedInspection));
    }
@@ -90,10 +90,10 @@
    /**
     * 删除患者检查检验记录
     */
    @PreAuthorize("@ss.hasPermi('system:inspection:remove')")
    //@PreAuthorize("@ss.hasPermi('system:inspection:remove')")
    @Log(title = "患者检查检验记录", businessType = BusinessType.DELETE)
    @ApiOperation("患者检查检验记录")
    @DeleteMapping("/{ids}")
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(patMedInspectionService.deletePatMedInspectionByIds(ids));
    }