| 
					
				 | 
			
			
				@@ -151,11 +151,11 @@ public class GgWebService extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		for (GgEntity gg : pageList) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			List<PredicateModel> filterList2 = new ArrayList<PredicateModel>();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			addNotEmptyModel(filterList, "entityType.id",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			addNotEmptyModel(filterList2, "entityType.id",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					Constants.FJSSLX_T_YJPT_GG, Operator.EQ);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			addNotEmptyModel(filterList, "recordStatus",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			addNotEmptyModel(filterList2, "recordStatus",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					BaseEntity.RECORD_STATE_DELETE, Operator.NEQ);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			addNotEmptyModel(filterList, "entityId", gg.getId(),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			addNotEmptyModel(filterList2, "entityId", gg.getId(),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					PredicateModel.Operator.EQ);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			Specification<AccessoryEntity> accSpec = SpecificationCreater
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					.searchByPredicateModels(filterList2);
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -174,6 +174,19 @@ public class GgWebService extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public GgEntity findById(Long id){
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     	GgEntity entity = service.findById(id);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    	List<PredicateModel> filterList= new ArrayList<PredicateModel>();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		addNotEmptyModel(filterList, "entityType.id",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				Constants.FJSSLX_T_YJPT_GG, Operator.EQ);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		addNotEmptyModel(filterList, "recordStatus",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				BaseEntity.RECORD_STATE_DELETE, Operator.NEQ);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		addNotEmptyModel(filterList, "entityId", entity.getId(),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				PredicateModel.Operator.EQ);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		Specification<AccessoryEntity> accSpec = SpecificationCreater
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				.searchByPredicateModels(filterList);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		List<AccessoryEntity> acc = accessoryService.findAll(accSpec);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		if (acc != null && acc.size() > 0) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			entity.setAccessory(acc.get(0));
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     	return entity;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
 
			 |