瀏覽代碼

Merge branch 'dev' of trick9191/patient-co-management into dev

trick9191 8 年之前
父節點
當前提交
5e938d4020

+ 1 - 1
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/sign/SignWebService.java

@ -972,7 +972,7 @@ public class SignWebService extends BaseService {
    }
    }
    /**
    /**
     * 获取用户信息test1
     * 获取用户信息
     * @return
     * @return
     */
     */
    public JSONObject getOverDuePatients(String year,Long teamCode,Integer page,Integer pageSize){
    public JSONObject getOverDuePatients(String year,Long teamCode,Integer page,Integer pageSize){

+ 7 - 6
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/statistics/StatisticsService.java

@ -1622,7 +1622,7 @@ public class StatisticsService extends BaseService {
        return json;
        return json;
    }
    }
    public JSONObject getAVGSocreByMonth(String level ,String area,String statDate,String endDate)throws  Exception{
    public JSONArray getAVGSocreByMonth(String level ,String area,String statDate,String endDate)throws  Exception{
        List<String> times =  getMonthBetween(statDate,endDate);
        List<String> times =  getMonthBetween(statDate,endDate);
        if(times==null||times.size()==0){
        if(times==null||times.size()==0){
@ -1656,13 +1656,14 @@ public class StatisticsService extends BaseService {
            }
            }
        }
        }
        Map<String,Object> rsMap = new HashMap<>();
        JSONArray jsRs = new JSONArray();
        for(String time : times){
        for(String time : times){
            rsMap.put(time,map.get(time)==null?0:((Map<String,Object>)map.get(time)).get("avgCount"));
            JSONObject json   = new JSONObject();
            json.put("month",time);
            json.put("socre",map.get(time)==null?0:((Map<String,Object>)map.get(time)).get("avgCount"));
            jsRs.put(json);
        }
        }
        JSONObject data = new JSONObject();
        data.put("data",rsMap);
        return data;
        return jsRs;
    }
    }
    private  List<String> getMonthBetween(String minDate, String maxDate) throws Exception {
    private  List<String> getMonthBetween(String minDate, String maxDate) throws Exception {