| 
						
						
							
								
							
						
						
					 | 
					@ -58,6 +58,20 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        WHERE a.DEL_FLAG = '0' | 
					 | 
					 | 
					        WHERE a.DEL_FLAG = '0' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          AND a.STATUS_FLAG = 'published' | 
					 | 
					 | 
					          AND a.STATUS_FLAG = 'published' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          AND a.CUSTOMER_ID = #{customerId} | 
					 | 
					 | 
					          AND a.CUSTOMER_ID = #{customerId} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          <if test="tagIdList !=null and tagIdList.size() > 0"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              AND EXISTS ( | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              SELECT DISTINCT | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              at.ARTICLE_ID | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              FROM article_tags at | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              WHERE at.DEL_FLAG = '0' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              AND at.ARTICLE_ID = a.ID | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              <foreach item="tagId" collection="tagIdList" open="AND (" separator="or" close=")" index=""> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                  at.TAG_ID = #{tagId} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              </foreach> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              ) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ORDER BY PUBLISH_DATE DESC, UPDATED_TIME DESC | 
					 | 
					 | 
					        ORDER BY PUBLISH_DATE DESC, UPDATED_TIME DESC | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    </select> | 
					 | 
					 | 
					    </select> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <select id="selectArticleListForGrid" resultType="com.epmet.dto.result.PublishedListResultDTO"> | 
					 | 
					 | 
					    <select id="selectArticleListForGrid" resultType="com.epmet.dto.result.PublishedListResultDTO"> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -95,6 +109,18 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        WHERE aa.DEL_FLAG = '0' | 
					 | 
					 | 
					        WHERE aa.DEL_FLAG = '0' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          AND aa.STATUS_FLAG = 'published' | 
					 | 
					 | 
					          AND aa.STATUS_FLAG = 'published' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          AND aa.CUSTOMER_ID = #{customerId}) t | 
					 | 
					 | 
					          AND aa.CUSTOMER_ID = #{customerId}) t | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        <if test="tagIdList !=null and tagIdList.size() > 0"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            AND EXISTS ( | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            SELECT DISTINCT | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            at.ARTICLE_ID | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            FROM article_tags at | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            WHERE at.DEL_FLAG = '0' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            AND at.ARTICLE_ID = t.articleId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            <foreach item="tagId" collection="tagIdList" open="AND (" separator="or" close=")" index=""> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                at.TAG_ID = #{tagId} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            </foreach> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            ) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ORDER BY publishDate DESC, UPDATED_TIME DESC | 
					 | 
					 | 
					        ORDER BY publishDate DESC, UPDATED_TIME DESC | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    </select> | 
					 | 
					 | 
					    </select> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |