회원상세 알림톡목록 쿼리조건 수정

This commit is contained in:
itn 2023-09-04 12:38:34 +09:00
parent 06fe04fbde
commit 3bb1f11a5a
4 changed files with 89 additions and 32 deletions

View File

@ -1412,7 +1412,7 @@ public class EgovUserManageController {
*/ */
KakaoVO sendKakaoVO = new KakaoVO(); KakaoVO sendKakaoVO = new KakaoVO();
sendKakaoVO.setSearchCondition2("N");//예약건은 제외하기 //sendKakaoVO.setSearchCondition2("N");//예약건은 제외하기
sendKakaoVO.setReserveCYn("N");//예약취소건은 제외하기 sendKakaoVO.setReserveCYn("N");//예약취소건은 제외하기
sendKakaoVO.setUserId(reqMberManageVO.getMberId()); sendKakaoVO.setUserId(reqMberManageVO.getMberId());
// 문자발송 완료건은 모두 보이도록 처리 // 문자발송 완료건은 모두 보이도록 처리
@ -1431,6 +1431,7 @@ public class EgovUserManageController {
*/ */
KakaoVO reserveKakaoVO = new KakaoVO(); KakaoVO reserveKakaoVO = new KakaoVO();
reserveKakaoVO.setReserveYn("Y"); //예약건만 조회
reserveKakaoVO.setSearchCondition2("Y");//예약건만 불러오기 reserveKakaoVO.setSearchCondition2("Y");//예약건만 불러오기
reserveKakaoVO.setReserveCYn("N");//예약취소건은 제외하기 reserveKakaoVO.setReserveCYn("N");//예약취소건은 제외하기
reserveKakaoVO.setUserId(reqMberManageVO.getMberId()); reserveKakaoVO.setUserId(reqMberManageVO.getMberId());

View File

@ -439,7 +439,7 @@
AGENT_CODE AS agentCode , AGENT_CODE AS agentCode ,
RESERVE_YN AS reserveYn , RESERVE_YN AS reserveYn ,
RESERVE_C_YN AS reserveCYn , RESERVE_C_YN AS reserveCYn ,
CANCELDATE AS cancelDate , DATE_FORMAT(CANCELDATE, '%Y-%m-%d %T') AS cancelDate ,
msgTypeName AS msgTypeName , msgTypeName AS msgTypeName ,
orderByCode AS orderByCode , orderByCode AS orderByCode ,
RESULT AS msgResult , RESULT AS msgResult ,
@ -554,13 +554,13 @@
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="" > <isEqual property="searchCondition2" compareValue="" >
AND M.RESERVE_YN IN ('Y','N') AND IFNULL(M.RESERVE_YN, 'N') IN ('Y','N')
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="N"> <isEqual property="searchCondition2" compareValue="N">
AND M.RESERVE_YN = 'N' AND IFNULL(M.RESERVE_YN, 'N') = 'N'
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="Y"> <isEqual property="searchCondition2" compareValue="Y">
AND M.RESERVE_YN = 'Y' AND IFNULL(M.RESERVE_YN, 'N') = 'Y'
</isEqual> </isEqual>
</isNotEmpty> </isNotEmpty>
@ -585,13 +585,13 @@
</isNotEmpty> </isNotEmpty>
<isNotEmpty property="searchCondition2"> <isNotEmpty property="searchCondition2">
<isEqual property="searchCondition2" compareValue="" > <isEqual property="searchCondition2" compareValue="" >
AND M.RESERVE_YN IN ('Y','N') AND IFNULL(M.RESERVE_YN, 'N') IN ('Y','N')
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="N"> <isEqual property="searchCondition2" compareValue="N">
AND M.RESERVE_YN = 'N' AND IFNULL(M.RESERVE_YN, 'N') = 'N'
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="Y"> <isEqual property="searchCondition2" compareValue="Y">
AND M.RESERVE_YN = 'Y' AND IFNULL(M.RESERVE_YN, 'N') = 'Y'
</isEqual> </isEqual>
</isNotEmpty> </isNotEmpty>
</isEmpty> </isEmpty>
@ -1214,7 +1214,7 @@
AGENT_CODE AS agentCode , AGENT_CODE AS agentCode ,
RESERVE_YN AS reserveYn , RESERVE_YN AS reserveYn ,
RESERVE_C_YN AS reserveCYn , RESERVE_C_YN AS reserveCYn ,
CANCELDATE AS cancelDate , DATE_FORMAT(CANCELDATE, '%Y-%m-%d %T') AS cancelDate ,
msgTypeName AS msgTypeName , msgTypeName AS msgTypeName ,
orderByCode AS orderByCode , orderByCode AS orderByCode ,
RESULT AS msgResult , RESULT AS msgResult ,
@ -1319,13 +1319,13 @@
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="" > <isEqual property="searchCondition2" compareValue="" >
AND M.RESERVE_YN IN ('Y','N') AND IFNULL(M.RESERVE_YN, 'N') IN ('Y','N')
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="N"> <isEqual property="searchCondition2" compareValue="N">
AND M.RESERVE_YN = 'N' AND IFNULL(M.RESERVE_YN, 'N') = 'N'
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="Y"> <isEqual property="searchCondition2" compareValue="Y">
AND M.RESERVE_YN = 'Y' AND IFNULL(M.RESERVE_YN, 'N') = 'Y'
</isEqual> </isEqual>
</isNotEmpty> </isNotEmpty>
@ -1350,13 +1350,13 @@
</isNotEmpty> </isNotEmpty>
<isNotEmpty property="searchCondition2"> <isNotEmpty property="searchCondition2">
<isEqual property="searchCondition2" compareValue="" > <isEqual property="searchCondition2" compareValue="" >
AND M.RESERVE_YN IN ('Y','N') AND IFNULL(M.RESERVE_YN, 'N') IN ('Y','N')
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="N"> <isEqual property="searchCondition2" compareValue="N">
AND M.RESERVE_YN = 'N' AND IFNULL(M.RESERVE_YN, 'N') = 'N'
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="Y"> <isEqual property="searchCondition2" compareValue="Y">
AND M.RESERVE_YN = 'Y' AND IFNULL(M.RESERVE_YN, 'N') = 'Y'
</isEqual> </isEqual>
</isNotEmpty> </isNotEmpty>
</isEmpty> </isEmpty>
@ -1364,7 +1364,7 @@
<isNotEmpty property="pageType"> <isNotEmpty property="pageType">
<isEqual property="pageType" compareValue="sand"> <isEqual property="pageType" compareValue="sand">
AND M.AT_DELAY_COMPLETE_YN ='Y' AND M.AT_DELAY_COMPLETE_YN ='Y'
AND M.REFUND_YN = 'N' /*AND M.REFUND_YN = 'N'*/
</isEqual> </isEqual>
</isNotEmpty> </isNotEmpty>
@ -1996,13 +1996,13 @@
</isNotEmpty> </isNotEmpty>
<isNotEmpty property="searchCondition2"> <isNotEmpty property="searchCondition2">
<isEqual property="searchCondition2" compareValue="" > <isEqual property="searchCondition2" compareValue="" >
AND M.RESERVE_YN IN ('Y','N') AND IFNULL(M.RESERVE_YN, 'N') IN ('Y','N')
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="N"> <isEqual property="searchCondition2" compareValue="N">
AND M.RESERVE_YN = 'N' AND IFNULL(M.RESERVE_YN, 'N') = 'N'
</isEqual> </isEqual>
<isEqual property="searchCondition2" compareValue="Y"> <isEqual property="searchCondition2" compareValue="Y">
AND M.RESERVE_YN = 'Y' AND IFNULL(M.RESERVE_YN, 'N') = 'Y'
</isEqual> </isEqual>
</isNotEmpty> </isNotEmpty>
</isEmpty> </isEmpty>

View File

@ -3902,6 +3902,15 @@ function kakaoATDelayCancel(msgGroupId){
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<c:choose> <c:choose>
<c:when test="${mjonMsgSentList.delayYn eq 'Y' && mjonMsgSentList.delayCompleteYn eq 'Y' && not empty mjonMsgSentList.cancelDate}">
<span style="color: red;">
<c:if test="${mjonMsgSentList.reserveYn eq 'Y'}">
[예약]
</c:if>
[발송취소]<br />
<fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="MM-dd HH:mm"/>
</span>
</c:when>
<c:when test="${mjonMsgSentList.reserveCYn eq 'Y'}"> <c:when test="${mjonMsgSentList.reserveCYn eq 'Y'}">
[예약취소]<br /> [예약취소]<br />
<fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="MM-dd HH:mm"/> <fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="MM-dd HH:mm"/>
@ -3910,12 +3919,6 @@ function kakaoATDelayCancel(msgGroupId){
[예약]<br /> [예약]<br />
<fmt:formatDate value="${mjonMsgSentList.reqdate}" pattern="MM-dd HH:mm"/> <fmt:formatDate value="${mjonMsgSentList.reqdate}" pattern="MM-dd HH:mm"/>
</c:when> </c:when>
<c:when test="${mjonMsgSentList.delayYn eq 'Y' && mjonMsgSentList.delayCompleteYn eq 'Y' && not empty mjonMsgSentList.cancelDate}">
<span style="color: red;">
[발송취소]<br />
<fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="MM-dd HH:mm"/>
</span>
</c:when>
<c:otherwise> <c:otherwise>
- -
</c:otherwise> </c:otherwise>
@ -4109,6 +4112,15 @@ function kakaoATDelayCancel(msgGroupId){
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<c:choose> <c:choose>
<c:when test="${mjonMsgSentList.delayYn eq 'Y' && mjonMsgSentList.delayCompleteYn eq 'Y' && not empty mjonMsgSentList.cancelDate}">
<span style="color: red;">
<c:if test="${mjonMsgSentList.reserveYn eq 'Y'}">
[예약]
</c:if>
[발송취소]<br />
<fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="yyyy-MM-dd HH:mm"/>
</span>
</c:when>
<c:when test="${mjonMsgSentList.reserveCYn eq 'Y'}"> <c:when test="${mjonMsgSentList.reserveCYn eq 'Y'}">
[예약취소]<br /> [예약취소]<br />
<fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="yyyy-MM-dd HH:mm"/> <fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="yyyy-MM-dd HH:mm"/>
@ -4117,12 +4129,6 @@ function kakaoATDelayCancel(msgGroupId){
[예약]<br /> [예약]<br />
<fmt:formatDate value="${mjonMsgSentList.reqdate}" pattern="yyyy-MM-dd HH:mm"/> <fmt:formatDate value="${mjonMsgSentList.reqdate}" pattern="yyyy-MM-dd HH:mm"/>
</c:when> </c:when>
<c:when test="${mjonMsgSentList.delayYn eq 'Y' && mjonMsgSentList.delayCompleteYn eq 'Y' && not empty mjonMsgSentList.cancelDate}">
<span style="color: red;">
[발송취소]<br />
<fmt:formatDate value="${mjonMsgSentList.cancelDate}" pattern="yyyy-MM-dd HH:mm"/>
</span>
</c:when>
<c:otherwise> <c:otherwise>
- -
</c:otherwise> </c:otherwise>
@ -4525,6 +4531,16 @@ function kakaoATDelayCancel(msgGroupId){
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<c:choose> <c:choose>
<c:when test="${kakaoResultList.atDelayYn eq 'Y' && kakaoResultList.atDelayCompleteYn eq 'Y' && not empty kakaoResultList.cancelDate}">
<span style="color: red;">
<c:if test="${kakaoResultList.reserveYn eq 'Y'}">
[예약]
</c:if>
[발송취소]<br />
<fmt:parseDate value="${kakaoResultList.cancelDate}" var="cancelDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${cancelDateValue}" pattern="MM-dd HH:mm"/>
</span>
</c:when>
<c:when test="${kakaoResultList.reserveCYn eq 'Y'}"> <c:when test="${kakaoResultList.reserveCYn eq 'Y'}">
[예약취소]<br /> [예약취소]<br />
<fmt:parseDate value="${kakaoResultList.cancelDate}" var="dateValue" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:parseDate value="${kakaoResultList.cancelDate}" var="dateValue" pattern="yyyy-MM-dd HH:mm:ss"/>
@ -4652,6 +4668,13 @@ function kakaoATDelayCancel(msgGroupId){
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<c:choose> <c:choose>
<c:when test="${kakaoReserveList.atDelayYn eq 'Y' && kakaoReserveList.atDelayCompleteYn eq 'Y' && not empty kakaoReserveList.cancelDate}">
<span style="color: red;">
[발송취소]<br />
<fmt:parseDate value="${kakaoReserveList.cancelDate}" var="cancelDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${cancelDateValue}" pattern="MM-dd HH:mm"/>
</span>
</c:when>
<c:when test="${kakaoReserveList.reserveCYn eq 'Y'}"> <c:when test="${kakaoReserveList.reserveCYn eq 'Y'}">
[예약취소]<br /> [예약취소]<br />
<fmt:parseDate value="${kakaoReserveList.cancelDate}" var="dateValue" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:parseDate value="${kakaoReserveList.cancelDate}" var="dateValue" pattern="yyyy-MM-dd HH:mm:ss"/>

View File

@ -404,6 +404,7 @@ function msgDetailClose(obj){
<col style="width: 10%"> <col style="width: 10%">
<col style="width: 10%"> <col style="width: 10%">
<col style="width: 10%"> <col style="width: 10%">
<col style="width: 10%">
<col style="width: 8%"> <col style="width: 8%">
<col style="width: 20%"> <col style="width: 20%">
<col style="width: 7%"> <col style="width: 7%">
@ -414,6 +415,7 @@ function msgDetailClose(obj){
<th>아이디</th> <th>아이디</th>
<th>채널ID</th> <th>채널ID</th>
<th>발송건수</th> <th>발송건수</th>
<th>스미싱의심</th>
<th>요청시간</th> <th>요청시간</th>
<th>예약</th> <th>예약</th>
<th>내용</th> <th>내용</th>
@ -457,6 +459,37 @@ function msgDetailClose(obj){
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</td> </td>
<td>
<c:choose>
<c:when test="${result.atDelayYn eq 'Y'}">
<c:choose>
<c:when test="${result.atDelayCompleteYn eq 'Y' && not empty result.cancelDate}">
<span style="color: #0000FF;">
<c:if test="${result.atSmishingYn eq 'Y'}">온</c:if>
<c:if test="${result.atSmishingYn eq 'N'}">오프</c:if>[발송취소]
<span style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;margin-top:3px;" title="<c:out value="${result.cancelDate}"/>">
<fmt:parseDate value="${result.cancelDate}" var="cancelDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${cancelDateValue}" pattern="MM-dd HH:mm"/>
</span>
</span>
</c:when>
<c:when test="${result.atDelayCompleteYn eq 'N'}">
<c:if test="${result.atSmishingYn eq 'Y'}">온</c:if>
<c:if test="${result.atSmishingYn eq 'N'}">오프</c:if>[미처리]
</c:when>
<c:otherwise>
<span style="color: #0000FF;">
<c:if test="${result.atSmishingYn eq 'Y'}">온</c:if>
<c:if test="${result.atSmishingYn eq 'N'}">오프</c:if>[승인]
</span>
</c:otherwise>
</c:choose>
</c:when>
<c:otherwise>
-
</c:otherwise>
</c:choose>
</td>
<td> <td>
<fmt:parseDate value="${result.reqDate}" var="reqDateValue" pattern="yyyy-MM-dd HH:mm"/> <fmt:parseDate value="${result.reqDate}" var="reqDateValue" pattern="yyyy-MM-dd HH:mm"/>
<fmt:formatDate value="${reqDateValue}" pattern="MM-dd HH:mm"/> <fmt:formatDate value="${reqDateValue}" pattern="MM-dd HH:mm"/>