| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/patouthosp") |
| | | @Api("患者门诊记录") |
| | | @Api(description = "患者门诊记录") |
| | | public class PatMedOuthospController extends BaseController { |
| | | @Autowired |
| | | private IPatMedOuthospService patMedOuthospService; |
| | |
| | | * 查询患者门诊记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:list')") |
| | | @GetMapping("/list") |
| | | @PostMapping("/selectPatMedOuthospList") |
| | | @ApiOperation("查询患者门诊记录列表") |
| | | public TableDataInfo list(PatMedOuthosp patMedOuthosp) { |
| | | public TableDataInfo selectPatMedOuthosplist(@RequestBody PatMedOuthosp patMedOuthosp) { |
| | | startPage(); |
| | | List<PatMedOuthosp> list = patMedOuthospService.selectPatMedOuthospList(patMedOuthosp); |
| | | return getDataTable(list); |
| | |
| | | @ApiOperation("新增患者门诊记录") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:add')") |
| | | @Log(title = "患者门诊记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOuthosp patMedOuthosp) { |
| | | return toAjax(patMedOuthospService.insertPatMedOuthosp(patMedOuthosp)); |
| | | } |
| | |
| | | @ApiOperation("修改患者门诊记录") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:edit')") |
| | | @Log(title = "患者门诊记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOuthosp patMedOuthosp) { |
| | | return toAjax(patMedOuthospService.updatePatMedOuthosp(patMedOuthosp)); |
| | | } |
| | |
| | | @PreAuthorize("@ss.hasPermi('smartor:patouthosp:remove')") |
| | | @ApiImplicitParam(name = "remove", value = "主键ID", dataType = "long", dataTypeClass = Array.class) |
| | | @Log(title = "患者门诊记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patMedOuthospService.deletePatMedOuthospByIds(ids)); |
| | | } |