merge master into develop - CscListRForm.jsp FAQ 아코디언 버그 수정
This commit is contained in:
@@ -0,0 +1,208 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.wb.domainserver.domain.gcone.analytics.mapper.BOAnalyticsMapper">
|
||||
|
||||
|
||||
<!-- ERP 제상품 조회 WHERE 절 -->
|
||||
<sql id="selectErpGoodsListWhere">
|
||||
<![CDATA[
|
||||
WHERE 1=1
|
||||
AND analysis_order_history_innb BETWEEN #{firstIndex} AND #{lastIndex}
|
||||
]]>
|
||||
<if test="brandCd != null and brandCd != ''">
|
||||
<![CDATA[
|
||||
AND sopmal_cd = #{brandCd}
|
||||
]]>
|
||||
</if>
|
||||
<if test="barcode != null and barcode != ''">
|
||||
<![CDATA[
|
||||
AND barcode = #{barcode}
|
||||
]]>
|
||||
</if>
|
||||
<if test="goodsName != null and goodsName != ''">
|
||||
<![CDATA[
|
||||
AND goods_nm LIKE CONCAT('%', #{goodsName}, '%')
|
||||
]]>
|
||||
</if>
|
||||
|
||||
</sql>
|
||||
|
||||
<sql id="selectErpSetGoodsListWhere">
|
||||
<![CDATA[
|
||||
WHERE 1=1
|
||||
]]>
|
||||
<if test="brandCd != null and brandCd != ''">
|
||||
<![CDATA[
|
||||
AND sopmal_cd = #{brandCd}
|
||||
]]>
|
||||
</if>
|
||||
<if test="setCode != null and setCode != ''">
|
||||
<![CDATA[
|
||||
AND set_code = #{setCode}
|
||||
]]>
|
||||
</if>
|
||||
<if test="barcode != null and barcode != ''">
|
||||
<![CDATA[
|
||||
AND barcode = #{barcode}
|
||||
]]>
|
||||
</if>
|
||||
<if test="setGoodsName != null and setGoodsName != ''">
|
||||
<![CDATA[
|
||||
AND set_goods_nm LIKE CONCAT('%', #{setGoodsName}, '%')
|
||||
]]>
|
||||
</if>
|
||||
<if test="goodsName != null and goodsName != ''">
|
||||
<![CDATA[
|
||||
AND goods_nm LIKE CONCAT('%', #{goodsName}, '%')
|
||||
]]>
|
||||
</if>
|
||||
|
||||
</sql>
|
||||
|
||||
<sql id="selectOrderHistoryListWhere">
|
||||
<![CDATA[
|
||||
WHERE 1=1
|
||||
]]>
|
||||
<if test="brandCd != null and brandCd != ''">
|
||||
<![CDATA[
|
||||
AND sopmal_cd = #{brandCd}
|
||||
]]>
|
||||
</if>
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectErpGoodsList"
|
||||
parameterType="com.wb.domainserver.domain.gcone.analytics.vo.BOAnanlyticsErpGoodsSrchVO"
|
||||
resultType="dataMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
ROW_NUMBER() OVER(ORDER BY analysis_erp_goods_innb DESC) AS rnum,
|
||||
analysis_erp_goods_innb as analysisErpGoodsInnb,
|
||||
barcode as barcode,
|
||||
sopmal_cd as sopmalCd,
|
||||
goods_nm as goodsNm,
|
||||
goods_qy as goodsQy,
|
||||
goods_ea as goodsEa,
|
||||
goods_same_code as goodsSameCode,
|
||||
goods_manager as goodsManager
|
||||
FROM
|
||||
GC_ANALYSIS_ERP_GOODS
|
||||
]]>
|
||||
<include refid = "selectErpGoodsListWhere"/>
|
||||
<![CDATA[
|
||||
ORDER BY analysis_erp_goods_innb DESC
|
||||
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<select id="selectErpGoodsListCnt"
|
||||
parameterType="com.wb.domainserver.domain.gcone.analytics.vo.BOAnanlyticsErpGoodsSrchVO">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
count(*)
|
||||
FROM
|
||||
GC_ANALYSIS_ERP_GOODS
|
||||
]]>
|
||||
<include refid = "selectErpGoodsListWhere"/>
|
||||
</select>
|
||||
|
||||
<select id="selectErpSetGoodsList"
|
||||
parameterType="com.wb.domainserver.domain.gcone.analytics.vo.BOAnanlyticsErpGoodsSrchVO"
|
||||
resultType="dataMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
ROW_NUMBER() OVER(ORDER BY analysis_erp_set_goods_innb DESC) AS rnum,
|
||||
set_code as setCode,
|
||||
barcode as barcode,
|
||||
sopmal_cd as sopmalCd,
|
||||
barcode_qy as barcodeQy,
|
||||
goods_nm as goodsNm,
|
||||
set_goods_nm as setGoodsNm,
|
||||
gift_yn as giftYn
|
||||
FROM
|
||||
GC_ANALYSIS_ERP_SET_GOODS
|
||||
]]>
|
||||
<include refid = "selectErpSetGoodsListWhere"/>
|
||||
<![CDATA[
|
||||
ORDER BY analysis_erp_set_goods_innb DESC
|
||||
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<select id="selectErpSetGoodsListCnt"
|
||||
parameterType="com.wb.domainserver.domain.gcone.analytics.vo.BOAnanlyticsErpGoodsSrchVO">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
count(*)
|
||||
FROM
|
||||
GC_ANALYSIS_ERP_SET_GOODS
|
||||
]]>
|
||||
<include refid = "selectErpSetGoodsListWhere"/>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectSopmalCd">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
SOPMAL_CD as sopmalCd ,SOPMAL_NM as sopmalNm
|
||||
FROM GC_SHOP
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<update id="updateErpGoods">
|
||||
<foreach collection="jsonData" item="item" index="index" separator=";">
|
||||
UPDATE GC_ANALYSIS_ERP_GOODS SET
|
||||
goods_ea = #{item.goodsEa},
|
||||
goods_same_code = #{item.goodsSameCode},
|
||||
goods_manager = #{item.goodsManager}
|
||||
WHERE analysis_erp_goods_innb = #{item.id}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="selectOrderHistoryList"
|
||||
parameterType="com.wb.domainserver.domain.gcone.analytics.vo.BOAnanlyticsErpGoodsSrchVO"
|
||||
resultType="dataMap">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
analysis_order_history_innb as rnum,
|
||||
SHOP_SET_CD as shopSetCd,
|
||||
barcode as barcode,
|
||||
sopmal_cd as sopmalCd,
|
||||
barcode_qy as barcodeQy,
|
||||
goods_nm as goodsNm,
|
||||
ordr_innb as ordrInnb,
|
||||
rl_setle_amt as rlSetleAmt,
|
||||
CASE WHEN ordr_sttus_cd = '25' THEN '결제확인'
|
||||
WHEN ordr_sttus_cd = '65' THEN '배송중'
|
||||
WHEN ordr_sttus_cd = '75' THEN '배송완료'
|
||||
WHEN ordr_sttus_cd = '85' THEN '취소'
|
||||
ELSE '주문상태 확인 필요' END
|
||||
as ordrSttusCd,
|
||||
goods_qy as goods_qy,
|
||||
payment_dt as paymentDt,
|
||||
sopmal_dv as sopmalDv
|
||||
FROM
|
||||
GC_ANALYSIS_ORDER_HISTORY
|
||||
]]>
|
||||
<include refid = "selectOrderHistoryListWhere"/>
|
||||
<![CDATA[
|
||||
ORDER BY analysis_order_history_innb
|
||||
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
|
||||
]]>
|
||||
</select>
|
||||
|
||||
<select id="selectOrderHistoryListCnt"
|
||||
parameterType="com.wb.domainserver.domain.gcone.analytics.vo.BOAnanlyticsErpGoodsSrchVO">
|
||||
<![CDATA[
|
||||
SELECT
|
||||
count(*)
|
||||
FROM
|
||||
GC_ANALYSIS_ORDER_HISTORY
|
||||
]]>
|
||||
<include refid = "selectOrderHistoryListWhere"/>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user