T01 권한에 따른 물건 목록 API 수정
This commit is contained in:
parent
22ad760cbf
commit
fff3cfa50f
@ -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} + '%'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user