|
|
@ -320,7 +320,7 @@
|
|
|
|
, C.OPNN_ID /* 의견 ID */
|
|
|
|
, C.OPNN_ID /* 의견 ID */
|
|
|
|
, (SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(RCPT_NO, 5)) + 1, 1) AS INT), 6, '0'))
|
|
|
|
, (SELECT CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(RCPT_NO, 5)) + 1, 1) AS INT), 6, '0'))
|
|
|
|
FROM TB_OPNN_SBMSN
|
|
|
|
FROM TB_OPNN_SBMSN
|
|
|
|
WHERE RCPT_NO LIKE CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), '%') ) AS RCPT_NO /* 접수 번호 */
|
|
|
|
WHERE RCPT_NO LIKE CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), '%') ) AS NEW_RCPT_NO /* 접수 번호 */
|
|
|
|
, <include refid="utility.today" /> AS TODAY /* 오늘 일자 */
|
|
|
|
, <include refid="utility.today" /> AS TODAY /* 오늘 일자 */
|
|
|
|
FROM TB_CRDN A
|
|
|
|
FROM TB_CRDN A
|
|
|
|
LEFT OUTER JOIN TB_PAYER B ON (A.RTPYR_ID = B.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER B ON (A.RTPYR_ID = B.RTPYR_ID)
|
|
|
|