| 
					
				 | 
			
			
				@ -4,6 +4,7 @@ package com.yihu.iot.service.device; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.iot.service.common.OrgUserService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.iot.service.useragent.UserAgent; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.util.AesEncryptUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.util.TransforSqlUtl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.restmodel.iot.device.DeviceHealthIndexVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.restmodel.iot.device.WlyyDeviceVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.restmodel.iot.device.WlyyHealthStandardVO; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -80,29 +81,31 @@ public class WlyyDeviceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql += " order by id desc "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Long count = Long.valueOf(jdbcTemplate.queryForList(sql).size()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql += "limit " + (page - 1) * pageSize + "," + pageSize; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql = TransforSqlUtl.deviceAll(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyDeviceVO> deviceVOList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(WlyyDeviceVO.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        deviceVOList.forEach(one->{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setLinkman(AesEncryptUtils.decrypt(one.getLinkman())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setTel(AesEncryptUtils.decrypt(one.getTel())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setRepresentative(AesEncryptUtils.decrypt(one.getRepresentative())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setApplicantName(AesEncryptUtils.decrypt(one.getApplicantName())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setApplicantTel(AesEncryptUtils.decrypt(one.getApplicantTel())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setApplicantIdentity(AesEncryptUtils.decrypt(one.getApplicantIdentity())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        deviceVOList.forEach(one->{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setLinkman(AesEncryptUtils.decrypt(one.getLinkman())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setTel(AesEncryptUtils.decrypt(one.getTel())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setRepresentative(AesEncryptUtils.decrypt(one.getRepresentative())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setApplicantName(AesEncryptUtils.decrypt(one.getApplicantName())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setApplicantTel(AesEncryptUtils.decrypt(one.getApplicantTel())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setApplicantIdentity(AesEncryptUtils.decrypt(one.getApplicantIdentity())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return MixEnvelop.getSuccessListWithPage(IotRequestMapping.Common.message_success_find, deviceVOList, page, pageSize, count); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public MixEnvelop<WlyyDeviceVO,WlyyDeviceVO> findById(Long id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String sql = "select * from device.wlyy_devices where id = "+id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sql = TransforSqlUtl.deviceAll(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyDeviceVO> deviceVOList = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(WlyyDeviceVO.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        deviceVOList.forEach(one->{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setLinkman(AesEncryptUtils.decrypt(one.getLinkman())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setTel(AesEncryptUtils.decrypt(one.getTel())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setRepresentative(AesEncryptUtils.decrypt(one.getRepresentative())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setApplicantName(AesEncryptUtils.decrypt(one.getApplicantName())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setApplicantTel(AesEncryptUtils.decrypt(one.getApplicantTel())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            one.setApplicantIdentity(AesEncryptUtils.decrypt(one.getApplicantIdentity())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        deviceVOList.forEach(one->{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setLinkman(AesEncryptUtils.decrypt(one.getLinkman())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setTel(AesEncryptUtils.decrypt(one.getTel())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setRepresentative(AesEncryptUtils.decrypt(one.getRepresentative())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setApplicantName(AesEncryptUtils.decrypt(one.getApplicantName())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setApplicantTel(AesEncryptUtils.decrypt(one.getApplicantTel())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            one.setApplicantIdentity(AesEncryptUtils.decrypt(one.getApplicantIdentity())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return MixEnvelop.getSuccess(IotRequestMapping.Common.message_success_find,deviceVOList.get(0)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 |