Ver código fonte

소스원복-입점업체 권한일 때는 로그인~~~(기획전목록)

jmh 4 anos atrás
pai
commit
35e415d298

+ 2 - 9
src/main/java/com/style24/persistence/mybatis/shop/TssPlan.xml

@@ -1141,15 +1141,8 @@
 		<if test="openYn != null and openYn != ''">
 		AND    OPEN_YN = #{openYn}
 		</if>
-		<if test="regNo != null and regNo != ''"> <!-- 입점업체 권한일 때는 로그인 사용자의 권한값(공급벤더코드)를 갖고 있는 사용자가 등록한 데이터를 조회 -->
-		AND    REG_NO IN (SELECT USER_NO
-		                  FROM   TB_USER
-		                  WHERE  ROLE_REF_VAL = (SELECT ROLE_REF_VAL
-		                                         FROM   TB_USER
-		                                         WHERE  USER_NO = #{regNo}
-		                                        )
-		                  AND    USE_YN = 'Y'
-		                 )
+		<if test="regNo != null and regNo != ''">
+		AND    REG_NO = #{regNo} 
 		</if>
 		<if test="frontGb != null and frontGb != ''">
 		AND    FRONT_GB LIKE CONCAT('%',#{frontGb},'%')