merge master into develop - CscListRForm.jsp FAQ 아코디언 버그 수정
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
<?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.bbs.prom.mapper.BOPromMapper">
|
||||
|
||||
<select id="selectPromInfo" parameterType="com.wb.domainserver.domain.gcone.bbs.prom.vo.BOPromVO" resultType="com.wb.domainserver.util.dataaccess.DataMap">
|
||||
SELECT *
|
||||
FROM GC_PROM
|
||||
WHERE PROM_INNB = #{promInnb}
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<select id="selectPromJoinInfo" parameterType="com.wb.domainserver.domain.gcone.bbs.prom.vo.BOPromVO" resultType="com.wb.domainserver.util.dataaccess.DataMap">
|
||||
SELECT *
|
||||
FROM GC_PROM_JOIN
|
||||
WHERE MBR_INNB = #{mbrInnb}
|
||||
AND PROM_INNB = #{promInnb}
|
||||
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(joinDt)">
|
||||
AND JOIN_DT = #{joinDt}
|
||||
</if>
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<select id="countPromJoin" parameterType="com.wb.domainserver.domain.gcone.bbs.prom.vo.BOPromVO" resultType="int">
|
||||
SELECT COUNT(*)
|
||||
FROM GC_PROM_JOIN
|
||||
WHERE PROM_INNB = #{promInnb}
|
||||
</select>
|
||||
|
||||
<select id="selectPromRewardList" parameterType="com.wb.domainserver.domain.gcone.bbs.prom.vo.BOPromVO" resultType="com.wb.domainserver.util.dataaccess.DataMap">
|
||||
SELECT
|
||||
PROM_REWARD_INNB as promRewardInnb,
|
||||
PROM_INNB as promInnb,
|
||||
SORT_ORDR as sortOrdr,
|
||||
PROBABILITY as probability,
|
||||
REWARD_TY as rewardTy,
|
||||
ACCMLMNY_AMT as accmlmnyAmt,
|
||||
MLG_APPLC_RESN as mlgApplcResn,
|
||||
COUPON_INNB as couponInnb,
|
||||
COUPON_SNDNG_INNB as couponSndngInnb,
|
||||
REWARD_DC as rewardDc,
|
||||
EXPIRE_DT as expireDt
|
||||
FROM GC_PROM_REWARD
|
||||
WHERE PROM_INNB = #{promInnb}
|
||||
ORDER BY SORT_ORDR ASC
|
||||
</select>
|
||||
|
||||
<select id="countRewardWinners" parameterType="com.wb.domainserver.domain.gcone.bbs.prom.vo.BOPromVO" resultType="com.wb.domainserver.util.dataaccess.DataMap">
|
||||
SELECT
|
||||
SORT_ORDR as sortOrdr,
|
||||
COUNT(*) as winnerCount
|
||||
FROM GC_PROM_JOIN
|
||||
WHERE PROM_INNB = #{promInnb}
|
||||
AND SORT_ORDR IS NOT NULL
|
||||
GROUP BY SORT_ORDR
|
||||
</select>
|
||||
|
||||
<insert id="insertPromJoin" parameterType="com.wb.domainserver.domain.gcone.bbs.prom.vo.BOPromVO">
|
||||
INSERT INTO GC_PROM_JOIN (
|
||||
PROM_INNB,
|
||||
SOPMAL_CD,
|
||||
MBR_INNB,
|
||||
JOIN_DT,
|
||||
SORT_ORDR,
|
||||
REWARD_TY,
|
||||
ACCMLMNY_AMT,
|
||||
COUPON_INNB,
|
||||
COUPON_SNDNG_INNB,
|
||||
REWARD_DC,
|
||||
REGIST_DT
|
||||
) VALUES (
|
||||
#{promInnb},
|
||||
#{sopmalCd},
|
||||
#{mbrInnb},
|
||||
NOW(),
|
||||
#{sortOrdr},
|
||||
#{rewardTy},
|
||||
#{accmlmnyAmt},
|
||||
#{couponInnb},
|
||||
#{couponSndngInnb},
|
||||
#{rewardDc},
|
||||
NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user