|  | @ -362,11 +362,13 @@ public class SignPatientLabelInfoService extends BaseService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //查询患者设备绑定情况
 | 
	
		
			
				|  |  |         String _pdsql = "select user,sum(category_code) deviceType FROM wlyy_patient_device GROUP BY user";
 | 
	
		
			
				|  |  |         List<PatientCodeDeviceType> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql,PatientCodeDeviceType.class);
 | 
	
		
			
				|  |  |         List<Map<String,Object>> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if(!patientCodeDeviceTypes.isEmpty()){
 | 
	
		
			
				|  |  |             for (PatientCodeDeviceType patientCodeDeviceType : patientCodeDeviceTypes) {
 | 
	
		
			
				|  |  |                 patientDeviceTypeMap.put(patientCodeDeviceType.getUser(),patientCodeDeviceType.getDeviceType());
 | 
	
		
			
				|  |  |             for (Map<String,Object> patientCodeDeviceType : patientCodeDeviceTypes) {
 | 
	
		
			
				|  |  |                 String user = String.valueOf(patientCodeDeviceType.get("user"));
 | 
	
		
			
				|  |  |                 String sum = String.valueOf(patientCodeDeviceType.get("deviceType"));
 | 
	
		
			
				|  |  |                 patientDeviceTypeMap.put(user,sum);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -3702,11 +3704,13 @@ public class SignPatientLabelInfoService extends BaseService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //查询患者设备绑定情况
 | 
	
		
			
				|  |  |         String _pdsql = "select user,sum(category_code) deviceType FROM wlyy_patient_device GROUP BY user";
 | 
	
		
			
				|  |  |         List<PatientCodeDeviceType> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql,PatientCodeDeviceType.class);
 | 
	
		
			
				|  |  |         List<Map<String,Object>> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if(!patientCodeDeviceTypes.isEmpty()){
 | 
	
		
			
				|  |  |             for (PatientCodeDeviceType patientCodeDeviceType : patientCodeDeviceTypes) {
 | 
	
		
			
				|  |  |                 patientDeviceTypeMap.put(patientCodeDeviceType.getUser(),patientCodeDeviceType.getDeviceType());
 | 
	
		
			
				|  |  |             for (Map<String,Object> patientCodeDeviceType : patientCodeDeviceTypes) {
 | 
	
		
			
				|  |  |                 String user = String.valueOf(patientCodeDeviceType.get("user"));
 | 
	
		
			
				|  |  |                 String sum = String.valueOf(patientCodeDeviceType.get("deviceType"));
 | 
	
		
			
				|  |  |                 patientDeviceTypeMap.put(user,sum);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -4139,13 +4143,16 @@ public class SignPatientLabelInfoService extends BaseService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //查询患者设备绑定情况
 | 
	
		
			
				|  |  |         String _pdsql = "select user,sum(category_code) deviceType FROM wlyy_patient_device GROUP BY user";
 | 
	
		
			
				|  |  |         List<PatientCodeDeviceType> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql,PatientCodeDeviceType.class);
 | 
	
		
			
				|  |  |         List<Map<String,Object>> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if(!patientCodeDeviceTypes.isEmpty()){
 | 
	
		
			
				|  |  |             for (PatientCodeDeviceType patientCodeDeviceType : patientCodeDeviceTypes) {
 | 
	
		
			
				|  |  |                 patientDeviceTypeMap.put(patientCodeDeviceType.getUser(),patientCodeDeviceType.getDeviceType());
 | 
	
		
			
				|  |  |             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) {
 | 
	
		
			
				|  |  |             for (Map<String, Object> sign : signList) {
 | 
	
		
			
				|  |  |                 Patient p = patientDao.findByCode(sign.get("patient") == null ? "" : sign.get("patient").toString());
 | 
	
	
		
			
				|  | @ -4347,11 +4354,13 @@ public class SignPatientLabelInfoService extends BaseService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //查询患者设备绑定情况
 | 
	
		
			
				|  |  |         String _pdsql = "select user,sum(category_code) deviceType FROM wlyy_patient_device GROUP BY user";
 | 
	
		
			
				|  |  |         List<PatientCodeDeviceType> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql,PatientCodeDeviceType.class);
 | 
	
		
			
				|  |  |         List<Map<String,Object>> patientCodeDeviceTypes =  jdbcTemplate.queryForList(_pdsql);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if(!patientCodeDeviceTypes.isEmpty()){
 | 
	
		
			
				|  |  |             for (PatientCodeDeviceType patientCodeDeviceType : patientCodeDeviceTypes) {
 | 
	
		
			
				|  |  |                 patientDeviceTypeMap.put(patientCodeDeviceType.getUser(),patientCodeDeviceType.getDeviceType());
 | 
	
		
			
				|  |  |             for (Map<String,Object> patientCodeDeviceType : patientCodeDeviceTypes) {
 | 
	
		
			
				|  |  |                 String user = String.valueOf(patientCodeDeviceType.get("user"));
 | 
	
		
			
				|  |  |                 String sum = String.valueOf(patientCodeDeviceType.get("deviceType"));
 | 
	
		
			
				|  |  |                 patientDeviceTypeMap.put(user,sum);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 |