| 
						
						
							
								
							
						
						
					 | 
					@ -114,29 +114,31 @@ public class CaPingfangServiceImpl extends BaseServiceImpl<CaPingfangDao, CaPing | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     */ | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public void preserPingFangVation(PreserVationFormDTO dto) { | 
					 | 
					 | 
					    public void preserPingFangVation(PreserVationFormDTO dto) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        baseDao.deleteAll(); | 
					 | 
					 | 
					        int i = baseDao.deleteAll(); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					
 | 
					 | 
					 | 
					        if (i >= 0) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        dto.setPageNo(NumConstant.ONE); | 
					 | 
					 | 
					            dto.setPageNo(NumConstant.ONE); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        dto.setPageSize(NumConstant.FIFTY); | 
					 | 
					 | 
					            dto.setPageSize(NumConstant.FIFTY); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        dto.setTableSchema(CaWghDataConstant.TABLESCHEMA_UNICOM); | 
					 | 
					 | 
					            dto.setTableSchema(CaWghDataConstant.TABLESCHEMA_UNICOM); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        dto.setTableName(CaWghDataConstant.UNICOM_PINGFANG); | 
					 | 
					 | 
					            dto.setTableName(CaWghDataConstant.UNICOM_PINGFANG); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        dto.setWhereCase("delete_flag = 'normal'"); | 
					 | 
					 | 
					            dto.setWhereCase("delete_flag = 'normal'"); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        dto.setOrderBy("grid_id,update_date desc"); | 
					 | 
					 | 
					            dto.setOrderBy("grid_id,update_date,building_id desc"); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        int pageNo = 1; | 
					 | 
					 | 
					            int pageNo = 1; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        int total = 0; | 
					 | 
					 | 
					            int total = 0; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            do { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    total = listPingFang(dto); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    pageNo++; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    dto.setPageNo(pageNo); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                } catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                    e.printStackTrace(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            } while (total > (pageNo * NumConstant.FIFTY)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        do { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                total = listPingFang(dto); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                pageNo++; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                dto.setPageNo(pageNo); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } catch (Exception e) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                e.printStackTrace(); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } while (total > (pageNo * NumConstant.FIFTY)); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -149,7 +151,7 @@ public class CaPingfangServiceImpl extends BaseServiceImpl<CaPingfangDao, CaPing | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private int listPingFang(PreserVationFormDTO dto) throws Exception { | 
					 | 
					 | 
					    private int listPingFang(PreserVationFormDTO dto) throws Exception { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        String aes = AesUtils.encryptByAES(JSONObject.toJSONString(dto), CaWghDataConstant.AESKEY); | 
					 | 
					 | 
					        String aes = AesUtils.encryptByAES(JSONObject.toJSONString(dto), CaWghDataConstant.AESKEY); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        JSONObject obj = new JSONObject(); | 
					 | 
					 | 
					        JSONObject obj = new JSONObject(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        obj.put(CaWghDataConstant.UNICOM_CONDITION,aes); | 
					 | 
					 | 
					        obj.put(CaWghDataConstant.UNICOM_CONDITION, aes); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        String data = HttpClientManager.getInstance().sendPostByJSON(CaWghDataConstant.DATA_URL_UNICON, obj.toJSONString()).getData(); | 
					 | 
					 | 
					        String data = HttpClientManager.getInstance().sendPostByJSON(CaWghDataConstant.DATA_URL_UNICON, obj.toJSONString()).getData(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        JSONObject toResult = JSON.parseObject(data); | 
					 | 
					 | 
					        JSONObject toResult = JSON.parseObject(data); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Result result = ConvertUtils.mapToEntity(toResult, Result.class); | 
					 | 
					 | 
					        Result result = ConvertUtils.mapToEntity(toResult, Result.class); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |