Просмотр исходного кода

상품쿼리 upper 관련 수정

eskim 4 лет назад
Родитель
Сommit
5a54138557

+ 1 - 1
src/main/java/com/style24/persistence/mybatis/shop/TssGoods.xml

@@ -199,7 +199,7 @@
 		        AND 1 = 1
 		              </when>
 		              <otherwise>
-		        AND UPPER(G.REG_NO) LIKE CONCAT(UPPER(#{item}),'%')
+		        AND 1 = 1
 		              </otherwise>
 		            </choose>
 		        </if>

+ 3 - 3
src/main/java/com/style24/persistence/mybatis/shop/TssStock.xml

@@ -9,7 +9,7 @@
 		              <when test='search != null and search == "searchGoodsCd"'>
 		        AND (
 		              <foreach collection="conditionList" item="item" index="index" separator="or">
-		               UPPER(G.GOODS_CD) LIKE CONCAT(UPPER(#{item}),'%') 
+		               G.GOODS_CD LIKE CONCAT(UPPER(#{item}),'%') 
 		              </foreach>
 		             )
 		              </when>
@@ -41,12 +41,12 @@
 		        AND 1 = 1
 		              </when>
 		              <otherwise>
-		        AND UPPER(G.REG_ID) LIKE CONCAT(UPPER(#{item}),'%')
+		        AND 1 = 1
 		              </otherwise>
 		            </choose>
 		        </if>
 		        <if test="goodsCd != null and goodsCd != ''">
-		        AND UPPER(G.GOODS_CD) LIKE CONCAT(UPPER(#{goodsCd}),'%')
+		        AND G.GOODS_CD LIKE CONCAT(UPPER(#{goodsCd}),'%')
 		        </if>
 		         <if test="goodsNm != null and goodsNm != ''">
 		        AND UPPER(G.GOODS_NM) LIKE CONCAT(UPPER(#{goodsNm}),'%')