| | |
| | | // @PreAuthorize("@ss.hasPermi('system:sfxm:list')") |
| | | @PostMapping("/list") |
| | | @ApiOperation(value = "查询") |
| | | public TableDataInfo list(@RequestBody DictSfxm dictSfxm) { |
| | | startPage(); |
| | | public AjaxResult list(@RequestBody DictSfxm dictSfxm) { |
| | | // startPage(); |
| | | String pym = dictSfxm.getPym(); |
| | | if(null !=pym && !pym.isEmpty()) { |
| | | pym=dictSfxm.getPym().toUpperCase(Locale.ROOT); |
| | | dictSfxm.setPym(pym); |
| | | } |
| | | List<DictSfxm> list = dictSfxmService.selectDictSfxmList(dictSfxm); |
| | | // List<DictSfxm> list = dictSfxmService.selectDictSfxmList(dictSfxm); |
| | | List<DictSfxm> list = dictSfxmService.selectDictSfxmListLimit(dictSfxm, (dictSfxm.getPageNum() - 1) * dictSfxm.getPageSize(), dictSfxm.getPageSize()); |
| | | if (null != list && !list.isEmpty()) { |
| | | for (DictSfxm sfxm : list) { |
| | | DictHosp hosp = dictHospService.getById(sfxm.getYqid()); |
| | |
| | | } |
| | | } |
| | | } |
| | | return getDataTable(list); |
| | | Integer count = dictSfxmService.selectDictSfxmListCount(dictSfxm); |
| | | return AjaxResult.success().put("rows",list).put("total",count); |
| | | // return getDataTable(list); |
| | | } |
| | | |
| | | /** |