| | |
| | | public TableDataInfo list(@RequestBody DictSfxm dictSfxm) { |
| | | startPage(); |
| | | String pym = dictSfxm.getPym(); |
| | | if(null !=pym && !"".equals(pym)) { |
| | | if(null !=pym && !pym.isEmpty()) { |
| | | pym=dictSfxm.getPym().toUpperCase(Locale.ROOT); |
| | | dictSfxm.setPym(pym); |
| | | } |
| | | List<DictSfxm> list = dictSfxmService.selectDictSfxmList(dictSfxm); |
| | | if (null != list && list.size() > 0) { |
| | | if (null != list && !list.isEmpty()) { |
| | | for (DictSfxm sfxm : list) { |
| | | DictHosp hosp = dictHospService.getById(sfxm.getYqid()); |
| | | if (null != hosp) { |
| | |
| | | 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); |