|
@@ -87,6 +87,7 @@
|
87
|
ON store.store_id = stl.store_id
|
87
|
ON store.store_id = stl.store_id
|
88
|
AND store.brand_id = stl.brand_id
|
88
|
AND store.brand_id = stl.brand_id
|
89
|
AND stl.sttl_req_dt BETWEEN #{fromDt} AND #{toDt}
|
89
|
AND stl.sttl_req_dt BETWEEN #{fromDt} AND #{toDt}
|
|
|
90
|
+ AND stl.sttl_st_cd IN ('ST10', 'ST20') /* 정산요청/정산확정 */
|
90
|
AND IFNULL(stl.rcpt_yn, 'N') = 'N'
|
91
|
AND IFNULL(stl.rcpt_yn, 'N') = 'N'
|
91
|
WHERE 1 = 1
|
92
|
WHERE 1 = 1
|
92
|
AND store.brand_id = #{sBrandId}
|
93
|
AND store.brand_id = #{sBrandId}
|