| 
					
				 | 
			
			
				@@ -189,11 +189,14 @@ public class TCntrnoServiceImpl implements ITCntrnoService 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public List<Map<String, Object>> getTCntrnoMessage(TCntrno tCntrno) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         StringBuffer stringBuffer = new StringBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<String> list = tCntrMapper.selectTCntrFNo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for (String s : list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            stringBuffer.append("MAX( CASE WHEN tt.f_no = '"+s); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            stringBuffer.append("' THEN tt.typeidCount ELSE 0 END ) AS '" +s +"',"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String sql = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (CollectionUtils.isNotEmpty(list)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (String s : list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                stringBuffer.append("MAX( CASE WHEN tt.f_no = '"+s); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                stringBuffer.append("' THEN tt.typeidCount ELSE 0 END ) AS '" +s +"',"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            sql = stringBuffer.subSequence(0,stringBuffer.length() -1).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        String sql = stringBuffer.subSequence(0,stringBuffer.length() -1).toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return tCntrnoMapper.getTCntrnoMessage(sql,tCntrno); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |