문자 재전송 쿼리 성능개선
@479353e3a3f878887c5babda1f0a31edd48c1b83
--- src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
... | ... | @@ -267,6 +267,7 @@ |
| 267 | 267 |
, orderByCode AS orderByCode |
| 268 | 268 |
, RESULT AS msgResult |
| 269 | 269 |
, sendKind AS sendKind |
| 270 |
+ , MSG_KIND AS msgKind |
|
| 270 | 271 |
FROM |
| 271 | 272 |
( SELECT |
| 272 | 273 |
B.USER_ID |
... | ... | @@ -291,6 +292,7 @@ |
| 291 | 292 |
, A.RSLT_CODE |
| 292 | 293 |
, A.RSLT_CODE2 |
| 293 | 294 |
, B.SEND_KIND as sendKind |
| 295 |
+ , B.MSG_KIND |
|
| 294 | 296 |
, CASE |
| 295 | 297 |
WHEN B.MSG_TYPE = '6' |
| 296 | 298 |
AND B.FILE_CNT > 0 |
... | ... | @@ -413,10 +415,10 @@ |
| 413 | 415 |
</isNotEmpty> |
| 414 | 416 |
<isNotEmpty property="msgSentType"> |
| 415 | 417 |
<isEqual property="msgSentType" compareValue="01" > |
| 416 |
- AND SUBSTR(SMS_TXT, 1, 8) != '(선거운동정보)' |
|
| 418 |
+ AND MSG_KIND != 'C' |
|
| 417 | 419 |
</isEqual> |
| 418 | 420 |
<isEqual property="msgSentType" compareValue="02" > |
| 419 |
- AND SUBSTR(SMS_TXT, 1, 8) = '(선거운동정보)' |
|
| 421 |
+ AND MSG_KIND = 'C' |
|
| 420 | 422 |
</isEqual> |
| 421 | 423 |
</isNotEmpty> |
| 422 | 424 |
GROUP BY MSG_GROUP_ID |
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?