T01 권한에 따른 물건 목록 API 수정

This commit is contained in:
LAPTOP-L3VE7KK2\USER 2024-10-30 13:29:04 +09:00
parent 22ad760cbf
commit fff3cfa50f

View File

@ -115,6 +115,8 @@
<select id="selectObjectList" parameterType="com.interplug.qcast.biz.object.dto.ObjectRequest" resultType="com.interplug.qcast.biz.object.dto.ObjectResponse">
/* sqlid : com.interplug.qcast.biz.object.selectObjectList */
<if test='saleStoreId != null and saleStoreId != "T01"'>
/* 계층형 구조에 맞는 SALE_STORE_ID 축출 - 재귀함수 */
WITH SALES_STORE_CTE AS (
SELECT
@ -137,6 +139,7 @@
WHERE A.APPROVE_FLG = '2'
AND A.DEL_FLG = '0'
)
</if>
SELECT
TT.*
@ -181,8 +184,10 @@
FROM T_OBJECT O WITH (NOLOCK)
INNER JOIN M_SALES_STORE S WITH (NOLOCK)
ON O.SALE_STORE_ID = S.SALE_STORE_ID
<if test='saleStoreId != null and saleStoreId != "T01"'>
INNER JOIN SALES_STORE_CTE T
ON S.SALE_STORE_ID = T.SALE_STORE_ID
</if>
WHERE (O.DEL_FLG = '0' OR (O.TEMP_FLG = '1' AND O.TEMP_DEL_FLG = '0'))
<if test='schObjectNo != null and schObjectNo != ""'>
AND O.OBJECT_NO LIKE '%' + #{schObjectNo} + '%'