|
|
@@ -0,0 +1,82 @@
|
|
|
+<?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.style24.core.biz.dao.TscPointDao">
|
|
|
+
|
|
|
+ <!--포인트 적립 생성-->
|
|
|
+ <insert id="createCustomerPoint" parameterType="Point" keyProperty="custPntSq">
|
|
|
+ /*TscPoint.createCustomerPoint*/
|
|
|
+ INSERT INTO TB_CUST_POINT (
|
|
|
+ CUST_NO
|
|
|
+ , GV_PNT_AMT
|
|
|
+ , US_PNT_AMT
|
|
|
+ , RM_PNT_AMT
|
|
|
+ , EXP_BE_DT
|
|
|
+ , EXP_CMP_DT
|
|
|
+ , REG_NO
|
|
|
+ , REG_DT
|
|
|
+ , UPD_NO
|
|
|
+ , UPD_DT
|
|
|
+ ) VALUES (
|
|
|
+ #{custNo}
|
|
|
+ , #{gvPntAmt}
|
|
|
+ , #{usPntAmt}
|
|
|
+ , #{rmPntAmt}
|
|
|
+ , DATE_FORMAT(#{expBeDt}, '%Y%m%d%H%i%S')
|
|
|
+ , #{expCmpDt}
|
|
|
+ , #{regNo}
|
|
|
+ , NOW()
|
|
|
+ , #{updNo}
|
|
|
+ , NOW()
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <!--포인트 이력 생성-->
|
|
|
+ <insert id="createCustomerPointHst" parameterType="Point" keyProperty="pntHstSq">
|
|
|
+ /*TscPoint.createCustomerPointHst*/
|
|
|
+ INSERT INTO TB_CUST_POINT_HST (
|
|
|
+ CUST_NO
|
|
|
+ , OCCUR_GB
|
|
|
+ , OCCUR_DTL_DESC
|
|
|
+ , PNT_AMT
|
|
|
+ , CUST_PNT_SQ
|
|
|
+ , ORD_NO
|
|
|
+ , ORD_DTL_NO
|
|
|
+ , REVIEW_SQ
|
|
|
+ , SWITCH_DUE_DT
|
|
|
+ , PNT_UPLOAD_STAT
|
|
|
+ , PNT_UPLOAD_DT
|
|
|
+ , REG_NO
|
|
|
+ , REG_DT
|
|
|
+ , UPD_NO
|
|
|
+ , UPD_DT
|
|
|
+ ) VALUES (
|
|
|
+ #{custNo}
|
|
|
+ , #{occurGb}
|
|
|
+ , #{occurDtlDesc}
|
|
|
+ , #{pntAmt}
|
|
|
+ , #{custPntSq}
|
|
|
+ , #{ordNo}
|
|
|
+ , #{ordDtlNo}
|
|
|
+ , #{reviewSq}
|
|
|
+ <if test='pntUploadStat == "G070_30"'>
|
|
|
+ , NOW() -- SWITCH_DUE_DT
|
|
|
+ </if>
|
|
|
+ <if test='pntUploadStat != "G070_30"'>
|
|
|
+ , DATE_FORMAT(#{switchDueDt}, '%Y%m%d%H%i%S') -- SWITCH_DUE_DT
|
|
|
+ </if>
|
|
|
+ , #{pntUploadStat}
|
|
|
+ <if test='pntUploadStat == "G070_30"'>
|
|
|
+ , NOW() -- PNT_UPLOAD_DT
|
|
|
+ </if>
|
|
|
+ <if test='pntUploadStat != "G070_30"'>
|
|
|
+ , NULL -- PNT_UPLOAD_DT
|
|
|
+ </if>
|
|
|
+ , #{regNo}
|
|
|
+ , NOW() -- REG_DT
|
|
|
+ , #{updNo}
|
|
|
+ , NOW() -- UPD_DT
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|