| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @Api(description = "患者体检记录") |
| | | @RestController |
| | | @RequestMapping("/smartor/patphysical") |
| | | public class PatMedPhysicalController extends BaseController |
| | | { |
| | | public class PatMedPhysicalController extends BaseController { |
| | | @Autowired |
| | | private IPatMedPhysicalService patMedPhysicalService; |
| | | |
| | |
| | | */ |
| | | @ApiOperation("查询患者体检记录列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:list')") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/selectPatMedPhysicalList") |
| | | public TableDataInfo selectPatMedPhysicallist(@RequestBody PatMedPhysical patMedPhysical) |
| | | { |
| | | public TableDataInfo selectPatMedPhysicallist(@RequestBody PatMedPhysical patMedPhysical) { |
| | | startPage(); |
| | | SysUser user = getLoginUser().getUser(); |
| | | patMedPhysical.setOrgid(user.getOrgid()); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:export')") |
| | | @Log(title = "患者体检记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedPhysical patMedPhysical) |
| | | { |
| | | public void export(HttpServletResponse response, PatMedPhysical patMedPhysical) { |
| | | List<PatMedPhysical> list = patMedPhysicalService.selectPatMedPhysicalList(patMedPhysical); |
| | | ExcelUtil<PatMedPhysical> util = new ExcelUtil<PatMedPhysical>(PatMedPhysical.class); |
| | | util.exportExcel(response, list, "患者体检记录数据"); |
| | |
| | | @ApiOperation("获取患者体检记录详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedPhysicalService.selectPatMedPhysicalById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("新增患者体检记录") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:add')") |
| | | @Log(title = "患者体检记录", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedPhysical patMedPhysical) |
| | | { |
| | | public AjaxResult add(@RequestBody PatMedPhysical patMedPhysical) { |
| | | return toAjax(patMedPhysicalService.insertPatMedPhysical(patMedPhysical)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("修改患者体检记录") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:edit')") |
| | | @Log(title = "患者体检记录", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedPhysical patMedPhysical) |
| | | { |
| | | public AjaxResult edit(@RequestBody PatMedPhysical patMedPhysical) { |
| | | return toAjax(patMedPhysicalService.updatePatMedPhysical(patMedPhysical)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("删除患者体检记录") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patphysical:remove')") |
| | | @Log(title = "患者体检记录", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(patMedPhysicalService.deletePatMedPhysicalByIds(ids)); |
| | | } |
| | | } |