zhaowenxuan
1 天以前 dedacd79c93f8ef95e0cb986f5e7fbd27ddbd907
ltkj-admin/src/main/java/com/ltkj/web/controller/system/DictSfxmController.java
@@ -178,7 +178,7 @@
        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);
@@ -188,16 +188,16 @@
                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) {
@@ -209,7 +209,7 @@
                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);