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
... | ... | @@ -66,6 +66,7 @@ |
| 66 | 66 |
import itn.let.sym.site.service.TermsVO; |
| 67 | 67 |
import itn.let.uss.umt.service.EgovUserManageService; |
| 68 | 68 |
import itn.let.uss.umt.service.UserManageVO; |
| 69 |
+import itn.let.utl.user.service.IndexNowUtil; |
|
| 69 | 70 |
import itn.let.utl.user.service.MjonNoticeSendUtil; |
| 70 | 71 |
|
| 71 | 72 |
/** |
... | ... | @@ -129,6 +130,9 @@ |
| 129 | 130 |
|
| 130 | 131 |
@Resource(name = "userManageService") |
| 131 | 132 |
private EgovUserManageService userManageService; |
| 133 |
+ |
|
| 134 |
+ @Resource(name="indexNowUtil") |
|
| 135 |
+ private IndexNowUtil indexNowUtil; |
|
| 132 | 136 |
|
| 133 | 137 |
/** 알림전송 Util */ |
| 134 | 138 |
@Resource(name = "mjonNoticeSendUtil") |
... | ... | @@ -2064,6 +2068,55 @@ |
| 2064 | 2068 |
} |
| 2065 | 2069 |
|
| 2066 | 2070 |
/** |
| 2071 |
+ * 메타태그 인택스 |
|
| 2072 |
+ * |
|
| 2073 |
+ * @param metaTagVO |
|
| 2074 |
+ * @param model |
|
| 2075 |
+ * @return |
|
| 2076 |
+ * @throws Exception |
|
| 2077 |
+ */ |
|
| 2078 |
+ @RequestMapping("/sym/site/selectMetaTagIndex.do")
|
|
| 2079 |
+ public String selectMetaTagIndex(@ModelAttribute("searchVO") MetaTagVO metaTagVO, ModelMap model) throws Exception{
|
|
| 2080 |
+ |
|
| 2081 |
+ /** paging */ |
|
| 2082 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 2083 |
+ paginationInfo.setCurrentPageNo(1); |
|
| 2084 |
+ paginationInfo.setRecordCountPerPage(100000); |
|
| 2085 |
+ paginationInfo.setPageSize(1); |
|
| 2086 |
+ |
|
| 2087 |
+ metaTagVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 2088 |
+ metaTagVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 2089 |
+ metaTagVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 2090 |
+ |
|
| 2091 |
+ if("".equals(metaTagVO.getSearchSortCnd())){ //최초조회시 최신것 조회List
|
|
| 2092 |
+ metaTagVO.setSearchSortCnd("frstRegistPnttm");
|
|
| 2093 |
+ metaTagVO.setSearchSortOrd("desc");
|
|
| 2094 |
+ } |
|
| 2095 |
+ |
|
| 2096 |
+ metaTagVO.setSearchKeyword("10");
|
|
| 2097 |
+ metaTagVO.setSearchCondition("10");
|
|
| 2098 |
+ |
|
| 2099 |
+ List<MetaTagVO> metaTagList = egovSiteManagerService.selectMetaTagList(metaTagVO); |
|
| 2100 |
+ /* |
|
| 2101 |
+ model.addAttribute("metaTagList", metaTagList);
|
|
| 2102 |
+ paginationInfo.setTotalRecordCount( metaTagList.size()> 0 ? metaTagList.get(0).getTotCnt() : 0); |
|
| 2103 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 2104 |
+ */ |
|
| 2105 |
+ |
|
| 2106 |
+ for (int i=0;i<metaTagList.size();i++) {
|
|
| 2107 |
+ indexNowUtil.submitUrl("https://www.munjaon.co.kr" + metaTagList.get(i).getUrl());
|
|
| 2108 |
+ //if (i>2) break; |
|
| 2109 |
+ |
|
| 2110 |
+ } |
|
| 2111 |
+ |
|
| 2112 |
+ |
|
| 2113 |
+ //submitUrl("https://yourdomain.com/new-post.html"); // 🔁 여기에 전송할 실제 URL 입력
|
|
| 2114 |
+ |
|
| 2115 |
+ //return "/sym/site/metaTagList"; |
|
| 2116 |
+ return "redirect:/sym/site/selectMetaTagList.do"; |
|
| 2117 |
+ } |
|
| 2118 |
+ |
|
| 2119 |
+ /** |
|
| 2067 | 2120 |
* 관리자 알림 여부 |
| 2068 | 2121 |
* |
| 2069 | 2122 |
* @param joinSettingVO |
--- 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 @@ |
| 669 | 669 |
) |
| 670 | 670 |
</insert> |
| 671 | 671 |
|
| 672 |
+ <!-- 사용자 캐쉬 업데이트 --> |
|
| 672 | 673 |
<insert id="mjonPayDAO.updateMemberCash" parameterClass="mjonPayVO"> |
| 673 | 674 |
<selectKey keyProperty="strCash" resultClass="String"> |
| 674 | 675 |
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
... | ... | @@ -906,15 +906,20 @@ |
| 906 | 906 |
FROM MJ_META_TAG a |
| 907 | 907 |
WHERE 1 = 1 |
| 908 | 908 |
<isNotEmpty property="searchKeyword"> |
| 909 |
+ |
|
| 909 | 910 |
<isEqual prepend="AND" property="searchCondition" compareValue=""> |
| 910 | 911 |
( URL LIKE CONCAT('%' , #searchKeyword#, '%') OR MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%') )
|
| 911 | 912 |
</isEqual> |
| 912 | 913 |
<isEqual prepend="AND" property="searchCondition" compareValue="1"> |
| 913 | 914 |
URL LIKE CONCAT('%' , #searchKeyword#, '%')
|
| 914 | 915 |
</isEqual> |
| 915 |
- <isEqual prepend="AND" property="searchCondition" compareValue="2"> |
|
| 916 |
+ <isEqual prepend="AND" property="searchCondition" compareValue="2"> |
|
| 916 | 917 |
MENU_NM LIKE CONCAT('%' , #searchKeyword#, '%')
|
| 917 | 918 |
</isEqual> |
| 919 |
+ <isEqual prepend="AND" property="searchCondition" compareValue="10"> |
|
| 920 |
+ DATE_FORMAT(a.LAST_UPDT_PNTTM,'%Y%m%d') >= DATE_FORMAT(DATE_ADD(NOW(), interval -7 day),'%Y%m%d') |
|
| 921 |
+ </isEqual> |
|
| 922 |
+ |
|
| 918 | 923 |
</isNotEmpty> |
| 919 | 924 |
ORDER BY 1=1 |
| 920 | 925 |
<isNotEmpty property="searchSortCnd"> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?