liusheng
2024-06-19 e52b0e34fc06372aab64c30b526ec289b99c9af7
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;
@@ -35,8 +35,8 @@
     */
    @ApiOperation("查询患者检查检验记录列表")
    @PreAuthorize("@ss.hasPermi('system:inspection:list')")
    @GetMapping("/list")
    public TableDataInfo list(PatMedInspection patMedInspection) {
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody PatMedInspection patMedInspection) {
        startPage();
        List<PatMedInspection> list = patMedInspectionService.selectPatMedInspectionList(patMedInspection);
        return getDataTable(list);
@@ -71,7 +71,7 @@
    @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));
    }
@@ -82,7 +82,7 @@
    @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));
    }
@@ -93,7 +93,7 @@
    @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));
    }