|
@@ -510,7 +510,7 @@
|
|
|
<when test='search != null and search == "searchGoodsCd"'>
|
|
<when test='search != null and search == "searchGoodsCd"'>
|
|
|
AND (
|
|
AND (
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
<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>
|
|
</foreach>
|
|
|
)
|
|
)
|
|
|
</when>
|
|
</when>
|
|
@@ -547,10 +547,10 @@
|
|
|
</choose>
|
|
</choose>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="goodsCd != null and goodsCd != ''">
|
|
<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>
|
|
|
<if test="arrGoodsCd != null and arrGoodsCd.length>0">
|
|
<if test="arrGoodsCd != null and arrGoodsCd.length>0">
|
|
|
- AND UPPER(G.GOODS_CD) IN
|
|
|
|
|
|
|
+ AND G.GOODS_CD IN
|
|
|
<foreach collection="arrGoodsCd" item="item" index="index" open="(" close=")" separator=",">
|
|
<foreach collection="arrGoodsCd" item="item" index="index" open="(" close=")" separator=",">
|
|
|
UPPER(#{item})
|
|
UPPER(#{item})
|
|
|
</foreach>
|
|
</foreach>
|
|
@@ -2561,7 +2561,7 @@
|
|
|
<choose>
|
|
<choose>
|
|
|
<when test='search != null and search == "searchGoodsCd"'>
|
|
<when test='search != null and search == "searchGoodsCd"'>
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
<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>
|
|
</foreach>
|
|
|
</when>
|
|
</when>
|
|
|
<when test='search != null and search == "searchGoodsNm"'>
|
|
<when test='search != null and search == "searchGoodsNm"'>
|
|
@@ -3037,7 +3037,7 @@
|
|
|
INNER JOIN TB_SUPPLY_COMPANY S ON G.SUPPLY_COMP_CD = S.SUPPLY_COMP_CD
|
|
INNER JOIN TB_SUPPLY_COMPANY S ON G.SUPPLY_COMP_CD = S.SUPPLY_COMP_CD
|
|
|
WHERE 1 = 1
|
|
WHERE 1 = 1
|
|
|
<if test="goodsCd != null and goodsCd != ''">
|
|
<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>
|
|
|
<if test="supplyCompCd != null and supplyCompCd != ''">
|
|
<if test="supplyCompCd != null and supplyCompCd != ''">
|
|
|
AND G.SUPPLY_COMP_CD = #{supplyCompCd}
|
|
AND G.SUPPLY_COMP_CD = #{supplyCompCd}
|
|
@@ -3498,7 +3498,7 @@
|
|
|
AND UPPER(G.GOODS_NM) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
AND UPPER(G.GOODS_NM) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
</when>
|
|
</when>
|
|
|
<when test='search != null and search == "searchGoodsCd"'>
|
|
<when test='search != null and search == "searchGoodsCd"'>
|
|
|
- AND UPPER(G.GOODS_CD) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
|
|
|
|
+ AND G.GOODS_CD LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
</when>
|
|
</when>
|
|
|
</choose>
|
|
</choose>
|
|
|
</if>
|
|
</if>
|
|
@@ -3587,7 +3587,7 @@
|
|
|
AND UPPER(G.GOODS_NM) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
AND UPPER(G.GOODS_NM) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
</when>
|
|
</when>
|
|
|
<when test='search != null and search == "searchGoodsCd"'>
|
|
<when test='search != null and search == "searchGoodsCd"'>
|
|
|
- AND UPPER(G.GOODS_CD) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
|
|
|
|
+ AND G.GOODS_CD LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
</when>
|
|
</when>
|
|
|
</choose>
|
|
</choose>
|
|
|
</if>
|
|
</if>
|
|
@@ -3711,7 +3711,7 @@
|
|
|
<when test='search != null and search == "searchProductNo"'>
|
|
<when test='search != null and search == "searchProductNo"'>
|
|
|
AND (
|
|
AND (
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(G.PRODUCT_NO) = UPPER(#{item})
|
|
|
|
|
|
|
+ G.PRODUCT_NO = #{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
)
|
|
)
|
|
|
</when>
|
|
</when>
|
|
@@ -3783,10 +3783,10 @@
|
|
|
]]>
|
|
]]>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="supplyCompCd != null and supplyCompCd != ''">
|
|
<if test="supplyCompCd != null and supplyCompCd != ''">
|
|
|
- AND UPPER(S.SUPPLY_COMP_CD) = UPPER(#{supplyCompCd})
|
|
|
|
|
|
|
+ AND S.SUPPLY_COMP_CD = #{supplyCompCd}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="brandCd != null and brandCd != ''">
|
|
<if test="brandCd != null and brandCd != ''">
|
|
|
- AND UPPER(B.BRAND_CD) = UPPER(#{brandCd})
|
|
|
|
|
|
|
+ AND B.BRAND_CD = #{brandCd}
|
|
|
</if>
|
|
</if>
|
|
|
ORDER BY A.UPD_DT DESC
|
|
ORDER BY A.UPD_DT DESC
|
|
|
</select>
|
|
</select>
|
|
@@ -3835,10 +3835,10 @@
|
|
|
]]>
|
|
]]>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="supplyCompCd != null and supplyCompCd != ''">
|
|
<if test="supplyCompCd != null and supplyCompCd != ''">
|
|
|
- AND UPPER(S.SUPPLY_COMP_CD) = UPPER(#{supplyCompCd})
|
|
|
|
|
|
|
+ AND S.SUPPLY_COMP_CD = #{supplyCompCd}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="brandCd != null and brandCd != ''">
|
|
<if test="brandCd != null and brandCd != ''">
|
|
|
- AND UPPER(B.BRAND_CD) = UPPER(#{brandCd})
|
|
|
|
|
|
|
+ AND B.BRAND_CD = #{brandCd}
|
|
|
</if>
|
|
</if>
|
|
|
ORDER BY A.UPD_DT DESC
|
|
ORDER BY A.UPD_DT DESC
|
|
|
<include refid="getListPagingCondition_sql"/>
|
|
<include refid="getListPagingCondition_sql"/>
|
|
@@ -3913,7 +3913,7 @@
|
|
|
<if test="goodsCds != null and goodsCds != ''">
|
|
<if test="goodsCds != null and goodsCds != ''">
|
|
|
AND (
|
|
AND (
|
|
|
<foreach collection="goodsCds" item="item" index="index" separator="or">
|
|
<foreach collection="goodsCds" item="item" index="index" separator="or">
|
|
|
- UPPER(GOODS_CD) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
|
|
|
|
+ GOODS_CD LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
</foreach>
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
@@ -4396,7 +4396,7 @@
|
|
|
<if test='condition != null and condition != "" '>
|
|
<if test='condition != null and condition != "" '>
|
|
|
AND (UPPER(A.GOODS_NUM) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
AND (UPPER(A.GOODS_NUM) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
OR
|
|
OR
|
|
|
- UPPER(A.GOODS_CD) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
|
|
|
|
+ A.GOODS_CD LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
OR
|
|
OR
|
|
|
UPPER(A.SUPPLY_GOODS_CD) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
UPPER(A.SUPPLY_GOODS_CD) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
)
|
|
)
|