|
|
@@ -339,13 +339,14 @@
|
|
|
<if test="goodsCd != null and goodsCd != ''">
|
|
|
AND UPPER(A.GOODS_CD) LIKE CONCAT('%',UPPER(#{goodsCd}),'%')
|
|
|
</if>
|
|
|
- <if test="arrGoodsCd != null and arrGoodsCd.length>0">
|
|
|
+ <if test="conditionList != null and conditionList.length>0">
|
|
|
AND UPPER(A.GOODS_CD) IN
|
|
|
- <foreach collection="arrGoodsCd" item="item" index="index" open="(" close=")" separator=",">
|
|
|
- UPPER(#{item})
|
|
|
+ <foreach collection="conditionList" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ UPPER(#{item})
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="goodsNm != null and goodsNm != ''">
|
|
|
+
|
|
|
+ <if test="goodsNm != null and goodsNm != ''">
|
|
|
AND UPPER(A.GOODS_NM) LIKE CONCAT('%',UPPER(#{goodsNm}),'%')
|
|
|
</if>
|
|
|
<if test="brandCd != null and brandCd != ''">
|
|
|
@@ -596,26 +597,14 @@
|
|
|
<!-- 샵링커주문수집 조건 정보 -->
|
|
|
<sql id="getSlkOrderListCondition_sql">
|
|
|
|
|
|
- <if test="dtGb != null and dtGb == 'orderRegDate'">
|
|
|
- <if test="stDate != null and stDate != ''">
|
|
|
- AND A.ORDER_REG_DATE >= DATE_FORMAT(replace(#{stDate}, '-', ''), '%Y%m%d%H%i%S')
|
|
|
- </if>
|
|
|
- <if test="edDate != null and edDate != ''">
|
|
|
- <![CDATA[
|
|
|
- AND A.ORDER_REG_DATE < DATE_FORMAT(DATE_ADD(replace(#{edDate}, '-', ''), INTERVAL 1 DAY), '%Y%m%d%H%i%S')
|
|
|
- ]]>
|
|
|
- </if>
|
|
|
- </if>
|
|
|
- <if test="dtGb != null and dtGb == 'orderdate'">
|
|
|
- <if test="stDate != null and stDate != ''">
|
|
|
- AND A.ORDERDATE >= DATE_FORMAT(replace(#{stDate}, '-', ''), '%Y%m%d%H%i%S')
|
|
|
- </if>
|
|
|
- <if test="edDate != null and edDate != ''">
|
|
|
- <![CDATA[
|
|
|
- AND A.ORDERDATE < DATE_FORMAT(DATE_ADD(replace(#{edDate}, '-', ''), INTERVAL 1 DAY), '%Y%m%d%H%i%S')
|
|
|
- ]]>
|
|
|
- </if>
|
|
|
- </if>
|
|
|
+ <if test="stDate != null and stDate != ''">
|
|
|
+ AND A.ORDER_REG_DATE >= DATE_FORMAT(replace(#{stDate}, '-', ''), '%Y%m%d%H%i%S')
|
|
|
+ </if>
|
|
|
+ <if test="edDate != null and edDate != ''">
|
|
|
+ <![CDATA[
|
|
|
+ AND A.ORDER_REG_DATE < DATE_FORMAT(DATE_ADD(replace(#{edDate}, '-', ''), INTERVAL 1 DAY), '%Y%m%d%H%i%S')
|
|
|
+ ]]>
|
|
|
+ </if>
|
|
|
|
|
|
<if test="extmallId != null and extmallId != ''">
|
|
|
AND MALL_ID = #{extmallId}
|
|
|
@@ -628,14 +617,29 @@
|
|
|
AND UPLOAD_FAIL_CD = #{uploadFailCd}
|
|
|
</if>
|
|
|
|
|
|
- <if test="shoplinkerOrderId != null and shoplinkerOrderId != ''">
|
|
|
- AND SHOPLINKER_ORDER_ID = #{shoplinkerOrderId}
|
|
|
- </if>
|
|
|
- <if test="mallOrderId != null and mallOrderId != ''">
|
|
|
- AND MALL_ORDER_ID = #{mallOrderId}
|
|
|
- </if>
|
|
|
- <if test="ordNo != null and ordNo != ''">
|
|
|
- AND ORD_NO = #{ordNo}
|
|
|
+ <if test='conditionList != null and conditionList.length>0'>
|
|
|
+ <choose>
|
|
|
+ <when test='search != null and search == "shoplinkerOrderId"'>
|
|
|
+ AND UPPER(A.SHOPLINKER_ORDER_ID) IN
|
|
|
+ <foreach collection="conditionList" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ UPPER(#{item})
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+
|
|
|
+ <when test='search != null and search == "mallOrderId"'>
|
|
|
+ AND UPPER(A.MALL_ORDER_ID) IN
|
|
|
+ <foreach collection="conditionList" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ UPPER(#{item})
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+
|
|
|
+ <when test='search != null and search == "ordNo"'>
|
|
|
+ AND UPPER(A.ORD_NO) IN
|
|
|
+ <foreach collection="conditionList" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ UPPER(#{item})
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
</if>
|
|
|
</sql>
|
|
|
|
|
|
@@ -801,22 +805,33 @@
|
|
|
]]>
|
|
|
</if>
|
|
|
|
|
|
- <if test="extmallId != null and extmallId != ''">
|
|
|
- AND EXTMALL_ID = #{extmallId}
|
|
|
- </if>
|
|
|
-
|
|
|
<if test="apiResult != null and apiResult != ''">
|
|
|
AND API_RESULT = #{apiResult}
|
|
|
</if>
|
|
|
|
|
|
- <if test="agentOrderId != null and agentOrderId != ''">
|
|
|
- AND AGENT_ORDER_ID = #{agentOrderId}
|
|
|
- </if>
|
|
|
- <if test="extmallOrderId != null and extmallOrderId != ''">
|
|
|
- AND EXTMALL_ORDER_ID = #{extmallOrderId}
|
|
|
- </if>
|
|
|
- <if test="ordNo != null and ordNo != ''">
|
|
|
- AND ORD_NO = #{ordNo}
|
|
|
+ <if test='conditionList != null and conditionList.length>0'>
|
|
|
+ <choose>
|
|
|
+ <when test='search != null and search == "agentOrderId"'>
|
|
|
+ AND UPPER(A.AGENT_ORDER_ID) IN
|
|
|
+ <foreach collection="conditionList" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ UPPER(#{item})
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+
|
|
|
+ <when test='search != null and search == "extmallOrderId"'>
|
|
|
+ AND UPPER(A.EXTMALL_ORDER_ID) IN
|
|
|
+ <foreach collection="conditionList" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ UPPER(#{item})
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+
|
|
|
+ <when test='search != null and search == "ordNo"'>
|
|
|
+ AND UPPER(A.ORD_NO) IN
|
|
|
+ <foreach collection="conditionList" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ UPPER(#{item})
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
</if>
|
|
|
</sql>
|
|
|
|
|
|
@@ -867,8 +882,8 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 재고전송-목록 -->
|
|
|
- <select id="getStockListList" parameterType="ShoplinkerSearch" resultType="ShoplinkerGoods">
|
|
|
- /* TscShoplinkerDao.getStockListList */
|
|
|
+ <select id="getStockList" parameterType="ShoplinkerSearch" resultType="ShoplinkerGoods">
|
|
|
+ /* TscShoplinkerDao.getStockList */
|
|
|
SELECT * FROM
|
|
|
(
|
|
|
SELECT
|