myname 2025-05-08
2025-05-08 15:14 문자온 SEO 개선
@4af623e8bdd910f31e41561348aacea3486619c3
src/main/java/itn/let/sym/site/web/EgovSiteManagerController.java
--- src/main/java/itn/let/sym/site/web/EgovSiteManagerController.java
+++ src/main/java/itn/let/sym/site/web/EgovSiteManagerController.java
@@ -66,6 +66,7 @@
 import itn.let.sym.site.service.TermsVO;
 import itn.let.uss.umt.service.EgovUserManageService;
 import itn.let.uss.umt.service.UserManageVO;
+import itn.let.utl.user.service.IndexNowUtil;
 import itn.let.utl.user.service.MjonNoticeSendUtil;
 
 /**
@@ -129,6 +130,9 @@
 	
 	@Resource(name = "userManageService")
 	private EgovUserManageService userManageService;
+	
+	@Resource(name="indexNowUtil")
+	private IndexNowUtil indexNowUtil;
 	
 	/** 알림전송 Util */
 	@Resource(name = "mjonNoticeSendUtil")
@@ -2064,6 +2068,55 @@
     }
     
     /**
+     * 메타태그 인택스
+     * 
+     * @param metaTagVO
+     * @param model
+     * @return
+     * @throws Exception
+     */
+    @RequestMapping("/sym/site/selectMetaTagIndex.do")
+    public String selectMetaTagIndex(@ModelAttribute("searchVO") MetaTagVO metaTagVO, ModelMap model) throws Exception{
+    	
+		/** paging */
+		PaginationInfo paginationInfo = new PaginationInfo();
+		paginationInfo.setCurrentPageNo(1);
+		paginationInfo.setRecordCountPerPage(100000);
+		paginationInfo.setPageSize(1);
+
+		metaTagVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
+		metaTagVO.setLastIndex(paginationInfo.getLastRecordIndex());
+		metaTagVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
+    	
+		if("".equals(metaTagVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
+			metaTagVO.setSearchSortCnd("frstRegistPnttm");
+			metaTagVO.setSearchSortOrd("desc");
+		}		
+		
+		metaTagVO.setSearchKeyword("10");	
+		metaTagVO.setSearchCondition("10");
+		
+		List<MetaTagVO> metaTagList = egovSiteManagerService.selectMetaTagList(metaTagVO);
+		/*
+		model.addAttribute("metaTagList", metaTagList);
+		paginationInfo.setTotalRecordCount( metaTagList.size()> 0 ? metaTagList.get(0).getTotCnt() : 0);
+		model.addAttribute("paginationInfo", paginationInfo);
+		*/
+		
+		for (int i=0;i<metaTagList.size();i++) {
+			indexNowUtil.submitUrl("https://www.munjaon.co.kr" + metaTagList.get(i).getUrl());			
+			//if (i>2) break;
+			
+		}
+		
+		
+		//submitUrl("https://yourdomain.com/new-post.html"); // 🔁 여기에 전송할 실제 URL 입력
+		
+    	//return "/sym/site/metaTagList";
+    	return "redirect:/sym/site/selectMetaTagList.do";
+    }    
+    
+    /**
      * 관리자 알림 여부
      * 
      * @param joinSettingVO
src/main/resources/egovframework/sqlmap/let/pay/MjonPay_SQL_mysql.xml
--- src/main/resources/egovframework/sqlmap/let/pay/MjonPay_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/pay/MjonPay_SQL_mysql.xml
@@ -669,6 +669,7 @@
        )
 	</insert>
 	
+	<!-- 사용자 캐쉬 업데이트 -->
 	<insert id="mjonPayDAO.updateMemberCash" parameterClass="mjonPayVO">
 		<selectKey keyProperty="strCash" resultClass="String">
 		 	SELECT NVL(B.CASH , 0) AS cash FROM   LETTNGNRLMBER A 
src/main/resources/egovframework/sqlmap/let/sym/site/EgovSiteManage_SQL_Mysql.xml
--- src/main/resources/egovframework/sqlmap/let/sym/site/EgovSiteManage_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/sym/site/EgovSiteManage_SQL_Mysql.xml
@@ -906,15 +906,20 @@
 			FROM MJ_META_TAG a
 			 WHERE 1 = 1
             <isNotEmpty property="searchKeyword">
+            
                 <isEqual prepend="AND" property="searchCondition" compareValue="">
 				 	( URL LIKE CONCAT('%' , #searchKeyword#, '%')  OR  MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%') )
                 </isEqual>
                 <isEqual prepend="AND" property="searchCondition" compareValue="1">
 				 	URL LIKE CONCAT('%' , #searchKeyword#, '%')
                 </isEqual>
-                 <isEqual prepend="AND" property="searchCondition" compareValue="2">
+                <isEqual prepend="AND" property="searchCondition" compareValue="2">
 				 	MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')
                 </isEqual>
+                <isEqual prepend="AND" property="searchCondition" compareValue="10">
+				 	DATE_FORMAT(a.LAST_UPDT_PNTTM,'%Y%m%d') >= DATE_FORMAT(DATE_ADD(NOW(), interval -7 day),'%Y%m%d')
+                </isEqual>
+                
             </isNotEmpty>
             ORDER BY 1=1
             <isNotEmpty property="searchSortCnd">
Add a comment
List