wushilong 3 years ago
parent
commit
f5107f950b

+ 5 - 5
svr/svr-cloud-care/src/main/java/com/yihu/jw/care/service/statistics/WlyygcStatisticsService.java

@ -212,7 +212,7 @@ public class WlyygcStatisticsService {
                ", base_service_package_record r, base_security_monitoring_order o " +
                "WHERE p.del = 1 and p.archive_type =1 and r.patient = p.id " +
                "and p.id = o.patient " + filter +
                " ) a ORDER BY a.create_time desc limit "+(page - 1)+","+size;
                " ) a ORDER BY a.create_time desc limit "+(page - 1)*size+","+size;
        List<Map<String,Object>> res = jdbcTemplate.queryForList(sql);
        for (Map<String,Object> map : res){
            JSONObject json = new JSONObject();
@ -253,7 +253,7 @@ public class WlyygcStatisticsService {
        } else {
            return null;
        }
        sql += "ORDER BY p.`name` desc limit " + (page - 1) + "," + size;
        sql += "ORDER BY p.`name` desc limit " + (page - 1)*size + "," + size;
        List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql);
        return maps;
    }
@ -292,8 +292,8 @@ public class WlyygcStatisticsService {
            return jsonObject;
        }
        jjsql += " ORDER BY ord.patient_name DESC limit " + (page - 1) + "," + size;
        afsql += " ORDER BY ord.patient_name DESC limit " + (page - 1) + "," + size;
        jjsql += " ORDER BY ord.patient_name DESC limit " + (page - 1)*size + "," + size;
        afsql += " ORDER BY ord.patient_name DESC limit " + (page - 1)*size + "," + size;
        List<Map<String, Object>> jj = jdbcTemplate.queryForList(jjsql);
        List<Map<String, Object>> af = jdbcTemplate.queryForList(afsql);
        jsonObject.put("Security", af);
@ -332,7 +332,7 @@ public class WlyygcStatisticsService {
                "AND p.archive_type = 1 " +
                "AND r.patient = p.id " +
                "AND p.id = pd.`user` " +
                "AND wd.device_code = pd.device_sn "+filter+" ORDER BY pd.device_name DESC limit " + (page - 1) + "," + size;
                "AND wd.device_code = pd.device_sn "+filter+" ORDER BY pd.device_name DESC limit " + (page - 1)*size + "," + size;
        List<Map<String, Object>> maps = jdbcTemplate.queryForList(deviceSql);
        return maps;