2025-05-27 11:31 관리자 문자전송순위 리스트 쿼리 수정(통계 업데이트 없이 간략하게 확인 가능)
This commit is contained in:
parent
fad70e3bd8
commit
bd12fc8187
@ -2773,6 +2773,7 @@
|
||||
</select>
|
||||
|
||||
<select id="mjonMsgDAO.selectRankNumberList_230125" parameterClass="mjPhoneMemberVO" resultClass="mjPhoneMemberVO">
|
||||
/* mjonMsgDAO.selectRankNumberList_230125 */
|
||||
SELECT
|
||||
M.totCnt,
|
||||
M.userId,
|
||||
@ -2806,14 +2807,30 @@
|
||||
sum(cnt) CNT
|
||||
, max(regist_pnttm) as frstRegistPnttm
|
||||
FROM mj_sttst_msg_rank AA
|
||||
WHERE 1=1
|
||||
WHERE 1=2
|
||||
<isNotEmpty property="msgType">
|
||||
AND MSG_TYPE = #msgType#
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="agentCode">
|
||||
AND AGENT_CODE = #agentCode#
|
||||
</isNotEmpty>
|
||||
GROUP BY AA.MBER_ID
|
||||
GROUP BY AA.MBER_ID
|
||||
|
||||
/* 상위 통계 테이블 정지된 상태로 아래 쿼리로 임시 처리했음 */
|
||||
UNION ALL
|
||||
SELECT A.user_id,
|
||||
SUM(msg_group_cnt) CNT ,
|
||||
MAX(req_date) AS frstRegistPnttm
|
||||
FROM mj_msg_group_data a
|
||||
WHERE 1=1
|
||||
<isNotEmpty property="msgType">
|
||||
AND MSG_TYPE = #msgType#
|
||||
</isNotEmpty>
|
||||
<isNotEmpty property="agentCode">
|
||||
AND AGENT_CODE = #agentCode#
|
||||
</isNotEmpty>
|
||||
GROUP BY A.USER_ID
|
||||
|
||||
) A
|
||||
LEFT JOIN COMVNUSERMASTER D ON A.USER_ID = D.USER_ID
|
||||
LEFT JOIN LETTNGNRLMBER E ON A.USER_ID = E.MBER_ID
|
||||
|
||||
Loading…
Reference in New Issue
Block a user