|  | @ -299,15 +299,16 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO,
 | 
	
		
			
				|  |  |         String sql = "select t.code as \"code\",t.name as \"name\" from wlyy.wlyy_patient t where 1=1 ";
 | 
	
		
			
				|  |  |         String sqlEqt="select t.device_name as\"device_name\" from device.wlyy_devices t where 1=1";
 | 
	
		
			
				|  |  |         if (StringUtils.isNotEmpty(idCard)){
 | 
	
		
			
				|  |  |             sql = sql +" and t.idcard = '"+AesEncryptUtils.encrypt(idCard)+"'";
 | 
	
		
			
				|  |  |             sql = sql +" and t.idcard = '"+idCard+"'";
 | 
	
		
			
				|  |  | //            sql = sql +" and t.idcard = '"+AesEncryptUtils.encrypt(idCard)+"'";//待i健康加密
 | 
	
		
			
				|  |  |         }if (StringUtils.isNotEmpty(snCode)){
 | 
	
		
			
				|  |  |             sqlEqt = sqlEqt +" and t.device_code = '"+snCode+"'";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         System.out.println("查询患者name和code开始");
 | 
	
		
			
				|  |  |         List<Map<String,Object>> nameList = hibenateUtils.createSQLQuery(sql);
 | 
	
		
			
				|  |  |         for (Map<String,Object> tmp:nameList){
 | 
	
		
			
				|  |  |             tmp.put("name",AesEncryptUtils.decrypt(tmp.get("name").toString()));
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | //        for (Map<String,Object> tmp:nameList){
 | 
	
		
			
				|  |  | //            tmp.put("name",AesEncryptUtils.decrypt(tmp.get("name").toString()));//待i健康加密
 | 
	
		
			
				|  |  | //        }
 | 
	
		
			
				|  |  |         System.out.println("查询患者name和code结束:"+nameList);
 | 
	
		
			
				|  |  |         System.out.println("查询设备名称开始");
 | 
	
		
			
				|  |  |         List<Map<String,Object>> deviceList = hibenateUtils.createSQLQuery(sqlEqt);
 | 
	
	
		
			
				|  | @ -333,7 +334,8 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO,
 | 
	
		
			
				|  |  |                 List<Map<String,Object>> nameList = new ArrayList<>();
 | 
	
		
			
				|  |  |                 List<Map<String,Object>> deviceList = new ArrayList<>();
 | 
	
		
			
				|  |  |                 if (StringUtils.isNotEmpty(idCard)){
 | 
	
		
			
				|  |  |                     sql = sql +" and t.idcard = '"+AesEncryptUtils.encrypt(idCard)+"'";
 | 
	
		
			
				|  |  |                     sql = sql +" and t.idcard = '"+idCard+"'";
 | 
	
		
			
				|  |  | //                    sql = sql +" and t.idcard = '"+AesEncryptUtils.encrypt(idCard)+"'";//待i健康加密
 | 
	
		
			
				|  |  |                     nameList = jdbcTempalte.queryForList(sql);
 | 
	
		
			
				|  |  |                 }if (StringUtils.isNoneBlank(snCoed)){
 | 
	
		
			
				|  |  |                     sqlEqt = sqlEqt +" and t.device_code = '"+snCoed+"'";
 | 
	
	
		
			
				|  | @ -342,9 +344,9 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO,
 | 
	
		
			
				|  |  |                 if(nameList.size()>0){
 | 
	
		
			
				|  |  |                     String code = null==nameList.get(0).get("code")?"":nameList.get(0).get("code").toString();
 | 
	
		
			
				|  |  |                     String name = null==nameList.get(0).get("name")?"": ConcealUtil.nameOrAddrConceal(nameList.get(0).get("name").toString());
 | 
	
		
			
				|  |  |                     locationDataVO.setIdCard(AesEncryptUtils.decrypt(idCard));
 | 
	
		
			
				|  |  | //                    String name = null==nameList.get(0).get("name")?"": ConcealUtil.nameOrAddrConceal(AesEncryptUtils.decrypt(nameList.get(0).get("name").toString()));//待i健康加密
 | 
	
		
			
				|  |  |                     locationDataVO.setCode(code);
 | 
	
		
			
				|  |  |                     locationDataVO.setName(AesEncryptUtils.decrypt(name));
 | 
	
		
			
				|  |  |                     locationDataVO.setName(name);
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 if (deviceList.size()>0){
 | 
	
		
			
				|  |  |                     String equipmentName = null==deviceList.get(0).get("device_name")?"":deviceList.get(0).get("device_name").toString();
 | 
	
	
		
			
				|  | @ -364,7 +366,8 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO,
 | 
	
		
			
				|  |  |                 List<Map<String,Object>> nameList = new ArrayList<>();
 | 
	
		
			
				|  |  |                 List<Map<String,Object>> deviceList = new ArrayList<>();
 | 
	
		
			
				|  |  |                 if (StringUtils.isNotEmpty(idCard)){
 | 
	
		
			
				|  |  |                     sql = sql +" and t.idcard = '"+ AesEncryptUtils.encrypt(idCard)+"'";
 | 
	
		
			
				|  |  |                     sql = sql +" and t.idcard = '"+ idCard+"'";
 | 
	
		
			
				|  |  | //                    sql = sql +" and t.idcard = '"+ AesEncryptUtils.encrypt(idCard)+"'";//待i健康加密
 | 
	
		
			
				|  |  |                     nameList = jdbcTempalte.queryForList(sql);
 | 
	
		
			
				|  |  |                 }if (StringUtils.isNoneBlank(snCoed)){
 | 
	
		
			
				|  |  |                     sqlEqt = sqlEqt +" and t.device_code = '"+snCoed+"'";
 | 
	
	
		
			
				|  | @ -372,7 +375,8 @@ public class IotPatientDeviceService extends BaseJpaService<IotPatientDeviceDO,
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 if(nameList.size()>0){
 | 
	
		
			
				|  |  |                     String code = null==nameList.get(0).get("code")?"":nameList.get(0).get("code").toString();
 | 
	
		
			
				|  |  |                     String name = null==nameList.get(0).get("name")?"": ConcealUtil.nameOrAddrConceal(AesEncryptUtils.decrypt(nameList.get(0).get("name").toString()));
 | 
	
		
			
				|  |  |                     String name = null==nameList.get(0).get("name")?"": ConcealUtil.nameOrAddrConceal(nameList.get(0).get("name").toString());
 | 
	
		
			
				|  |  | //                    String name = null==nameList.get(0).get("name")?"": ConcealUtil.nameOrAddrConceal(AesEncryptUtils.decrypt(nameList.get(0).get("name").toString()));//待i健康加密
 | 
	
		
			
				|  |  |                     locationDataVO.setCode(code);
 | 
	
		
			
				|  |  |                     locationDataVO.setName(name);
 | 
	
		
			
				|  |  |                 }
 |