2025-05-08 15:14 문자온 SEO 개선
This commit is contained in:
parent
d1b034529e
commit
4af623e8bd
@ -66,6 +66,7 @@ import itn.let.sym.site.service.SiteManagerVO;
|
||||
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;
|
||||
|
||||
/**
|
||||
@ -130,6 +131,9 @@ public class EgovSiteManagerController {
|
||||
@Resource(name = "userManageService")
|
||||
private EgovUserManageService userManageService;
|
||||
|
||||
@Resource(name="indexNowUtil")
|
||||
private IndexNowUtil indexNowUtil;
|
||||
|
||||
/** 알림전송 Util */
|
||||
@Resource(name = "mjonNoticeSendUtil")
|
||||
private MjonNoticeSendUtil mjonNoticeSendUtil;
|
||||
@ -2063,6 +2067,55 @@ public class EgovSiteManagerController {
|
||||
return "redirect:/sym/site/selectMetaTagList.do";
|
||||
}
|
||||
|
||||
/**
|
||||
* 메타태그 인택스
|
||||
*
|
||||
* @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";
|
||||
}
|
||||
|
||||
/**
|
||||
* 관리자 알림 여부
|
||||
*
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user