| | |
| | | /** |
| | | * 查询小程序主页轮播图列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:banner:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:banner:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询小程序主页轮播图列表") |
| | | public TableDataInfo list(AppBanner appBanner) { |
| | |
| | | //@PreAuthorize("@ss.hasPermi('hosp:banner:export')") |
| | | @Log(title = "小程序主页轮播图", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出小程序主页轮播图列表") |
| | | //@ApiOperation(value = "导出小程序主页轮播图列表") |
| | | public void export(HttpServletResponse response, AppBanner appBanner) { |
| | | List<AppBanner> list = appBannerService.selectAppBannerList(appBanner); |
| | | ExcelUtil<AppBanner> util = new ExcelUtil<AppBanner>(AppBanner.class); |
| | |
| | | /** |
| | | * 获取小程序主页轮播图详细信息 |
| | | */ |
| | | @ApiOperation(value = "获取小程序主页轮播图详细信息") |
| | | //@ApiOperation(value = "获取小程序主页轮播图详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:banner:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 新增小程序主页轮播图 |
| | | */ |
| | | @ApiOperation(value = "新增小程序主页轮播图") |
| | | //@ApiOperation(value = "新增小程序主页轮播图") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:banner:add')") |
| | | @Log(title = "小程序主页轮播图", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | |
| | | /** |
| | | * 修改小程序主页轮播图 |
| | | */ |
| | | @ApiOperation(value = "修改小程序主页轮播图") |
| | | //@ApiOperation(value = "修改小程序主页轮播图") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:banner:edit')") |
| | | @Log(title = "小程序主页轮播图", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | |
| | | /** |
| | | * 删除小程序主页轮播图 |
| | | */ |
| | | @ApiOperation(value = "删除小程序主页轮播图") |
| | | //@ApiOperation(value = "删除小程序主页轮播图") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:banner:remove')") |
| | | @Log(title = "小程序主页轮播图", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | |
| | | caches.add(new SysCache(CacheConstants.PWD_ERR_CNT_KEY, "密码错误次数")); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @GetMapping() |
| | | public AjaxResult getInfo() throws Exception { |
| | | Properties info = (Properties) redisTemplate.execute((RedisCallback<Object>) connection -> connection.info()); |
| | |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @GetMapping("/getNames") |
| | | public AjaxResult cache() { |
| | | return AjaxResult.success(caches); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @GetMapping("/getKeys/{cacheName}") |
| | | public AjaxResult getCacheKeys(@PathVariable String cacheName) { |
| | | Set<String> cacheKeys = redisTemplate.keys(cacheName + "*"); |
| | | return AjaxResult.success(cacheKeys); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @GetMapping("/getValue/{cacheName}/{cacheKey}") |
| | | public AjaxResult getCacheValue(@PathVariable String cacheName, @PathVariable String cacheKey) { |
| | | String cacheValue = redisTemplate.opsForValue().get(cacheKey); |
| | |
| | | return AjaxResult.success(sysCache); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @DeleteMapping("/clearCacheName/{cacheName}") |
| | | public AjaxResult clearCacheName(@PathVariable String cacheName) { |
| | | Collection<String> cacheKeys = redisTemplate.keys(cacheName + "*"); |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @DeleteMapping("/clearCacheKey/{cacheKey}") |
| | | public AjaxResult clearCacheKey(@PathVariable String cacheKey) { |
| | | redisTemplate.delete(cacheKey); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | //@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
| | | @DeleteMapping("/clearCacheAll") |
| | | public AjaxResult clearCacheAll() { |
| | | Collection<String> cacheKeys = redisTemplate.keys("*"); |
| | |
| | | /** |
| | | * 查询体检单位信息维护列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:comp:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:comp:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(DictComp dictComp) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出体检单位信息维护列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:comp:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:comp:export')") |
| | | @Log(title = "体检单位信息维护", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, DictComp dictComp) { |
| | |
| | | /** |
| | | * 获取体检单位信息维护详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:comp:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:comp:query')") |
| | | @GetMapping(value = "/{drugManufacturerId}") |
| | | public AjaxResult getInfo(@PathVariable("drugManufacturerId") String drugManufacturerId) { |
| | | return success(dictCompService.selectDictCompByDrugManufacturerId(drugManufacturerId)); |
| | |
| | | /** |
| | | * 新增体检单位信息维护 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:comp:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:comp:add')") |
| | | @Log(title = "体检单位信息维护", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody DictComp dictComp) { |
| | |
| | | /** |
| | | * 修改体检单位信息维护 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:comp:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:comp:edit')") |
| | | @Log(title = "体检单位信息维护", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody DictComp dictComp) { |
| | |
| | | /** |
| | | * 删除体检单位信息维护 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:comp:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:comp:remove')") |
| | | @Log(title = "体检单位信息维护", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{drugManufacturerIds}") |
| | | public AjaxResult remove(@PathVariable String[] drugManufacturerIds) { |
| | |
| | | /** |
| | | * 查询知识库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询") |
| | | public TableDataInfo list(DictEmer dictEmer) { |
| | |
| | | /** |
| | | * 导出知识库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:export')") |
| | | @Log(title = "知识库", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出") |
| | |
| | | /** |
| | | * 获取知识库详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "根据id获取信息") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 新增知识库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:add')") |
| | | @Log(title = "知识库", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增") |
| | |
| | | /** |
| | | * 修改知识库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:edit')") |
| | | @Log(title = "知识库", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改") |
| | |
| | | /** |
| | | * 删除知识库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:emer:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:emer:remove')") |
| | | @Log(title = "知识库", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除") |
| | |
| | | /** |
| | | * 查询院区信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:hosp:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:hosp:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询院区信息列表") |
| | | public TableDataInfo list(DictHosp dictHosp) { |
| | |
| | | /** |
| | | * 导出院区信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:hosp:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:hosp:export')") |
| | | @Log(title = "院区信息", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出院区信息列表") |
| | |
| | | /** |
| | | * 获取院区信息详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:hosp:query')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:hosp:query')") |
| | | @GetMapping(value = "/{hospAreaId}") |
| | | @ApiOperation(value = "获取院区信息详细信息") |
| | | public AjaxResult getInfo(@PathVariable("hospAreaId") String hospAreaId) { |
| | |
| | | /** |
| | | * 新增院区信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:hosp:add')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:hosp:add')") |
| | | @Log(title = "院区信息", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增院区信息") |
| | |
| | | /** |
| | | * 修改院区信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:hosp:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:hosp:edit')") |
| | | @Log(title = "院区信息", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改院区信息") |
| | |
| | | /** |
| | | * 删除院区信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:hosp:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:hosp:remove')") |
| | | @Log(title = "院区信息", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{hospAreaIds}") |
| | | @ApiOperation(value = "删除院区信息") |
| | |
| | | /** |
| | | * 查询疾病字典列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:icd:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd:list')") |
| | | @GetMapping("/getList") |
| | | @ApiOperation(value = "团检统计页面查询疾病接口") |
| | | public AjaxResult getList(@ApiParam(value = "名称") @RequestParam(required = false) String name, |
| | |
| | | /** |
| | | * 查询疾病字典列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:icd:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询") |
| | | public TableDataInfo list(DictIcd dictIcd) { |
| | |
| | | /** |
| | | * 导出疾病字典列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:icd:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd:export')") |
| | | @Log(title = "疾病字典", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出") |
| | |
| | | /** |
| | | * 获取疾病字典详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:icd:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 新增疾病字典 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:icd:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd:add')") |
| | | @Log(title = "疾病字典", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增") |
| | |
| | | /** |
| | | * 修改疾病字典 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:icd:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd:edit')") |
| | | @Log(title = "疾病字典", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改") |
| | |
| | | /** |
| | | * 删除疾病字典 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:icd:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:icd:remove')") |
| | | @Log(title = "疾病字典", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除") |
| | |
| | | /** |
| | | * 查询机构信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:org:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:org:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询机构信息列表") |
| | | public TableDataInfo list(@ApiParam(value = "机构对象") DictOrg dictOrg) { |
| | |
| | | /** |
| | | * 导出机构信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:org:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:org:export')") |
| | | @Log(title = "机构信息", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出机构信息列表") |
| | |
| | | /** |
| | | * 获取机构信息详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:org:query')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:org:query')") |
| | | @GetMapping(value = "/{orgId}") |
| | | @ApiOperation(value = "获取机构信息详细信息") |
| | | public AjaxResult getInfo(@PathVariable("orgId") String orgId) { |
| | |
| | | /** |
| | | * 新增机构信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:org:add')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:org:add')") |
| | | @Log(title = "机构信息", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增机构信息") |
| | |
| | | /** |
| | | * 修改机构信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:org:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:org:edit')") |
| | | @Log(title = "机构信息", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改机构信息") |
| | |
| | | /** |
| | | * 删除机构信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:org:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:org:remove')") |
| | | @Log(title = "机构信息", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{orgIds}") |
| | | @ApiOperation(value = "删除机构信息") |
| | |
| | | /** |
| | | * 查询收费项目列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:sfxm:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:sfxm:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询") |
| | | public TableDataInfo list(DictSfxm dictSfxm) { |
| | |
| | | /** |
| | | * 导出收费项目列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:sfxm:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:sfxm:export')") |
| | | @Log(title = "收费项目", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出") |
| | |
| | | /** |
| | | * 获取收费项目详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:sfxm:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:sfxm:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "详情信息") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 新增收费项目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:sfxm:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:sfxm:add')") |
| | | @Log(title = "收费项目", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增") |
| | |
| | | /** |
| | | * 修改收费项目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:sfxm:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:sfxm:edit')") |
| | | @Log(title = "收费项目", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改") |
| | |
| | | /** |
| | | * 删除收费项目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:sfxm:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:sfxm:remove')") |
| | | @Log(title = "收费项目", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除") |
| | |
| | | /** |
| | | * 查询手术编码列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ssdm:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ssdm:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询") |
| | | public TableDataInfo list(DictSsdm dictSsdm) { |
| | |
| | | /** |
| | | * 导出手术编码列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ssdm:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ssdm:export')") |
| | | @Log(title = "手术编码", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出") |
| | |
| | | /** |
| | | * 获取手术编码详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ssdm:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ssdm:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 新增手术编码 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ssdm:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ssdm:add')") |
| | | @Log(title = "手术编码", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增") |
| | |
| | | /** |
| | | * 修改手术编码 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ssdm:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ssdm:edit')") |
| | | @Log(title = "手术编码", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改") |
| | |
| | | /** |
| | | * 删除手术编码 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ssdm:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ssdm:remove')") |
| | | @Log(title = "手术编码", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除") |
| | |
| | | /** |
| | | * 获取用户信息详情详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:Userinfo:getInfoList')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:Userinfo:getInfoList')") |
| | | @GetMapping(value = "/list") |
| | | @ApiOperation("查询详情信息") |
| | | public AjaxResult getInfoList(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize) { |
| | |
| | | /** |
| | | * 获取用户信息详情详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:Userinfo:query')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:Userinfo:query')") |
| | | @GetMapping("/{id}") |
| | | @ApiOperation("根据用户id查询详情信息") |
| | | public AjaxResult getInfo(@PathVariable("id") @ApiParam(value = "用户id") Long userId) { |
| | |
| | | /** |
| | | * 新增用户信息详情 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:Userinfo:add')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:Userinfo:add')") |
| | | @Log(title = "用户信息详情", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | //@ApiOperation("完善用户信息") |
| | |
| | | /** |
| | | * 修改用户信息详情 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:Userinfo:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:Userinfo:edit')") |
| | | @Log(title = "用户信息详情", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation("修改用户信息") |
| | |
| | | /** |
| | | * 查询药品项目列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ypdm:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ypdm:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询") |
| | | public TableDataInfo list(DictYpdm dictYpdm) { |
| | |
| | | /** |
| | | * 导出药品项目列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ypdm:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ypdm:export')") |
| | | @Log(title = "药品项目", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出") |
| | |
| | | /** |
| | | * 获取药品项目详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ypdm:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ypdm:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 新增药品项目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ypdm:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ypdm:add')") |
| | | @Log(title = "药品项目", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增") |
| | |
| | | /** |
| | | * 修改药品项目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ypdm:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ypdm:edit')") |
| | | @Log(title = "药品项目", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改") |
| | |
| | | /** |
| | | * 删除药品项目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:ypdm:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:ypdm:remove')") |
| | | @Log(title = "药品项目", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除") |
| | |
| | | /** |
| | | * 查询在线excel设计器列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:onlinereport:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:onlinereport:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(JimuReport jimuReport) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出在线excel设计器列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:onlinereport:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:onlinereport:export')") |
| | | @Log(title = "在线excel设计器", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, JimuReport jimuReport) { |
| | |
| | | /** |
| | | * 获取在线excel设计器详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:onlinereport:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:onlinereport:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(jimuReportService.selectJimuReportById(id)); |
| | |
| | | /** |
| | | * 新增在线excel设计器 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:onlinereport:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:onlinereport:add')") |
| | | @Log(title = "在线excel设计器", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody JimuReport jimuReport) { |
| | |
| | | * 修改在线excel设计器 |
| | | */ |
| | | @ApiOperation(value = "修改") |
| | | @PreAuthorize("@ss.hasPermi('system:onlinereport:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:onlinereport:edit')") |
| | | @Log(title = "在线excel设计器", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody JimuReport jimuReport) { |
| | |
| | | /** |
| | | * 删除在线excel设计器 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:onlinereport:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:onlinereport:remove')") |
| | | @Log(title = "在线excel设计器", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | |
| | | @RestController |
| | | @RequestMapping("/monitor/server") |
| | | public class ServerController { |
| | | @PreAuthorize("@ss.hasPermi('monitor:server:list')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:server:list')") |
| | | @GetMapping() |
| | | public AjaxResult getInfo() throws Exception { |
| | | Server server = new Server(); |
| | |
| | | /** |
| | | * 获取参数配置列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:config:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "获取参数配置列表") |
| | | public TableDataInfo list(SysConfig config) { |
| | |
| | | } |
| | | |
| | | @Log(title = "参数管理", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:config:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:config:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysConfig config) { |
| | | List<SysConfig> list = configService.selectConfigList(config); |
| | |
| | | /** |
| | | * 根据参数编号获取详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:config:query')") |
| | | @GetMapping(value = "/{configId}") |
| | | public AjaxResult getInfo(@PathVariable Long configId) { |
| | | return success(configService.selectConfigById(configId)); |
| | |
| | | /** |
| | | * 新增参数配置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:config:add')") |
| | | @Log(title = "参数管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysConfig config) { |
| | |
| | | /** |
| | | * 修改参数配置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:config:edit')") |
| | | @Log(title = "参数管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysConfig config) { |
| | |
| | | /** |
| | | * 删除参数配置 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:config:remove')") |
| | | @Log(title = "参数管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{configIds}") |
| | | public AjaxResult remove(@PathVariable Long[] configIds) { |
| | |
| | | /** |
| | | * 刷新参数缓存 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:config:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:config:remove')") |
| | | @Log(title = "参数管理", businessType = BusinessType.CLEAN) |
| | | @DeleteMapping("/refreshCache") |
| | | public AjaxResult refreshCache() { |
| | |
| | | @Autowired |
| | | private ISysDictTypeService dictTypeService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:dict:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:dict:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysDictData dictData) { |
| | | startPage(); |
| | |
| | | @Autowired |
| | | private ISysDictTypeService dictTypeService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:dict:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:dict:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysDictType dictType) { |
| | | startPage(); |
| | |
| | | } |
| | | |
| | | @Log(title = "字典类型", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:dict:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:dict:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysDictType dictType) { |
| | | List<SysDictType> list = dictTypeService.selectDictTypeList(dictType); |
| | |
| | | /** |
| | | * 查询字典类型详细 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:dict:query')") |
| | | @GetMapping(value = "/{dictId}") |
| | | public AjaxResult getInfo(@PathVariable Long dictId) { |
| | | return success(dictTypeService.selectDictTypeById(dictId)); |
| | |
| | | /** |
| | | * 新增字典类型 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:dict:add')") |
| | | @Log(title = "字典类型", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysDictType dict) { |
| | |
| | | /** |
| | | * 修改字典类型 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:dict:edit')") |
| | | @Log(title = "字典类型", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysDictType dict) { |
| | |
| | | /** |
| | | * 删除字典类型 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | @Log(title = "字典类型", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{dictIds}") |
| | | public AjaxResult remove(@PathVariable Long[] dictIds) { |
| | |
| | | /** |
| | | * 刷新字典缓存 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:dict:remove')") |
| | | @Log(title = "字典类型", businessType = BusinessType.CLEAN) |
| | | @DeleteMapping("/refreshCache") |
| | | public AjaxResult refreshCache() { |
| | |
| | | @Autowired |
| | | private SysPasswordService passwordService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:list')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:logininfor:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysLogininfor logininfor) { |
| | | startPage(); |
| | |
| | | } |
| | | |
| | | @Log(title = "登录日志", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:export')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:logininfor:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysLogininfor logininfor) { |
| | | List<SysLogininfor> list = logininforService.selectLogininforList(logininfor); |
| | |
| | | util.exportExcel(response, list, "登录日志"); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |
| | | @Log(title = "登录日志", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{infoIds}") |
| | | public AjaxResult remove(@PathVariable Long[] infoIds) { |
| | | return toAjax(logininforService.deleteLogininforByIds(infoIds)); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") |
| | | @Log(title = "登录日志", businessType = BusinessType.CLEAN) |
| | | @DeleteMapping("/clean") |
| | | public AjaxResult clean() { |
| | |
| | | return success(); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:unlock')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:logininfor:unlock')") |
| | | @Log(title = "账户解锁", businessType = BusinessType.OTHER) |
| | | @GetMapping("/unlock/{userName}") |
| | | public AjaxResult unlock(@PathVariable("userName") String userName) { |
| | |
| | | /** |
| | | * 获取菜单列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:menu:list')") |
| | | @GetMapping("/list") |
| | | public AjaxResult list(SysMenu menu) { |
| | | List<SysMenu> menus = menuService.selectMenuList(menu, getUserId()); |
| | |
| | | /** |
| | | * 根据菜单编号获取详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:menu:query')") |
| | | @GetMapping(value = "/{menuId}") |
| | | public AjaxResult getInfo(@PathVariable Long menuId) { |
| | | return success(menuService.selectMenuById(menuId)); |
| | |
| | | /** |
| | | * 新增菜单 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:menu:add')") |
| | | @Log(title = "菜单管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysMenu menu) { |
| | |
| | | /** |
| | | * 修改菜单 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:menu:edit')") |
| | | @Log(title = "菜单管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysMenu menu) { |
| | |
| | | /** |
| | | * 删除菜单 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:menu:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:menu:remove')") |
| | | @Log(title = "菜单管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{menuId}") |
| | | public AjaxResult remove(@PathVariable("menuId") Long menuId) { |
| | |
| | | } |
| | | return toAjax(menuService.deleteMenuById(menuId)); |
| | | } |
| | | } |
| | | } |
| | |
| | | /** |
| | | * 获取通知公告列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:notice:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysNotice notice) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 根据通知公告编号获取详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:notice:query')") |
| | | @GetMapping(value = "/{noticeId}") |
| | | public AjaxResult getInfo(@PathVariable Long noticeId) { |
| | | return success(noticeService.selectNoticeById(noticeId)); |
| | |
| | | /** |
| | | * 新增通知公告 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:notice:add')") |
| | | @Log(title = "通知公告", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysNotice notice) { |
| | |
| | | /** |
| | | * 修改通知公告 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:notice:edit')") |
| | | @Log(title = "通知公告", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysNotice notice) { |
| | |
| | | /** |
| | | * 删除通知公告 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:notice:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:notice:remove')") |
| | | @Log(title = "通知公告", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{noticeIds}") |
| | | public AjaxResult remove(@PathVariable Long[] noticeIds) { |
| | |
| | | @Autowired |
| | | private ISysOperLogService operLogService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:operlog:list')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:operlog:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysOperLog operLog) { |
| | | startPage(); |
| | |
| | | } |
| | | |
| | | @Log(title = "操作日志", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('monitor:operlog:export')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:operlog:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysOperLog operLog) { |
| | | List<SysOperLog> list = operLogService.selectOperLogList(operLog); |
| | |
| | | } |
| | | |
| | | @Log(title = "操作日志", businessType = BusinessType.DELETE) |
| | | @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |
| | | @DeleteMapping("/{operIds}") |
| | | public AjaxResult remove(@PathVariable Long[] operIds) { |
| | | return toAjax(operLogService.deleteOperLogByIds(operIds)); |
| | | } |
| | | |
| | | @Log(title = "操作日志", businessType = BusinessType.CLEAN) |
| | | @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") |
| | | @DeleteMapping("/clean") |
| | | public AjaxResult clean() { |
| | | operLogService.cleanOperLog(); |
| | |
| | | /** |
| | | * 获取岗位列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:post:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysPost post) { |
| | | startPage(); |
| | |
| | | } |
| | | |
| | | @Log(title = "岗位管理", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:post:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:post:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysPost post) { |
| | | List<SysPost> list = postService.selectPostList(post); |
| | |
| | | /** |
| | | * 根据岗位编号获取详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:post:query')") |
| | | @GetMapping(value = "/{postId}") |
| | | public AjaxResult getInfo(@PathVariable Long postId) { |
| | | return success(postService.selectPostById(postId)); |
| | |
| | | /** |
| | | * 新增岗位 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:post:add')") |
| | | @Log(title = "岗位管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysPost post) { |
| | |
| | | /** |
| | | * 修改岗位 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:post:edit')") |
| | | @Log(title = "岗位管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysPost post) { |
| | |
| | | /** |
| | | * 删除岗位 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:post:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:post:remove')") |
| | | @Log(title = "岗位管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{postIds}") |
| | | public AjaxResult remove(@PathVariable Long[] postIds) { |
| | |
| | | @Autowired |
| | | private ISysDeptService deptService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SysRole role) { |
| | | startPage(); |
| | |
| | | } |
| | | |
| | | @Log(title = "角色管理", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:role:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysRole role) { |
| | | List<SysRole> list = roleService.selectRoleList(role); |
| | |
| | | /** |
| | | * 根据角色编号获取详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | @GetMapping(value = "/{roleId}") |
| | | public AjaxResult getInfo(@PathVariable Long roleId) { |
| | | roleService.checkRoleDataScope(roleId); |
| | |
| | | /** |
| | | * 新增角色 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:add')") |
| | | @Log(title = "角色管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@Validated @RequestBody SysRole role) { |
| | |
| | | /** |
| | | * 修改保存角色 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "角色管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@Validated @RequestBody SysRole role) { |
| | |
| | | /** |
| | | * 修改保存数据权限 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "角色管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/dataScope") |
| | | public AjaxResult dataScope(@RequestBody SysRole role) { |
| | |
| | | /** |
| | | * 状态修改 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "角色管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/changeStatus") |
| | | public AjaxResult changeStatus(@RequestBody SysRole role) { |
| | |
| | | /** |
| | | * 删除角色 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:remove')") |
| | | @Log(title = "角色管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{roleIds}") |
| | | public AjaxResult remove(@PathVariable Long[] roleIds) { |
| | |
| | | /** |
| | | * 获取角色选择框列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | @GetMapping("/optionselect") |
| | | public AjaxResult optionselect() { |
| | | return success(roleService.selectRoleAll()); |
| | |
| | | /** |
| | | * 查询已分配用户角色列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @GetMapping("/authUser/allocatedList") |
| | | public TableDataInfo allocatedList(SysUser user) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 查询未分配用户角色列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:list')") |
| | | @GetMapping("/authUser/unallocatedList") |
| | | public TableDataInfo unallocatedList(SysUser user) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 取消授权用户 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "角色管理", businessType = BusinessType.GRANT) |
| | | @PutMapping("/authUser/cancel") |
| | | public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole) { |
| | |
| | | /** |
| | | * 批量取消授权用户 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "角色管理", businessType = BusinessType.GRANT) |
| | | @PutMapping("/authUser/cancelAll") |
| | | public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds) { |
| | |
| | | /** |
| | | * 批量选择用户授权 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @Log(title = "角色管理", businessType = BusinessType.GRANT) |
| | | @PutMapping("/authUser/selectAll") |
| | | public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds) { |
| | |
| | | /** |
| | | * 获取对应角色部门树列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:role:query')") |
| | | @GetMapping(value = "/deptTree/{roleId}") |
| | | public AjaxResult deptTree(@PathVariable("roleId") Long roleId) { |
| | | AjaxResult ajax = AjaxResult.success(); |
| | |
| | | /** |
| | | * 获取用户列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation("获取用户") |
| | | public TableDataInfo list(@ApiParam(value = "用户对象") SysUser user) { |
| | |
| | | } |
| | | |
| | | @Log(title = "用户管理", businessType = BusinessType.EXPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:user:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SysUser user) { |
| | | List<SysUser> list = userService.selectUserList(user); |
| | |
| | | } |
| | | |
| | | @Log(title = "用户管理", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:user:import')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:import')") |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { |
| | | ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class); |
| | |
| | | /** |
| | | * 根据用户id获取详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:query')") |
| | | @GetMapping("/{userId}") |
| | | @ApiOperation("根据用户id获取详细信息") |
| | | public AjaxResult getInfo(@PathVariable(value = "userId") @ApiParam(value = "用户id") @RequestParam Long userId) { |
| | |
| | | /** |
| | | * 新增用户 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:add')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:add')") |
| | | @Log(title = "用户管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增用户") |
| | |
| | | /** |
| | | * 修改用户 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | @Log(title = "用户管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改用户") |
| | |
| | | /** |
| | | * 删除用户 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:remove')") |
| | | @Log(title = "用户管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{userIds}") |
| | | @ApiOperation("删除用户") |
| | |
| | | /** |
| | | * 重置密码 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:resetPwd')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:resetPwd')") |
| | | @Log(title = "用户管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/resetPwd") |
| | | public AjaxResult resetPwd(@RequestBody SysUser user) { |
| | | userService.checkUserAllowed(user); |
| | | userService.checkUserDataScope(user.getUserId()); |
| | | System.out.println(user.getPassword()); |
| | | user.setPassword(SecurityUtils.encryptPassword(user.getPassword())); |
| | | user.setUpdateBy(getUsername()); |
| | | return toAjax(userService.resetPwd(user)); |
| | |
| | | /** |
| | | * 状态修改 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | @Log(title = "用户管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/changeStatus") |
| | | public AjaxResult changeStatus(@RequestBody SysUser user) { |
| | |
| | | /** |
| | | * 根据用户编号获取授权角色 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:query')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:query')") |
| | | @GetMapping("/authRole/{userId}") |
| | | @ApiOperation(value = "根据用户编号获取授权角色") |
| | | public AjaxResult authRole(@PathVariable("userId") Long userId) { |
| | |
| | | /** |
| | | * 用户授权角色 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | @Log(title = "用户管理", businessType = BusinessType.GRANT) |
| | | @PutMapping("/authRole") |
| | | @ApiOperation(value = "用户授权角色") |
| | |
| | | /** |
| | | * 获取部门树列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | // @PreAuthorize("@ss.hasPermi('system:user:list')") |
| | | @GetMapping("/deptTree") |
| | | public AjaxResult deptTree(SysDept dept) { |
| | | return success(deptService.selectDeptTreeList(dept)); |
| | |
| | | @Autowired |
| | | private RedisCache redisCache; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('monitor:online:list')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:online:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(String ipaddr, String userName) { |
| | | Collection<String> keys = redisCache.keys(CacheConstants.LOGIN_TOKEN_KEY + "*"); |
| | |
| | | /** |
| | | * 强退用户 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')") |
| | | // @PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')") |
| | | @Log(title = "在线用户", businessType = BusinessType.FORCE) |
| | | @DeleteMapping("/{tokenId}") |
| | | public AjaxResult forceLogout(@PathVariable String tokenId) { |
| | |
| | | /** |
| | | * 查询advice列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:list')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "体检建议列表查询") |
| | | public AjaxResult list(@RequestParam(required = false) @ApiParam(value = "项目名") String proName, |
| | |
| | | /** |
| | | * 导出advice列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:export')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:export')") |
| | | @Log(title = "advice", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjAdvice tjAdvice) { |
| | |
| | | /** |
| | | * 获取advice详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:query')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(tjAdviceService.selectTjAdviceById(id)); |
| | |
| | | /** |
| | | * 新增advice |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:add')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:add')") |
| | | @Log(title = "advice", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjAdvice tjAdvice) { |
| | |
| | | /** |
| | | * 修改advice |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:edit')") |
| | | @Log(title = "advice", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjAdvice tjAdvice) { |
| | |
| | | /** |
| | | * 删除advice |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('advice:advice:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('advice:advice:remove')") |
| | | @Log(title = "advice", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * 查询问诊列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:history:list')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:history:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TjAskMedicalHistory tjAskMedicalHistory) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出问诊列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:history:export')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:history:export')") |
| | | @Log(title = "问诊", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjAskMedicalHistory tjAskMedicalHistory) { |
| | |
| | | /** |
| | | * 获取问诊详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:history:query')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:history:query')") |
| | | @GetMapping(value = "/{askId}") |
| | | public AjaxResult getInfo(@PathVariable("askId") Long askId) { |
| | | return success(tjAskMedicalHistoryService.selectTjAskMedicalHistoryByAskId(askId)); |
| | |
| | | /** |
| | | * 删除问诊 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:history:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:history:remove')") |
| | | @Log(title = "问诊", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{askIds}") |
| | | public AjaxResult remove(@PathVariable Long[] askIds) { |
| | |
| | | * 查询体检配餐 |
| | | * 列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('catering:catering:list')") |
| | | // @PreAuthorize("@ss.hasPermi('catering:catering:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TjCatering tjCatering) { |
| | | startPage(); |
| | |
| | | * 导出体检配餐 |
| | | 列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('catering:catering:export')") |
| | | // @PreAuthorize("@ss.hasPermi('catering:catering:export')") |
| | | @Log(title = "体检配餐", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjCatering tjCatering) { |
| | |
| | | * 获取体检配餐 |
| | | * 详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('catering:catering:query')") |
| | | // @PreAuthorize("@ss.hasPermi('catering:catering:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(tjCateringService.selectTjCateringById(id)); |
| | |
| | | * 新增体检配餐 |
| | | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('catering:catering:add')") |
| | | // @PreAuthorize("@ss.hasPermi('catering:catering:add')") |
| | | @Log(title = "体检配餐", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjCatering tjCatering){ |
| | |
| | | /** |
| | | * 修改体检配餐 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('catering:catering:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('catering:catering:edit')") |
| | | @Log(title = "体检配餐", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjCatering tjCatering){ |
| | |
| | | /** |
| | | * 删除体检配餐 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('catering:catering:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('catering:catering:remove')") |
| | | @Log(title = "体检配餐", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[]ids) { |
| | |
| | | /** |
| | | * 查询体检收费明细列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:list')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TjChargingStandard tjChargingStandard) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出体检收费明细列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:export')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:export')") |
| | | @Log(title = "体检收费明细", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjChargingStandard tjChargingStandard) { |
| | |
| | | /** |
| | | * 新增体检收费明细 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:add')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:add')") |
| | | @Log(title = "体检收费明细", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjChargingStandard tjChargingStandard) { |
| | |
| | | /** |
| | | * 修改体检收费明细 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:edit')") |
| | | @Log(title = "体检收费明细", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjChargingStandard tjChargingStandard) { |
| | |
| | | /** |
| | | * 删除体检收费明细 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:chargingstandard:remove')") |
| | | @Log(title = "体检收费明细", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | */ |
| | | @GetMapping("/confirmOrder") |
| | | @ApiOperation(value = "初审(并修改状态)接口") |
| | | @PreAuthorize("@ss.hasPermi('check:check:confirmOrder')") |
| | | // @PreAuthorize("@ss.hasPermi('check:check:confirmOrder')") |
| | | @Transactional |
| | | public AjaxResult confirmOrder(@ApiParam(value = "tjNumber") @RequestParam String tjNumber, |
| | | @ApiParam(value = "状态 0同意1拒绝 默认同意") @RequestParam(defaultValue = "0") Integer status, |
| | |
| | | */ |
| | | @GetMapping("/getList") |
| | | @ApiOperation(value = "查询体检记录客户列表")//0待1已 |
| | | @PreAuthorize("@ss.hasPermi('check:check:getList')") |
| | | // @PreAuthorize("@ss.hasPermi('check:check:getList')") |
| | | public AjaxResult getList(@ApiParam(value = "审核状态0待审核1已审核") @RequestParam(required = false) Integer checkStatus, |
| | | @ApiParam(value = "页码数(默认1)") @RequestParam(defaultValue = "1") Integer page, |
| | | @ApiParam(value = "显示条数(默认10)") @RequestParam(defaultValue = "10") Integer pageSize, |
| | |
| | | */ |
| | | @PutMapping("/getTjdetailList") |
| | | @ApiOperation(value = "根据体检订单号获取体检详情信息(并修改状态)接口") |
| | | @PreAuthorize("@ss.hasPermi('check:check:getTjdetailList')") |
| | | // @PreAuthorize("@ss.hasPermi('check:check:getTjdetailList')") |
| | | public AjaxResult getTjdetailList(@ApiParam(value = "体检tjNumber") @RequestParam String tjNumber, |
| | | @ApiParam(value = "总检建议") @RequestParam(required = false) String advice, |
| | | @ApiParam(value = "审核状态0待审核1已审核") @RequestParam Integer checkStatus) { |
| | |
| | | */ |
| | | @GetMapping("/updateCheckType") |
| | | @ApiOperation(value = "总检点击体检信息详情") |
| | | @PreAuthorize("@ss.hasPermi('check:check:updateCheckType')") |
| | | // @PreAuthorize("@ss.hasPermi('check:check:updateCheckType')") |
| | | public AjaxResult updateCheckType(@ApiParam(value = "客户体检号") @RequestParam String tjNumber) { |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | LambdaQueryWrapper<TjOrder> wq1 = new LambdaQueryWrapper<>(); |
| | |
| | | |
| | | @GetMapping("/getTm") |
| | | @ApiOperation(value = "获取条码") |
| | | @PreAuthorize("@ss.hasPermi('check:check:getTm')") |
| | | // @PreAuthorize("@ss.hasPermi('check:check:getTm')") |
| | | public AjaxResult getTm(@ApiParam(value = "客户体检号") @RequestParam String tjNumber) { |
| | | return AjaxResult.success(tjNumber); |
| | | } |
| | |
| | | /** |
| | | * 查询体检耗材列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:consumables:list')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:consumables:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TjConsumables tjConsumables) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出体检耗材列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:consumables:export')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:consumables:export')") |
| | | @Log(title = "体检耗材", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjConsumables tjConsumables) { |
| | |
| | | /** |
| | | * 获取体检耗材详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:consumables:query')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:consumables:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(tjConsumablesService.selectTjConsumablesById(id)); |
| | |
| | | /** |
| | | * 新增体检耗材 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:consumables:add')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:consumables:add')") |
| | | @Log(title = "体检耗材", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjConsumables tjConsumables) { |
| | |
| | | /** |
| | | * 修改体检耗材 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:consumables:edit')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:consumables:edit')") |
| | | @Log(title = "体检耗材", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjConsumables tjConsumables) { |
| | |
| | | /** |
| | | * 删除体检耗材 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:consumables:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:consumables:remove')") |
| | | @Log(title = "体检耗材", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * 查询客户信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:customer:list')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:customer:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查看客户列表") |
| | | public TableDataInfo list(TjCustomer tjCustomer) { |
| | |
| | | /** |
| | | * 查询弃检列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:inspection:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:inspection:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TjDiscardInspection tjDiscardInspection) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 获取弃检详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:inspection:query')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:inspection:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(tjDiscardInspectionService.selectTjDiscardInspectionById(id)); |
| | |
| | | /** |
| | | * 导出体检单位部门列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:dept:export')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:dept:export')") |
| | | @Log(title = "体检单位部门", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjDwDept tjDwDept) { |
| | |
| | | /** |
| | | * 导出体检单位分组列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:grouping:export')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:grouping:export')") |
| | | @Log(title = "体检单位分组", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjDwGrouping tjDwGrouping) { |
| | |
| | | /** |
| | | * 查询体检流水列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:water:list')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:water:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检流水列表") |
| | | public TableDataInfo list(TjFlowingWater tjFlowingWater) { |
| | |
| | | /** |
| | | * 删除体检流水 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:water:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:water:remove')") |
| | | @Log(title = "体检流水", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | |
| | | /** |
| | | * 导出体检项目分组列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:pro:export')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:pro:export')") |
| | | @Log(title = "体检项目分组", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjGroupingPro tjGroupingPro) { |
| | |
| | | |
| | | @GetMapping("/GetAbnormalData") |
| | | @ApiOperation(value = "体检结果异常数据统计分析") |
| | | @PreAuthorize("@ss.hasPermi('home:page:GetAbnormalData')") |
| | | // @PreAuthorize("@ss.hasPermi('home:page:GetAbnormalData')") |
| | | public List<AbnormalVO> GetAbnormalData(@RequestParam(required = false) String startDate, @RequestParam(required = false) String endDate) { |
| | | List<AbnormalVO> list = new ArrayList<>(); |
| | | List<TjOrderDetail> list1 = detailService.getTjOrderDetailList(startDate,endDate); |
| | |
| | | |
| | | @GetMapping("/getDiseaseList") |
| | | @ApiOperation("根据疾病名称查询相关人员信息接口") |
| | | @PreAuthorize("@ss.hasPermi('home:page:getDiseaseList')") |
| | | // @PreAuthorize("@ss.hasPermi('home:page:getDiseaseList')") |
| | | public AjaxResult getDiseaseList(@ApiParam(value = "疾病名称") @RequestParam String disesseName, |
| | | @ApiParam(value = "开始时间") @RequestParam(required = false) String beginTime, |
| | | @ApiParam(value = "结束时间") @RequestParam(required = false) String endTime) { |
| | |
| | | /** |
| | | * 查询体检记录明细列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:detail:list')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:detail:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检记录明细列表") |
| | | public TableDataInfo list(TjOrderDetail tjOrderDetail) { |
| | |
| | | /** |
| | | * 导出体检记录明细列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:detail:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:detail:export')") |
| | | @Log(title = "体检项目明细", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出体检记录明细列表") |
| | |
| | | /** |
| | | * 获取体检记录明细详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:detail:query')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:detail:query')") |
| | | @GetMapping(value = "/{orderDetailId}") |
| | | @ApiOperation(value = "获取体检记录明细详细信息") |
| | | public AjaxResult getInfo(@PathVariable("orderDetailId") String orderDetailId) { |
| | |
| | | /** |
| | | * 新增体检记录明细 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:detail:add')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:detail:add')") |
| | | @Log(title = "体检项目明细", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增体检记录明细") |
| | |
| | | /** |
| | | * 修改体检记录明细 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:detail:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:detail:edit')") |
| | | @Log(title = "体检项目明细", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改体检记录明细") |
| | |
| | | /** |
| | | * 删除体检记录明细 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:detail:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:detail:remove')") |
| | | @Log(title = "体检项目明细", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{orderDetailIds}") |
| | | @ApiOperation(value = "删除体检记录明细") |
| | |
| | | /** |
| | | * 新增结果结论数据记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:orderDetailRules:add')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:orderDetailRules:add')") |
| | | @Log(title = "结果结论数据记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjOrderDetailRules tjOrderDetailRules) { |
| | |
| | | /** |
| | | * 查询体检其他检测列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检其他检测列表") |
| | | public TableDataInfo list(TjOtherCheck tjOtherCheck) { |
| | |
| | | /** |
| | | * 导出体检其他检测列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:export')") |
| | | @Log(title = "体检其他检测", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出体检其他检测列表") |
| | |
| | | /** |
| | | * 获取体检其他检测详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取体检其他检测详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | |
| | | /** |
| | | * 新增体检其他检测 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:add')") |
| | | @Log(title = "体检其他检测", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增体检其他检测") |
| | |
| | | /** |
| | | * 修改体检其他检测 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:edit')") |
| | | @Log(title = "体检其他检测", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改体检其他检测") |
| | |
| | | /** |
| | | * 删除体检其他检测 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:check:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:check:remove')") |
| | | @Log(title = "体检其他检测", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除体检其他检测") |
| | |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检套餐列表(自带有分页)") |
| | | @PreAuthorize("@ss.hasPermi('hosp:package:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:package:list')") |
| | | public TableDataInfo list(@ApiParam(value = "体检套餐对象") TjPackage tjPackage) { |
| | | startPage(); |
| | | List<TjPackage> list = tjPackageService.selectTjPackageList(tjPackage); |
| | |
| | | /** |
| | | * 查询体检打印记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:order:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:order:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询") |
| | | public TableDataInfo list(TjPrintOrder tjPrintOrder) { |
| | |
| | | /** |
| | | * 导出体检打印记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:order:export')") |
| | | // @PreAuthorize("@ss.hasPermi('system:order:export')") |
| | | @Log(title = "体检打印记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出") |
| | |
| | | /** |
| | | * 获取体检打印记录详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:order:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:order:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "详请") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 新增体检打印记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:order:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:order:add')") |
| | | @Log(title = "体检打印记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增") |
| | |
| | | /** |
| | | * 修改体检打印记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:order:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:order:edit')") |
| | | @Log(title = "体检打印记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改") |
| | |
| | | /** |
| | | * 删除体检打印记录 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:order:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:order:remove')") |
| | | @Log(title = "体检打印记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除") |
| | |
| | | @Resource |
| | | private ITjOrderService orderService; |
| | | |
| | | /** |
| | | * 查询体检项目对比列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:contrast:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检项目对比列表(页面展示用)") |
| | | /** |
| | | * 查询体检项目对比列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('hosp:contrast:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检项目对比列表(页面展示用)") |
| | | public TableDataInfo list(TjProContrast tjProContrast) { |
| | | startPage(); |
| | | List<TjProContrast> list = tjProContrastService.selectTjProContrastList(tjProContrast); |
| | |
| | | /** |
| | | * 查询体检项目对比列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:contrast:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:contrast:list')") |
| | | @GetMapping("/getList") |
| | | @ApiOperation(value = "查询体检项目对比列表(数据对比展示处用)") |
| | | public AjaxResult getList() { |
| | | LambdaQueryWrapper<TjProContrast> wq=new LambdaQueryWrapper<>(); |
| | | wq.eq(TjProContrast::getIsContrast,1); |
| | | LambdaQueryWrapper<TjProContrast> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjProContrast::getIsContrast, 1); |
| | | List<TjProContrast> list = tjProContrastService.list(wq); |
| | | return AjaxResult.success(list); |
| | | } |
| | |
| | | /** |
| | | * 导出体检项目对比列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:contrast:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:contrast:export')") |
| | | @Log(title = "体检项目对比", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjProContrast tjProContrast) { |
| | | List<TjProContrast> list = tjProContrastService.selectTjProContrastList(tjProContrast); |
| | | ExcelUtil<TjProContrast> util = new ExcelUtil<TjProContrast>(TjProContrast. class); |
| | | ExcelUtil<TjProContrast> util = new ExcelUtil<TjProContrast>(TjProContrast.class); |
| | | util.exportExcel(response, list, "体检项目对比数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取体检项目对比详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:contrast:query')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:contrast:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取体检项目对比详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 新增体检项目对比 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:contrast:add')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:contrast:add')") |
| | | @Log(title = "体检项目对比", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增体检项目对比") |
| | |
| | | /** |
| | | * 修改体检项目对比 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:contrast:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:contrast:edit')") |
| | | @Log(title = "体检项目对比", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改体检项目对比") |
| | |
| | | /** |
| | | * 删除体检项目对比 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:contrast:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:contrast:remove')") |
| | | @Log(title = "体检项目对比", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除体检项目对比") |
| | |
| | | @PostMapping(value = "/getHistoryContrast") |
| | | @ApiOperation(value = "获取体检项目具体参与比对项目接口") |
| | | public AjaxResult getHistoryContrast(@RequestBody TjProContrastPostVo postVo) { |
| | | if(null !=postVo.getTjNumber() && null !=postVo.getProIds() && postVo.getProIds().size()>0){ |
| | | if (null != postVo.getTjNumber() && null != postVo.getProIds() && postVo.getProIds().size() > 0) { |
| | | TjOrder tjOrder = orderService.getOrderByTjNum(postVo.getTjNumber()); |
| | | if(null !=tjOrder){ |
| | | List<Map<String,Object>> list=new ArrayList<>(); |
| | | if (null != tjOrder) { |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | for (Long proId : postVo.getProIds()) { |
| | | List<TjProContrastVo> contrastVo = tjProContrastService.ProContrastVo(String.valueOf(tjOrder.getUserId()),proId); |
| | | Map<String,Object> map=new HashMap<>(); |
| | | map.put("proName",projectService.getTjProjectById(String.valueOf(proId)).getProName()); |
| | | map.put("contrastVo",contrastVo); |
| | | List<TjProContrastVo> contrastVo = tjProContrastService.ProContrastVo(String.valueOf(tjOrder.getUserId()), proId); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("proName", projectService.getTjProjectById(String.valueOf(proId)).getProName()); |
| | | map.put("contrastVo", contrastVo); |
| | | list.add(map); |
| | | } |
| | | return AjaxResult.success(list); |
| | |
| | | /** |
| | | * 导出体检项目列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:project:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:project:export')") |
| | | @Log(title = "体检项目", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出体检项目列表") |
| | |
| | | /** |
| | | * 获取体检项目详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:project:query')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:project:query')") |
| | | @GetMapping(value = "/{proId}") |
| | | @ApiOperation(value = "获取体检项目详细信息") |
| | | public AjaxResult getInfo(@PathVariable("proId") @ApiParam(value = "体检项目id") Long proId) { |
| | |
| | | /** |
| | | * 新增体检项目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:project:add')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:project:add')") |
| | | @ApiOperation(value = "新增体检项目") |
| | | @Log(title = "体检项目", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | |
| | | /** |
| | | * 修改体检项目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:project:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:project:edit')") |
| | | @Log(title = "体检项目", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改体检项目") |
| | |
| | | /** |
| | | * 删除体检项目 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:project:remove')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:project:remove')") |
| | | @Log(title = "体检项目", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{proIds}") |
| | | @ApiOperation(value = "删除体检项目(可删除父项目和子项目)") |
| | |
| | | /** |
| | | * 查询纯音听阈测试列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:list')") |
| | | //@PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "纯音听阈查询(默认自带)") |
| | | public TableDataInfo list(TjPureToneTest tjPureToneTest) { |
| | |
| | | /** |
| | | * 导出纯音听阈测试列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:export')") |
| | | //@PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:export')") |
| | | @Log(title = "纯音听阈测试", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出纯音听阈测试列表") |
| | |
| | | /** |
| | | * 获取纯音听阈测试详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:query')") |
| | | //@PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取纯音听阈测试详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | |
| | | /** |
| | | * 新增纯音听阈测试 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:add')") |
| | | //@PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:add')") |
| | | @Log(title = "纯音听阈测试", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增纯音听阈测试") |
| | |
| | | /** |
| | | * 修改纯音听阈测试 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:edit')") |
| | | @Log(title = "纯音听阈测试", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改纯音听阈测试") |
| | |
| | | /** |
| | | * 删除纯音听阈测试 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('pureToneTest:pureToneTest:remove')") |
| | | @Log(title = "纯音听阈测试", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除纯音听阈测试") |
| | |
| | | /** |
| | | * 查询template列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:template:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:template:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TjReportTemplate tjReportTemplate) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 获取template详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:template:query')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:template:query')") |
| | | @GetMapping(value = "/{reportTemId}") |
| | | public AjaxResult getInfo(@PathVariable("reportTemId") Long reportTemId) { |
| | | return success(tjReportTemplateService.selectTjReportTemplateByReportTemId(reportTemId)); |
| | |
| | | /** |
| | | * 查询体检预约列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('reservation:reservation:list')") |
| | | //@PreAuthorize("@ss.hasPermi('reservation:reservation:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检预约列表接口(默认)") |
| | | public TableDataInfo list(TjReservation tjReservation) { |
| | |
| | | /** |
| | | * 查询病种+意见列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TjRuleAdvice tjRuleAdvice) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出病种+意见列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:export')") |
| | | @Log(title = "病种+意见", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjRuleAdvice tjRuleAdvice) { |
| | |
| | | /** |
| | | * 获取病种+意见详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:query')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:query')") |
| | | @GetMapping(value = "/{gid}") |
| | | public AjaxResult getInfo(@PathVariable("gid") String gid) { |
| | | return success(tjRuleAdviceService.getById(gid)); |
| | |
| | | /** |
| | | * 新增病种+意见 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:add')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:add')") |
| | | @Log(title = "病种+意见", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjRuleAdvice tjRuleAdvice) { |
| | |
| | | /** |
| | | * 修改病种+意见 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:edit')") |
| | | @Log(title = "病种+意见", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjRuleAdvice tjRuleAdvice) { |
| | |
| | | /** |
| | | * 删除病种+意见 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:ruleAdvice:remove')") |
| | | @Log(title = "病种+意见", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{gids}") |
| | | public AjaxResult remove(@PathVariable String[] gids) { |
| | |
| | | /** |
| | | * 查询规则+病种列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:rules:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:rules:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询规则+病种列表") |
| | | public TableDataInfo list(TjRules tjRules) { |
| | |
| | | /** |
| | | * 导出规则+病种列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:rules:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:rules:export')") |
| | | @Log(title = "规则+病种", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出规则+病种列表") |
| | |
| | | /** |
| | | * 获取规则+病种详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:rules:query')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:rules:query')") |
| | | @GetMapping(value = "/{aid}") |
| | | @ApiOperation(value = "获取规则+病种详细信息") |
| | | public AjaxResult getInfo(@PathVariable("aid") String aid) { |
| | |
| | | /** |
| | | * 新增规则+病种 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:rules:add')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:rules:add')") |
| | | @Log(title = "规则+病种", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增规则+病种") |
| | |
| | | /** |
| | | * 修改规则+病种 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:rules:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:rules:edit')") |
| | | @Log(title = "规则+病种", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改规则+病种") |
| | |
| | | /** |
| | | * 删除规则+病种 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:rules:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:rules:remove')") |
| | | @Log(title = "规则+病种", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{aids}") |
| | | @ApiOperation(value = "删除规则+病种") |
| | |
| | | /** |
| | | * 查询体检采样管理列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('sampling:sampling:list')") |
| | | //@PreAuthorize("@ss.hasPermi('sampling:sampling:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检采样管理列表(自带默认)") |
| | | public TableDataInfo list(TjSampling tjSampling) { |
| | |
| | | /** |
| | | * 导出体检采样管理列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('sampling:sampling:export')") |
| | | //@PreAuthorize("@ss.hasPermi('sampling:sampling:export')") |
| | | @Log(title = "体检采样管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出体检采样管理列表") |
| | |
| | | /** |
| | | * 获取体检采样管理详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('sampling:sampling:query')") |
| | | //@PreAuthorize("@ss.hasPermi('sampling:sampling:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取体检采样管理详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | |
| | | /** |
| | | * 新增体检采样管理 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('sampling:sampling:add')") |
| | | //@PreAuthorize("@ss.hasPermi('sampling:sampling:add')") |
| | | @Log(title = "体检采样管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增体检采样管理") |
| | |
| | | /** |
| | | * 修改体检采样管理 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('sampling:sampling:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('sampling:sampling:edit')") |
| | | @Log(title = "体检采样管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改体检采样管理") |
| | |
| | | /** |
| | | * 删除体检采样管理 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('sampling:sampling:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('sampling:sampling:remove')") |
| | | @Log(title = "体检采样管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除体检采样管理") |
| | |
| | | /** |
| | | * 查询邮件短信发送记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:record:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询邮件短信发送记录列表") |
| | | public AjaxResult list(@RequestParam(required = false) @ApiParam("体检号") String tjNum, |
| | |
| | | /** |
| | | * 导出邮件短信发送记录列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:record:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:export')") |
| | | @Log(title = "邮件短信发送记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出邮件短信发送记录列表") |
| | |
| | | /** |
| | | * 获取邮件短信发送记录详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:record:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取邮件短信发送记录详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | |
| | | * 新增邮件短信发送记录 |
| | | */ |
| | | @ApiOperation(value = "新增邮件短信发送记录") |
| | | @PreAuthorize("@ss.hasPermi('system:record:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:add')") |
| | | @Log(title = "邮件短信发送记录", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjSendRecord tjSendRecord) { |
| | |
| | | * 修改邮件短信发送记录 |
| | | */ |
| | | @ApiOperation(value = "修改邮件短信发送记录") |
| | | @PreAuthorize("@ss.hasPermi('system:record:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:edit')") |
| | | @Log(title = "邮件短信发送记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjSendRecord tjSendRecord) { |
| | |
| | | * 删除邮件短信发送记录 |
| | | */ |
| | | @ApiOperation(value = "删除邮件短信发送记录") |
| | | @PreAuthorize("@ss.hasPermi('system:record:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:record:remove')") |
| | | @Log(title = "邮件短信发送记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |
| | |
| | | /** |
| | | * 查询邮件短信模板列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TjSendTemplate tjSendTemplate) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出邮件短信模板列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:export')") |
| | | @Log(title = "邮件短信模板", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjSendTemplate tjSendTemplate) { |
| | |
| | | /** |
| | | * 获取邮件短信模板详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:query')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(tjSendTemplateService.selectTjSendTemplateById(id)); |
| | |
| | | /** |
| | | * 新增邮件短信模板 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:add')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:add')") |
| | | @Log(title = "邮件短信模板", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjSendTemplate tjSendTemplate) { |
| | |
| | | /** |
| | | * 修改邮件短信模板 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:edit')") |
| | | @Log(title = "邮件短信模板", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjSendTemplate tjSendTemplate) { |
| | |
| | | /** |
| | | * 删除邮件短信模板 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:remove')") |
| | | @Log(title = "邮件短信模板", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * 查询standard列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('standard:standard:list')") |
| | | //@PreAuthorize("@ss.hasPermi('standard:standard:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询规则列表") |
| | | public TableDataInfo list(TjStandard tjStandard) { |
| | |
| | | /** |
| | | * 导出standard列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('standard:standard:export')") |
| | | //@PreAuthorize("@ss.hasPermi('standard:standard:export')") |
| | | @Log(title = "standard", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjStandard tjStandard) { |
| | |
| | | /** |
| | | * 获取standard详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('standard:standard:query')") |
| | | //@PreAuthorize("@ss.hasPermi('standard:standard:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(tjStandardService.selectTjStandardById(id)); |
| | |
| | | /** |
| | | * 新增standard |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('standard:standard:add')") |
| | | //@PreAuthorize("@ss.hasPermi('standard:standard:add')") |
| | | @Log(title = "standard", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增") |
| | |
| | | /** |
| | | * 修改standard |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('standard:standard:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('standard:standard:edit')") |
| | | @Log(title = "standard", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改") |
| | |
| | | /** |
| | | * 删除standard |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('standard:standard:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('standard:standard:remove')") |
| | | @Log(title = "standard", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除") |
| | |
| | | /** |
| | | * 查询收费员日结列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:collector:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:collector:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询收费员日结列表") |
| | | public AjaxResult list(@RequestParam(required = false) @ApiParam(value = "收费员id") String tollCollectorId, |
| | |
| | | /** |
| | | * 导出收费员日结列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:collector:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:collector:export')") |
| | | @Log(title = "收费员日结", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出收费员日结列表") |
| | |
| | | /** |
| | | * 获取收费员日结详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:collector:query')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:collector:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取收费员日结详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | |
| | | /** |
| | | * 点击结算 新增收费员日结 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:collector:add')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:collector:add')") |
| | | @Log(title = "收费员日结", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "点击结算 新增收费员日结") |
| | |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("@ss.hasPermi('hosp:collector:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:collector:remove')") |
| | | @DeleteMapping("/removeTjTollCollectorById") |
| | | @ApiOperation(value = "收费员撤销账单操作接口") |
| | | public AjaxResult removeTjTollCollectorById(@RequestParam @ApiParam(value = "结账id") String id, |
| | |
| | | /** |
| | | * 查询体检心电图管理列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('picture:picture:list')") |
| | | //@PreAuthorize("@ss.hasPermi('picture:picture:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询体检心电图管理列表(自带默认)") |
| | | public TableDataInfo list(TjXdPicture tjXdPicture) { |
| | |
| | | /** |
| | | * 导出体检心电图管理列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('picture:picture:export')") |
| | | //@PreAuthorize("@ss.hasPermi('picture:picture:export')") |
| | | @Log(title = "体检心电图管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出体检心电图管理列表") |
| | |
| | | /** |
| | | * 获取体检心电图管理详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('picture:picture:query')") |
| | | //@PreAuthorize("@ss.hasPermi('picture:picture:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @ApiOperation(value = "获取体检心电图管理详细信息") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | |
| | | /** |
| | | * 新增体检心电图管理 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('picture:picture:add')") |
| | | //@PreAuthorize("@ss.hasPermi('picture:picture:add')") |
| | | @Log(title = "体检心电图管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @ApiOperation(value = "新增体检心电图管理") |
| | |
| | | /** |
| | | * 修改体检心电图管理 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('picture:picture:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('picture:picture:edit')") |
| | | @Log(title = "体检心电图管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @ApiOperation(value = "修改体检心电图管理") |
| | |
| | | /** |
| | | * 删除体检心电图管理 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('picture:picture:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('picture:picture:remove')") |
| | | @Log(title = "体检心电图管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @ApiOperation(value = "删除体检心电图管理") |