|
|
@@ -195,28 +195,28 @@
|
|
|
<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}),'%')
|
|
|
+ UPPER(G.GOODS_CD) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
)
|
|
|
</when>
|
|
|
<when test='search != null and search == "searchGoodsNm"'>
|
|
|
AND (
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(G.GOODS_NM) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ UPPER(G.GOODS_NM) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
)
|
|
|
</when>
|
|
|
<when test='search != null and search == "searchGoodsNum"'>
|
|
|
AND (
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(G.GOODS_NUM) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ UPPER(G.GOODS_NUM) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
)
|
|
|
</when>
|
|
|
<when test='search != null and search == "searchSupplyGoodsCd"'>
|
|
|
AND (
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(G.SUPPLY_GOODS_CD) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ UPPER(G.SUPPLY_GOODS_CD) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
)
|
|
|
</when>
|
|
|
@@ -227,15 +227,15 @@
|
|
|
AND 1 = 1
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
- AND UPPER(G.REG_ID) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ AND UPPER(G.REG_ID) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
</if>
|
|
|
<if test="goodsCd != null and goodsCd != ''">
|
|
|
- AND UPPER(G.GOODS_CD) LIKE CONCAT('%',UPPER(#{goodsCd}),'%')
|
|
|
+ AND UPPER(G.GOODS_CD) LIKE CONCAT(UPPER(#{goodsCd}),'%')
|
|
|
</if>
|
|
|
<if test="goodsNm != null and goodsNm != ''">
|
|
|
- AND UPPER(G.GOODS_NM) LIKE CONCAT('%',UPPER(#{goodsNm}),'%')
|
|
|
+ AND UPPER(G.GOODS_NM) LIKE CONCAT(UPPER(#{goodsNm}),'%')
|
|
|
</if>
|
|
|
<if test="goodsType != null and goodsType != ''">
|
|
|
AND G.GOODS_TYPE = #{goodsType}
|
|
|
@@ -1533,7 +1533,7 @@
|
|
|
INNER JOIN TB_SUPPLY_COMPANY S ON G.SUPPLY_COMP_CD = S.SUPPLY_COMP_CD
|
|
|
WHERE 1 = 1
|
|
|
<if test="goodsCd != null and goodsCd != ''">
|
|
|
- AND UPPER(G.GOODS_CD) = LIKE UPPER('%' || #{goodsCd} || '%')
|
|
|
+ AND UPPER(G.GOODS_CD) = CONCAT(UPPER(#{goodsCd}),'%')
|
|
|
</if>
|
|
|
<if test="supplyCompCd != null and supplyCompCd != ''">
|
|
|
AND G.SUPPLY_COMP_CD = #{supplyCompCd}
|
|
|
@@ -1630,7 +1630,7 @@
|
|
|
INNER JOIN TB_SUPPLY_COMPANY S ON G.SUPPLY_COMP_CD = S.SUPPLY_COMP_CD
|
|
|
WHERE 1 = 1
|
|
|
<if test="goodsCd != null and goodsCd != ''">
|
|
|
- AND UPPER(G.GOODS_CD) = LIKE UPPER('%' || #{goodsCd} || '%')
|
|
|
+ AND UPPER(G.GOODS_CD) = UPPER(#{goodsCd})
|
|
|
</if>
|
|
|
<if test="supplyCompCd != null and supplyCompCd != ''">
|
|
|
AND G.SUPPLY_COMP_CD = #{supplyCompCd}
|
|
|
@@ -1701,7 +1701,7 @@
|
|
|
AND A.USE_YN = #{useYn}
|
|
|
</if>
|
|
|
<if test="noticeTitle != null and noticeTitle !=''">
|
|
|
- AND LOWER(A.NOTICE_TITLE) LIKE CONCAT('%',LOWER(#{noticeTitle}),'%')
|
|
|
+ AND LOWER(A.NOTICE_TITLE) LIKE CONCAT(LOWER(#{noticeTitle}),'%')
|
|
|
</if>
|
|
|
<if test='conditionList != null and conditionList.length>0'>
|
|
|
AND A.NOTICE_SQ IN (
|
|
|
@@ -1715,22 +1715,22 @@
|
|
|
<choose>
|
|
|
<when test='search != null and search == "searchGoodsCd"'>
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(G.GOODS_CD) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ UPPER(G.GOODS_CD) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
</when>
|
|
|
<when test='search != null and search == "searchGoodsNm"'>
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(G.GOODS_NM) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ UPPER(G.GOODS_NM) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
</when>
|
|
|
<when test='search != null and search == "searchGoodsNum"'>
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(G.GOODS_NUM) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ UPPER(G.GOODS_NUM) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
</when>
|
|
|
<when test='search != null and search == "searchSupplyGoodsCd"'>
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(G.SUPPLY_GOODS_CD) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ UPPER(G.SUPPLY_GOODS_CD) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
</when>
|
|
|
</choose>
|
|
|
@@ -2427,11 +2427,11 @@
|
|
|
-- LEFT OUTER JOIN TB_GOODS B ON A.GOODS_CD = B.GOODS_CD
|
|
|
WHERE 1 = 1
|
|
|
<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
|
|
|
- UPPER(A.GOODS_CD) LIKE CONCAT('%',UPPER(#{condition}),'%')
|
|
|
+ UPPER(A.GOODS_CD) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
OR
|
|
|
- UPPER(A.SUPPLY_GOODS_CD) LIKE CONCAT('%',UPPER(#{condition}),'%')
|
|
|
+ UPPER(A.SUPPLY_GOODS_CD) LIKE CONCAT(UPPER(#{condition}),'%')
|
|
|
)
|
|
|
</if>
|
|
|
<if test='regSuccYn != null and regSuccYn != "" '>
|
|
|
@@ -2653,7 +2653,7 @@
|
|
|
<when test='search != null and search == "searchGoodsNm"'>
|
|
|
AND (
|
|
|
<foreach collection="conditionList" item="item" index="index" separator="or">
|
|
|
- UPPER(G.GOODS_NM) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ UPPER(G.GOODS_NM) LIKE CONCAT(UPPER(#{item}),'%')
|
|
|
</foreach>
|
|
|
)
|
|
|
</when>
|