merge master into develop - CscListRForm.jsp FAQ 아코디언 버그 수정
This commit is contained in:
@@ -0,0 +1,298 @@
|
||||
<?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.goods.goodsinfo.mapper.BOGoodsinfoMapper">
|
||||
|
||||
<!-- 상품 정보 목록 조회 -->
|
||||
<select id="selectBOGoodsInfoList"
|
||||
parameterType = "com.wb.domainserver.domain.gcone.goods.goodsinfo.vo.BOGoodsInfoVO"
|
||||
resultType = "com.wb.domainserver.util.dataaccess.DataMap">
|
||||
SELECT *
|
||||
FROM (
|
||||
SELECT
|
||||
CAST(@ROWNUM:=@ROWNUM+1 AS UNSIGNED) AS RNUM, BM.*
|
||||
FROM (
|
||||
SELECT
|
||||
GOODS_EXPSR_INFO_INNB,
|
||||
GOODS_INFO_SETUP_SJ,
|
||||
GOODS_NM_EXPSR_AT,
|
||||
GOODS_NM_EXPSR_ORDR,
|
||||
REPRSNT_DC_EXPSR_AT,
|
||||
REPRSNT_DC_EXPSR_ORDR,
|
||||
PRIC_EXPSR_AT,
|
||||
PRIC_EXPSR_ORDR,
|
||||
DLVY_EXPSR_AT,
|
||||
DLVY_EXPSR_ORDR,
|
||||
RVW_EVL_SCRE_EXPSR_AT,
|
||||
RVW_EVL_SCRE_EXPSR_ORDR,
|
||||
ICON_EXPSR_AT,
|
||||
ICON_EXPSR_ORDR,
|
||||
REGUSR,
|
||||
REGIST_DT,
|
||||
UPDUSR,
|
||||
UPDT_DT
|
||||
FROM
|
||||
GC_GOODS_EXPSR_INFO
|
||||
WHERE
|
||||
USE_AT = 'Y'
|
||||
) BM
|
||||
WHERE
|
||||
(@ROWNUM:=0)=0
|
||||
ORDER BY RNUM DESC
|
||||
) PV
|
||||
WHERE 1=1
|
||||
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
|
||||
</select>
|
||||
<select id="selectBOGoodsInfoListCnt"
|
||||
parameterType="com.wb.domainserver.domain.gcone.goods.goodsinfo.vo.BOGoodsInfoVO" resultType="Integer">
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
GC_GOODS_EXPSR_INFO
|
||||
WHERE
|
||||
USE_AT = 'Y'
|
||||
</select>
|
||||
<select id="selectBOGoodsInfoDtl"
|
||||
parameterType = "com.wb.domainserver.domain.gcone.goods.goodsinfo.vo.BOGoodsInfoVO"
|
||||
resultType = "com.wb.domainserver.util.dataaccess.DataMap">
|
||||
SELECT
|
||||
GOODS_EXPSR_INFO_INNB,
|
||||
GOODS_INFO_SETUP_SJ,
|
||||
GOODS_NM_EXPSR_AT,
|
||||
GOODS_NM_EXPSR_ORDR,
|
||||
REPRSNT_DC_EXPSR_AT,
|
||||
REPRSNT_DC_EXPSR_ORDR,
|
||||
PRIC_EXPSR_AT,
|
||||
PRIC_EXPSR_ORDR,
|
||||
DLVY_EXPSR_AT,
|
||||
DLVY_EXPSR_ORDR,
|
||||
RVW_EVL_SCRE_EXPSR_AT,
|
||||
RVW_EVL_SCRE_EXPSR_ORDR,
|
||||
ICON_EXPSR_AT,
|
||||
ICON_EXPSR_ORDR,
|
||||
REGUSR,
|
||||
REGIST_DT,
|
||||
UPDUSR,
|
||||
UPDT_DT
|
||||
FROM
|
||||
GC_GOODS_EXPSR_INFO
|
||||
WHERE
|
||||
1=1
|
||||
AND
|
||||
SOPMAL_CD = #{sopmalCd}
|
||||
</select>
|
||||
<!-- 상품 정보 등록 -->
|
||||
<insert id="insertBOGoodsInfo"
|
||||
parameterType = "com.wb.domainserver.domain.gcone.goods.goodsinfo.vo.BOGoodsInfoVO" >
|
||||
<selectKey keyProperty = "goodsExpsrInfoInnb" resultType = "String" order="BEFORE">
|
||||
SELECT IFNULL(MAX(GOODS_EXPSR_INFO_INNB),0) + 1
|
||||
FROM GC_GOODS_EXPSR_INFO
|
||||
</selectKey>
|
||||
INSERT
|
||||
INTO
|
||||
GC_GOODS_EXPSR_INFO (
|
||||
GOODS_EXPSR_INFO_INNB,
|
||||
SOPMAL_CD,
|
||||
GOODS_INFO_SETUP_SJ,
|
||||
<if test="goodsNmExpsrAt != null and goodsNmExpsrAt != ''">
|
||||
GOODS_NM_EXPSR_AT,
|
||||
</if>
|
||||
<if test="goodsNmExpsrOrdr != null and goodsNmExpsrOrdr != ''">
|
||||
GOODS_NM_EXPSR_ORDR,
|
||||
</if>
|
||||
<if test="reprsntDcExpsrAt != null and reprsntDcExpsrAt != ''">
|
||||
REPRSNT_DC_EXPSR_AT,
|
||||
</if>
|
||||
<if test="reprsntDcExpsrOrdr != null and reprsntDcExpsrOrdr != ''">
|
||||
REPRSNT_DC_EXPSR_ORDR,
|
||||
</if>
|
||||
<if test="pricExpsrAt != null and pricExpsrAt != ''">
|
||||
PRIC_EXPSR_AT,
|
||||
</if>
|
||||
<if test="pricExpsrOrdr != null and pricExpsrOrdr != ''">
|
||||
PRIC_EXPSR_ORDR,
|
||||
</if>
|
||||
<if test="dlvyExpsrAt != null and dlvyExpsrAt != ''">
|
||||
DLVY_EXPSR_AT,
|
||||
</if>
|
||||
<if test="dlvyExpsrOrdr != null and dlvyExpsrOrdr != ''">
|
||||
DLVY_EXPSR_ORDR,
|
||||
</if>
|
||||
<if test="rvwEvlScreExpsrAt != null and rvwEvlScreExpsrAt != ''">
|
||||
RVW_EVL_SCRE_EXPSR_AT,
|
||||
</if>
|
||||
<if test="rvwEvlScreExpsrOrdr != null and rvwEvlScreExpsrOrdr != ''">
|
||||
RVW_EVL_SCRE_EXPSR_ORDR,
|
||||
</if>
|
||||
<if test="iconExpsrAt != null and iconExpsrAt != ''">
|
||||
ICON_EXPSR_AT,
|
||||
</if>
|
||||
<if test="iconExpsrOrdr != null and iconExpsrOrdr != ''">
|
||||
ICON_EXPSR_ORDR,
|
||||
</if>
|
||||
USE_AT,
|
||||
REGUSR,
|
||||
REGIST_DT,
|
||||
UPDUSR,
|
||||
UPDT_DT
|
||||
)
|
||||
VALUES (
|
||||
#{goodsExpsrInfoInnb},
|
||||
#{sopmalCd},
|
||||
#{goodsInfoSetupSj},
|
||||
<if test="goodsNmExpsrAt != null and goodsNmExpsrAt != ''">
|
||||
#{goodsNmExpsrAt},
|
||||
</if>
|
||||
<if test="goodsNmExpsrOrdr != null and goodsNmExpsrOrdr != ''">
|
||||
#{goodsNmExpsrOrdr},
|
||||
</if>
|
||||
<if test="reprsntDcExpsrAt != null and reprsntDcExpsrAt != ''">
|
||||
#{reprsntDcExpsrAt},
|
||||
</if>
|
||||
<if test="reprsntDcExpsrOrdr != null and reprsntDcExpsrOrdr != ''">
|
||||
#{reprsntDcExpsrOrdr},
|
||||
</if>
|
||||
<if test="pricExpsrAt != null and pricExpsrAt != ''">
|
||||
#{pricExpsrAt},
|
||||
</if>
|
||||
<if test="pricExpsrOrdr != null and pricExpsrOrdr != ''">
|
||||
#{pricExpsrOrdr},
|
||||
</if>
|
||||
<if test="dlvyExpsrAt != null and dlvyExpsrAt != ''">
|
||||
#{dlvyExpsrAt},
|
||||
</if>
|
||||
<if test="dlvyExpsrOrdr != null and dlvyExpsrOrdr != ''">
|
||||
#{dlvyExpsrOrdr},
|
||||
</if>
|
||||
<if test="rvwEvlScreExpsrAt != null and rvwEvlScreExpsrAt != ''">
|
||||
#{rvwEvlScreExpsrAt},
|
||||
</if>
|
||||
<if test="rvwEvlScreExpsrOrdr != null and rvwEvlScreExpsrOrdr != ''">
|
||||
#{rvwEvlScreExpsrOrdr},
|
||||
</if>
|
||||
<if test="iconExpsrAt != null and iconExpsrAt != ''">
|
||||
#{iconExpsrAt},
|
||||
</if>
|
||||
<if test="iconExpsrOrdr != null and iconExpsrOrdr != ''">
|
||||
#{iconExpsrOrdr},
|
||||
</if>
|
||||
#{useAt},
|
||||
#{regusr},
|
||||
now(),
|
||||
#{regusr},
|
||||
now()
|
||||
)
|
||||
</insert>
|
||||
<!-- 상품 정보 수정 -->
|
||||
<update id="updateBOGoodsInfoDtl"
|
||||
parameterType = "com.wb.domainserver.domain.gcone.bbs.bbs.vo.BOBbsVO">
|
||||
UPDATE
|
||||
GC_GOODS_EXPSR_INFO
|
||||
SET
|
||||
GOODS_INFO_SETUP_SJ = #{goodsInfoSetupSj},
|
||||
<if test="goodsNmExpsrAt != null and goodsNmExpsrAt != ''">
|
||||
GOODS_NM_EXPSR_AT = #{goodsNmExpsrAt},
|
||||
</if>
|
||||
<if test="goodsNmExpsrOrdr != null and goodsNmExpsrOrdr != ''">
|
||||
GOODS_NM_EXPSR_ORDR = #{goodsNmExpsrOrdr},
|
||||
</if>
|
||||
<if test="reprsntDcExpsrAt != null and reprsntDcExpsrAt != ''">
|
||||
REPRSNT_DC_EXPSR_AT = #{reprsntDcExpsrAt},
|
||||
</if>
|
||||
<if test="reprsntDcExpsrOrdr != null and reprsntDcExpsrOrdr != ''">
|
||||
REPRSNT_DC_EXPSR_ORDR = #{reprsntDcExpsrOrdr},
|
||||
</if>
|
||||
<if test="pricExpsrAt != null and pricExpsrAt != ''">
|
||||
PRIC_EXPSR_AT = #{pricExpsrAt},
|
||||
</if>
|
||||
<if test="pricExpsrOrdr != null and pricExpsrOrdr != ''">
|
||||
PRIC_EXPSR_ORDR = #{pricExpsrOrdr},
|
||||
</if>
|
||||
<if test="dlvyExpsrAt != null and dlvyExpsrAt != ''">
|
||||
DLVY_EXPSR_AT = #{dlvyExpsrAt},
|
||||
</if>
|
||||
<if test="dlvyExpsrOrdr != null and dlvyExpsrOrdr != ''">
|
||||
DLVY_EXPSR_ORDR = #{dlvyExpsrOrdr},
|
||||
</if>
|
||||
<if test="rvwEvlScreExpsrAt != null and rvwEvlScreExpsrAt != ''">
|
||||
RVW_EVL_SCRE_EXPSR_AT = #{rvwEvlScreExpsrAt},
|
||||
</if>
|
||||
<if test="rvwEvlScreExpsrOrdr != null and rvwEvlScreExpsrOrdr != ''">
|
||||
RVW_EVL_SCRE_EXPSR_ORDR = #{rvwEvlScreExpsrOrdr},
|
||||
</if>
|
||||
<if test="iconExpsrAt != null and iconExpsrAt != ''">
|
||||
ICON_EXPSR_AT = #{iconExpsrAt},
|
||||
</if>
|
||||
<if test="iconExpsrOrdr != null and iconExpsrOrdr != ''">
|
||||
ICON_EXPSR_ORDR = #{iconExpsrOrdr},
|
||||
</if>
|
||||
UPDUSR = #{updusr},
|
||||
UPDT_DT = now()
|
||||
WHERE
|
||||
1=1
|
||||
AND
|
||||
GOODS_EXPSR_INFO_INNB = #{goodsExpsrInfoInnb}
|
||||
</update>
|
||||
<!-- 상품정보 삭제 -->
|
||||
<update id="updateBOGoodsInfoDel"
|
||||
parameterType = "com.wb.domainserver.domain.gcone.goods.goodsinfo.vo.BOGoodsInfoVO">
|
||||
UPDATE
|
||||
GC_GOODS_EXPSR_INFO
|
||||
SET
|
||||
USE_AT = 'N'
|
||||
WHERE
|
||||
1=1
|
||||
AND
|
||||
GOODS_EXPSR_INFO_INNB = #{goodsExpsrInfoInnb}
|
||||
|
||||
|
||||
</update>
|
||||
<!-- 상품정보 삭제 -->
|
||||
<!-- <delete id="deleteBOGoodsInfo"
|
||||
parameterType = "com.wb.domainserver.domain.gcone.goods.goodsinfo.vo.BOGoodsInfoVO">
|
||||
DELETE FROM
|
||||
GC_GOODS_EXPSR_INFO
|
||||
WHERE
|
||||
1=1
|
||||
AND
|
||||
GOODS_EXPSR_INFO_INNB = #{goodsExpsrInfoInnb}
|
||||
|
||||
|
||||
</delete> -->
|
||||
|
||||
<select id="selectBOGoodsInfoListNotLimit" resultType = "DataMap">
|
||||
SELECT *
|
||||
FROM (
|
||||
SELECT
|
||||
CAST(@ROWNUM:=@ROWNUM+1 AS UNSIGNED) AS RNUM, BM.*
|
||||
FROM (
|
||||
SELECT
|
||||
GOODS_EXPSR_INFO_INNB,
|
||||
GOODS_INFO_SETUP_SJ,
|
||||
GOODS_NM_EXPSR_AT,
|
||||
GOODS_NM_EXPSR_ORDR,
|
||||
REPRSNT_DC_EXPSR_AT,
|
||||
REPRSNT_DC_EXPSR_ORDR,
|
||||
PRIC_EXPSR_AT,
|
||||
PRIC_EXPSR_ORDR,
|
||||
DLVY_EXPSR_AT,
|
||||
DLVY_EXPSR_ORDR,
|
||||
RVW_EVL_SCRE_EXPSR_AT,
|
||||
RVW_EVL_SCRE_EXPSR_ORDR,
|
||||
ICON_EXPSR_AT,
|
||||
ICON_EXPSR_ORDR,
|
||||
REGUSR,
|
||||
REGIST_DT,
|
||||
UPDUSR,
|
||||
UPDT_DT
|
||||
FROM
|
||||
GC_GOODS_EXPSR_INFO
|
||||
WHERE
|
||||
USE_AT = 'Y'
|
||||
) BM
|
||||
WHERE
|
||||
(@ROWNUM:=0)=0
|
||||
ORDER BY RNUM DESC
|
||||
) PV
|
||||
WHERE 1=1
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user