|  | @ -309,7 +309,7 @@ public class SignPatientLabelInfoService extends BaseService {
 | 
												
													
														
															|  |                     "  ) " +
 |  |                     "  ) " +
 | 
												
													
														
															|  |                     "  AND t1. STATUS > 0  AND t1.admin_team_code = ?";
 |  |                     "  AND t1. STATUS > 0  AND t1.admin_team_code = ?";
 | 
												
													
														
															|  |             if(isSlowDisease){
 |  |             if(isSlowDisease){
 | 
												
													
														
															|  |                 sql = sql + "  AND p.diease >0 " ;
 |  | 
 | 
												
													
														
															|  | 
 |  |                 sql = sql + "  AND p.disease >0 " ;
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |             if(StringUtils.isNotBlank(diseaseCondition)){
 |  |             if(StringUtils.isNotBlank(diseaseCondition)){
 | 
												
													
														
															|  |                 sql = sql + " AND p.disease_condition ="+diseaseCondition;
 |  |                 sql = sql + " AND p.disease_condition ="+diseaseCondition;
 | 
												
											
												
													
														
															|  | @ -4090,16 +4090,16 @@ public class SignPatientLabelInfoService extends BaseService {
 | 
												
													
														
															|  |                 " FROM " +
 |  |                 " FROM " +
 | 
												
													
														
															|  |                 "    wlyy_sign_family t1 " +
 |  |                 "    wlyy_sign_family t1 " +
 | 
												
													
														
															|  |                 " JOIN wlyy_sign_patient_label_info t2 ON t1.patient = t2.patient " +
 |  |                 " JOIN wlyy_sign_patient_label_info t2 ON t1.patient = t2.patient " +
 | 
												
													
														
															|  |                 " JOIN wlyy_patiend t3 ON t1.patient = t3.code " +
 |  | 
 | 
												
													
														
															|  | 
 |  |                 " JOIN wlyy_patient t3 ON t1.patient = t3.code " +
 | 
												
													
														
															|  |                 (teamCode > 0 ? " join (select * from wlyy_sign_patient_label where label_type != '4' or team_code = " + teamCode + " or (label_type = '4' and (label_code in (1,2)))) lb on t2.label = lb.label_code and t2.label_type = lb.label_type " : "") +
 |  |                 (teamCode > 0 ? " join (select * from wlyy_sign_patient_label where label_type != '4' or team_code = " + teamCode + " or (label_type = '4' and (label_code in (1,2)))) lb on t2.label = lb.label_code and t2.label_type = lb.label_type " : "") +
 | 
												
													
														
															|  |                 " WHERE " +
 |  |                 " WHERE " +
 | 
												
													
														
															|  |                 "    (t1.doctor = ? or t1.doctor_health = ?) " +
 |  |                 "    (t1.doctor = ? or t1.doctor_health = ?) " +
 | 
												
													
														
															|  |                 "    AND t1.status > 0 " +
 |  |                 "    AND t1.status > 0 " +
 | 
												
													
														
															|  |                 "    AND t2.status = 1) " +
 |  | 
 | 
												
													
														
															|  | 
 |  |                 "    AND t2.status = 1 " +
 | 
												
													
														
															|  |                 (StringUtils.isNotEmpty(labelCode) ? " AND t2.label = ? " : "") +
 |  |                 (StringUtils.isNotEmpty(labelCode) ? " AND t2.label = ? " : "") +
 | 
												
													
														
															|  |                 (StringUtils.isNotEmpty(labelType) ? " AND t2.label_type = ? " : "") +
 |  |                 (StringUtils.isNotEmpty(labelType) ? " AND t2.label_type = ? " : "") +
 | 
												
													
														
															|  |                 (teamCode > 0 ? (" AND admin_team_code = " + teamCode) : "")+
 |  |                 (teamCode > 0 ? (" AND admin_team_code = " + teamCode) : "")+
 | 
												
													
														
															|  |                 (StringUtils.isNotEmpty(diseaseCondition) ? " AND t3.diseaseCondition = ? " : "");
 |  | 
 | 
												
													
														
															|  | 
 |  |                 (StringUtils.isNotEmpty(diseaseCondition) ? " AND t3.disease_condition in (?) " : "");
 | 
												
													
														
															|  |         sql = sql + " AND t3.disease > 0 AND t3.status > 0 ";
 |  |         sql = sql + " AND t3.disease > 0 AND t3.status > 0 ";
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         if (matcher.find()) {
 |  |         if (matcher.find()) {
 | 
												
											
												
													
														
															|  | @ -4141,17 +4141,17 @@ public class SignPatientLabelInfoService extends BaseService {
 | 
												
													
														
															|  |             signList = jdbcTemplate.queryForList(sql, args);
 |  |             signList = jdbcTemplate.queryForList(sql, args);
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         //查询患者设备绑定情况
 |  | 
 | 
												
													
														
															|  |         String _pdsql = "select user,sum(category_code) deviceType FROM wlyy_patient_device GROUP BY user";
 |  | 
 | 
												
													
														
															|  |         List<Map<String,Object>> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql);
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         if(!patientCodeDeviceTypes.isEmpty()){
 |  | 
 | 
												
													
														
															|  |             for (Map<String,Object> patientCodeDeviceType : patientCodeDeviceTypes) {
 |  | 
 | 
												
													
														
															|  |                 String user = String.valueOf(patientCodeDeviceType.get("user"));
 |  | 
 | 
												
													
														
															|  |                 String sum = String.valueOf(patientCodeDeviceType.get("deviceType"));
 |  | 
 | 
												
													
														
															|  |                 patientDeviceTypeMap.put(user,sum);
 |  | 
 | 
												
													
														
															|  |             }
 |  | 
 | 
												
													
														
															|  |         }
 |  | 
 | 
												
													
														
															|  | 
 |  | //        //查询患者设备绑定情况
 | 
												
													
														
															|  | 
 |  | //        String _pdsql = "select user,sum(category_code) deviceType FROM wlyy_patient_device GROUP BY user";
 | 
												
													
														
															|  | 
 |  | //        List<Map<String,Object>> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql);
 | 
												
													
														
															|  | 
 |  | //
 | 
												
													
														
															|  | 
 |  | //        if(!patientCodeDeviceTypes.isEmpty()){
 | 
												
													
														
															|  | 
 |  | //            for (Map<String,Object> patientCodeDeviceType : patientCodeDeviceTypes) {
 | 
												
													
														
															|  | 
 |  | //                String user = String.valueOf(patientCodeDeviceType.get("user"));
 | 
												
													
														
															|  | 
 |  | //                String sum = String.valueOf(patientCodeDeviceType.get("deviceType"));
 | 
												
													
														
															|  | 
 |  | //                patientDeviceTypeMap.put(user,sum);
 | 
												
													
														
															|  | 
 |  | //            }
 | 
												
													
														
															|  | 
 |  | //        }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         if (signList != null && signList.size() > 0) {
 |  |         if (signList != null && signList.size() > 0) {
 | 
												
													
														
															|  |             for (Map<String, Object> sign : signList) {
 |  |             for (Map<String, Object> sign : signList) {
 | 
												
											
												
													
														
															|  | @ -4348,7 +4348,7 @@ public class SignPatientLabelInfoService extends BaseService {
 | 
												
													
														
															|  |                 "  AND" +
 |  |                 "  AND" +
 | 
												
													
														
															|  |                 (isIdcard ? " t2.idcard like ? " : " t1.name like ? ");
 |  |                 (isIdcard ? " t2.idcard like ? " : " t1.name like ? ");
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         sqlTemp = sqlTemp + " AND t2.disease_condition = "+diseaseCondition+" AND t2.diease >0 AND t2.status >0 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |         sqlTemp = sqlTemp + " AND t2.disease_condition = "+diseaseCondition+" AND t2.disease >0 AND t2.status >0 ";
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         String sql = sqlTemp + " order by t2.standard_status,t2.disease_condition,t2.disease,t2.openid desc  limit " + page + "," + pagesize;
 |  |         String sql = sqlTemp + " order by t2.standard_status,t2.disease_condition,t2.disease,t2.openid desc  limit " + page + "," + pagesize;
 | 
												
													
														
															|  |         signList = jdbcTemplate.queryForList(sql, args);
 |  |         signList = jdbcTemplate.queryForList(sql, args);
 |