Merge branch 'master' into kakaoFT
This commit is contained in:
commit
dd225ab65a
@ -19,6 +19,11 @@ public class MjonBlockDAO extends EgovAbstractDAO {
|
|||||||
return (List<MjonBlockVO>)list("MjonBlockDAO.selectBlockList", blockVO);
|
return (List<MjonBlockVO>)list("MjonBlockDAO.selectBlockList", blockVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public List<String> selectBlockPhoneList(MjonBlockVO blockVO) throws Exception{
|
||||||
|
return (List<String>)list("MjonBlockDAO.selectBlockPhoneList", blockVO);
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public List<MjonBlockVO> selectAdmBlockList(MjonBlockVO blockVO) throws Exception{
|
public List<MjonBlockVO> selectAdmBlockList(MjonBlockVO blockVO) throws Exception{
|
||||||
return (List<MjonBlockVO>)list("MjonBlockDAO.selectAdmBlockList", blockVO);
|
return (List<MjonBlockVO>)list("MjonBlockDAO.selectAdmBlockList", blockVO);
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
package itn.let.mjo.block.service.impl;
|
package itn.let.mjo.block.service.impl;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
@ -57,9 +56,23 @@ public class MjonBlockServiceImpl extends EgovAbstractServiceImpl implements Mjo
|
|||||||
@Override
|
@Override
|
||||||
public void insertBlockList(MjonBlockVO mjonBlockVO) throws Exception {
|
public void insertBlockList(MjonBlockVO mjonBlockVO) throws Exception {
|
||||||
|
|
||||||
List<MjonBlockVO> blockList = new ArrayList<MjonBlockVO>();
|
/*
|
||||||
|
* 수신거부 목록 신규 등록시 기존 등록 정보와 중복 체크
|
||||||
|
* 2024.02.07 우영두 수정
|
||||||
|
* */
|
||||||
|
MjonBlockVO blockVO = new MjonBlockVO();
|
||||||
|
blockVO.setUserId(mjonBlockVO.getUserId());
|
||||||
|
blockVO.setBlockType(mjonBlockVO.getBlockType());
|
||||||
|
List<String> blockPhoneList = blockDAO.selectBlockPhoneList(blockVO);;
|
||||||
|
|
||||||
for(int i=0; i < mjonBlockVO.getPhoneList().length; i++) {
|
for(int i=0; i < mjonBlockVO.getPhoneList().length; i++) {
|
||||||
|
|
||||||
|
if(blockPhoneList.size() > 0) {
|
||||||
|
if(blockPhoneList.contains(mjonBlockVO.getPhoneList()[i])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mjonBlockVO.setBlockId(idgenBlockId.getNextStringId());
|
mjonBlockVO.setBlockId(idgenBlockId.getNextStringId());
|
||||||
mjonBlockVO.setPhone(mjonBlockVO.getPhoneList()[i].trim().replaceAll("§", ","));
|
mjonBlockVO.setPhone(mjonBlockVO.getPhoneList()[i].trim().replaceAll("§", ","));
|
||||||
|
|
||||||
|
|||||||
@ -107,6 +107,8 @@ import itn.let.mjo.kisa.service.KisaService;
|
|||||||
import itn.let.mjo.kisa.service.KisaVO;
|
import itn.let.mjo.kisa.service.KisaVO;
|
||||||
import itn.let.mjo.mjocommon.MjonForienIpChk;
|
import itn.let.mjo.mjocommon.MjonForienIpChk;
|
||||||
import itn.let.mjo.msg.service.MjonMsgVO;
|
import itn.let.mjo.msg.service.MjonMsgVO;
|
||||||
|
import itn.let.mjo.msgcampain.service.MjonCandidateService;
|
||||||
|
import itn.let.mjo.msgcampain.service.MjonCandidateVO;
|
||||||
import itn.let.mjo.msgdata.service.MjonMsgDataService;
|
import itn.let.mjo.msgdata.service.MjonMsgDataService;
|
||||||
import itn.let.mjo.msgdata.service.MjonMsgDataVO;
|
import itn.let.mjo.msgdata.service.MjonMsgDataVO;
|
||||||
import itn.let.mjo.pay.service.MjonPayService;
|
import itn.let.mjo.pay.service.MjonPayService;
|
||||||
@ -258,6 +260,9 @@ public class MainController {
|
|||||||
@Resource(name = "mberManageService")
|
@Resource(name = "mberManageService")
|
||||||
private EgovMberManageService mberManageService;
|
private EgovMberManageService mberManageService;
|
||||||
|
|
||||||
|
@Resource(name = "mjonCandidateService")
|
||||||
|
private MjonCandidateService mjonCandidateService;
|
||||||
|
|
||||||
|
|
||||||
@Value("#{globalSettings['Globals.email.host']}")
|
@Value("#{globalSettings['Globals.email.host']}")
|
||||||
private String Globals_email_host;
|
private String Globals_email_host;
|
||||||
@ -1194,6 +1199,30 @@ public class MainController {
|
|||||||
}
|
}
|
||||||
model.addAttribute("prePaymentYn", prePaymentYn);
|
model.addAttribute("prePaymentYn", prePaymentYn);
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 선거문자 메뉴 선별적 노출을 위하여 후보자 정보조회
|
||||||
|
* 비회원, 후부자 정보가 없는 회원은 선거문자가 안보이도록 처리
|
||||||
|
* 2024.02.08 우영두 추가
|
||||||
|
*
|
||||||
|
* */
|
||||||
|
String userCandidateYn = "N";
|
||||||
|
|
||||||
|
if(loginVO != null) {
|
||||||
|
|
||||||
|
//선거 후보자 정보 조회
|
||||||
|
MjonCandidateVO mjonCandidateVO = mjonCandidateService.selectCandidateDataInfo(userId);
|
||||||
|
|
||||||
|
if(mjonCandidateVO != null) {
|
||||||
|
|
||||||
|
userCandidateYn = "Y";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
model.addAttribute("userCandidateYn", userCandidateYn);
|
||||||
|
|
||||||
return "web/com/webCommonHeader";
|
return "web/com/webCommonHeader";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -52,6 +52,20 @@
|
|||||||
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
LIMIT #recordCountPerPage# OFFSET #firstIndex#
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="MjonBlockDAO.selectBlockPhoneList" parameterClass="blockVO" resultClass="String">
|
||||||
|
SELECT
|
||||||
|
PHONE AS phone
|
||||||
|
FROM
|
||||||
|
MJ_BLOCK
|
||||||
|
WHERE
|
||||||
|
1=1
|
||||||
|
AND USER_ID = #userId#
|
||||||
|
AND BLOCK_TYPE = #blockType#
|
||||||
|
ORDER BY 1=1
|
||||||
|
AND PHONE DESC
|
||||||
|
</select>
|
||||||
|
|
||||||
<!-- 차단 목록 조회(관리자용) -->
|
<!-- 차단 목록 조회(관리자용) -->
|
||||||
<select id="MjonBlockDAO.selectAdmBlockList" parameterClass="blockVO" resultClass="blockVO">
|
<select id="MjonBlockDAO.selectAdmBlockList" parameterClass="blockVO" resultClass="blockVO">
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
@ -1305,7 +1305,13 @@ function actionLogin() {
|
|||||||
<c:if test="${resultListOne.depth eq '1' }">
|
<c:if test="${resultListOne.depth eq '1' }">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${fn:contains(resultListOne.url, '/web/mjon/msgcampain/selectMsgDataView.do')}">
|
<c:when test="${fn:contains(resultListOne.url, '/web/mjon/msgcampain/selectMsgDataView.do')}">
|
||||||
|
<c:if test="${userCandidateYn eq 'Y'}">
|
||||||
<li class="new">
|
<li class="new">
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${userCandidateYn eq 'N'}">
|
||||||
|
<%-- 후보자 정보가 없는 경우 메뉴를 보여주지 않는다. --%>
|
||||||
|
<li style="display:none;">
|
||||||
|
</c:if>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
<li>
|
<li>
|
||||||
@ -1313,7 +1319,9 @@ function actionLogin() {
|
|||||||
</c:choose>
|
</c:choose>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${fn:contains(resultListOne.url, '/web/mjon/msgcampain/selectMsgDataView.do')}">
|
<c:when test="${fn:contains(resultListOne.url, '/web/mjon/msgcampain/selectMsgDataView.do')}">
|
||||||
|
<c:if test="${userCandidateYn eq 'Y'}">
|
||||||
<a href="${empty resultListOne.url ? '#' : resultListOne.url }" rel="nosublink">${resultListOne.menuNm}</a>
|
<a href="${empty resultListOne.url ? '#' : resultListOne.url }" rel="nosublink">${resultListOne.menuNm}</a>
|
||||||
|
</c:if>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:when test="${fn:contains(resultListOne.url, '/web/mjon/alimtalk/kakaoAlimtalkMsgDataView.do')}">
|
<c:when test="${fn:contains(resultListOne.url, '/web/mjon/alimtalk/kakaoAlimtalkMsgDataView.do')}">
|
||||||
<a href="${empty resultListOne.url ? '#' : resultListOne.url }" rel="nosublink">${resultListOne.menuNm}</a>
|
<a href="${empty resultListOne.url ? '#' : resultListOne.url }" rel="nosublink">${resultListOne.menuNm}</a>
|
||||||
@ -1415,6 +1423,7 @@ function actionLogin() {
|
|||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
<c:if test="${userCandidateYn eq 'Y' }">
|
||||||
<dl>
|
<dl>
|
||||||
<dt><a href="<c:out value='/web/mjon/msgcampain/selectMsgDataView.do'/>" rel="nosublink">선거문자</a></dt>
|
<dt><a href="<c:out value='/web/mjon/msgcampain/selectMsgDataView.do'/>" rel="nosublink">선거문자</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
@ -1424,6 +1433,7 @@ function actionLogin() {
|
|||||||
</ul>
|
</ul>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
</c:if>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><a href="<c:out value='/web/mjon/alimtalk/kakaoAlimtalkMsgDataView.do'/>" rel="nosublink">카톡전송</a></dt>
|
<dt><a href="<c:out value='/web/mjon/alimtalk/kakaoAlimtalkMsgDataView.do'/>" rel="nosublink">카톡전송</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user