| | |
| | | public class PatArchiveController extends BaseController { |
| | | @Autowired |
| | | private IPatArchiveService patArchiveService; |
| | | // |
| | | // /** |
| | | // * 查询患者档案列表 |
| | | // */ |
| | | // @ApiOperation("查询患者档案列表") |
| | | // @PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | // @PostMapping("/list") |
| | | // public TableDataInfo list(@RequestBody PatArchive patArchive) { |
| | | // startPage(); |
| | | // List<PatArchive> list = patArchiveService.selectPatArchiveList(patArchive); |
| | | // return getDataTable(list); |
| | | //} |
| | | |
| | | /** |
| | | * 查询患者档案列表 |
| | | */ |
| | | @ApiOperation("查询患者档案列表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatArchive patArchive) { |
| | | startPage(); |
| | | List<PatArchive> list = patArchiveService.selectPatArchiveList(patArchive); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出患者档案列表 |
| | | */ |
| | | @ApiOperation("导出患者档案列表") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:export')") |
| | | @Log(title = "患者档案", businessType = BusinessType.EXPORT) |
| | | @Log(title = "患者档案" , businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatArchive patArchive) { |
| | | List<PatArchive> list = patArchiveService.selectPatArchiveList(patArchive); |
| | |
| | | @ApiOperation("获取患者档案详细信息") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:query')") |
| | | @GetMapping(value = "/getInfo/{patid}") |
| | | @ApiImplicitParam(name = "patid", value = "患者id") |
| | | @ApiImplicitParam(name = "patid" , value = "患者id") |
| | | public AjaxResult getInfo(@PathVariable(name = "patid") Long patid) { |
| | | return success(patArchiveService.selectPatArchiveByPatid(patid)); |
| | | } |
| | |
| | | // } |
| | | |
| | | /** |
| | | * 新增患者档案 |
| | | */ |
| | | @ApiOperation("修改患者档案") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:update')") |
| | | @Log(title = "患者档案" , businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody PatArchive patArchive) { |
| | | return toAjax(patArchiveService.update(patArchive)); |
| | | } |
| | | |
| | | /** |
| | | * 新增或修改患者档信息 |
| | | */ |
| | | @ApiOperation("新增或修改患者档信息") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:edit')") |
| | | @Log(title = "患者档案", businessType = BusinessType.UPDATE) |
| | | @Log(title = "患者档案" , businessType = BusinessType.UPDATE) |
| | | @PostMapping("/saveOrUpdatePatInfo") |
| | | public AjaxResult saveOrUpdatePatInfo(@RequestBody PatArchiveVO patArchiveVO) { |
| | | return toAjax(patArchiveService.saveOrUpdatePatInfo(patArchiveVO)); |
| | |
| | | */ |
| | | @ApiOperation("删除患者档案") |
| | | @PreAuthorize("@ss.hasPermi('smartor:patarchive:remove')") |
| | | @Log(title = "患者档案", businessType = BusinessType.DELETE) |
| | | @Log(title = "患者档案" , businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{patids}") |
| | | @ApiImplicitParam(name = "patids", value = "患者id集合", dataType = "long", dataTypeClass = Long.class) |
| | | @ApiImplicitParam(name = "patids" , value = "患者id集合" , dataType = "long" , dataTypeClass = Long.class) |
| | | public AjaxResult remove(@PathVariable Long[] patids) { |
| | | return toAjax(patArchiveService.deletePatArchiveByPatids(patids)); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("导入患者文件处理") |
| | | @PostMapping("/importFilehandle") |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "tags", value = "标签"), @ApiImplicitParam(name = "multipartFile", value = "上传文件")}) |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "tags" , value = "标签"), @ApiImplicitParam(name = "multipartFile" , value = "上传文件")}) |
| | | public AjaxResult importFilehandle(@RequestParam("tags") String tags, @RequestParam("multipartFile") MultipartFile multipartFile) { |
| | | Executor executor = Executors.newFixedThreadPool(3); |
| | | //获取当前登陆人 |
| | |
| | | @PostMapping("/getPatientInfo") |
| | | public TableDataInfo getPatientInfo(@RequestBody PatArchiveReq patArchiveReq) { |
| | | PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize()); |
| | | List<PatTaskRelevance> patientInfo = patArchiveService.getPatientInfo(patArchiveReq); |
| | | List<ServiceSubtask> patientInfo = patArchiveService.getPatientInfo(patArchiveReq); |
| | | long count = PageUtils.count(new ISelect() { |
| | | @Override |
| | | public void doSelect() { |
| | |
| | | return getDataTable2(count, patientInfo); |
| | | } |
| | | |
| | | |
| | | } |