| | |
| | | * 查询收费项目列表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:sfxm:list')") |
| | | @PostMapping("/list") |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "查询") |
| | | public TableDataInfo list(@RequestBody DictSfxm dictSfxm) { |
| | | public TableDataInfo list(DictSfxm dictSfxm) { |
| | | startPage(); |
| | | String pym = dictSfxm.getPym(); |
| | | if(null !=pym && !pym.isEmpty()) { |
| | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | if (null != xmbm && xmbm.length() == 2) { |
| | | List<DictSfxm> sfxms = dictSfxmService.getEjDictSfxmList(service.getId()); |
| | | if (null != sfxms && sfxms.size() > 0) { |
| | | if (null != sfxms && !sfxms.isEmpty()) { |
| | | for (DictSfxm sfxm : sfxms) { |
| | | List<DictSfxm> sfx = dictSfxmService.getSjDictSfxmList(service.getId()); |
| | | sfxm.setDictSfxms(sfx); |
| | |
| | | map.put("date", sfxmList); |
| | | map.put("total", sfxms.size()); |
| | | } else { |
| | | map.put("date", 0); |
| | | map.put("date", null); |
| | | map.put("total", 0); |
| | | } |
| | | return AjaxResult.success(map); |
| | | } |
| | | if (null != xmbm && xmbm.length() == 4) { |
| | | List<DictSfxm> sfx = dictSfxmService.getSjDictSfxmList(service.getId()); |
| | | if (null != sfx && sfx.size() > 0) { |
| | | if (null != sfx && !sfx.isEmpty()) { |
| | | List<DictSfxm> sfxmList = sfx.stream().skip((long) (page - 1) * pageSize).limit(pageSize).collect(Collectors.toList()); |
| | | if (null != sfxmList && sfxmList.size() > 0) { |
| | | if (!sfxmList.isEmpty()) { |
| | | for (DictSfxm sfxm : sfxmList) { |
| | | DictHosp hosp = dictHospService.getById(sfxm.getYqid()); |
| | | if (null != hosp) { |
| | |
| | | map.put("date", sfxmList); |
| | | map.put("total", sfx.size()); |
| | | } else { |
| | | map.put("date", 0); |
| | | map.put("date", null); |
| | | map.put("total", 0); |
| | | } |
| | | return AjaxResult.success(map); |