jsshin 5 лет назад
Родитель
Сommit
b99109c09a
1 измененных файлов с 27 добавлено и 25 удалено
  1. 27 25
      src/main/java/com/style24/persistence/mybatis/shop/TsbPoint.xml

+ 27 - 25
src/main/java/com/style24/persistence/mybatis/shop/TsbPoint.xml

@@ -42,37 +42,39 @@
 	
 	<insert id="saveExpirePointHst" parameterType="Point">
 		/*TsbPointDao.saveExpirePointHst*/
-		INSERT INTO TB_CUST_POINT_HST 
-		( CUST_NO
-		, OCCUR_GB
-		, OCCUR_DTL_DESC
-		, PNT_AMT
-		, CUST_PNT_SQ
-		, PNT_UPLOAD_STAT
-		, REG_NO
-		, REG_DT
-		, UPD_NO
-		, UPD_DT
+		INSERT INTO TB_CUST_POINT_HST (
+		       CUST_NO
+		     , OCCUR_GB
+		     , OCCUR_DTL_DESC
+		     , PNT_AMT
+		     , CUST_PNT_SQ
+		     , PNT_UPLOAD_STAT
+		     , REG_NO
+		     , REG_DT
+		     , UPD_NO
+		     , UPD_DT
 		)
 		VALUES(
-		  #{custNo} 
-		, 'G069_99'
-		, '포인트 소멸'
-		, #{pntAmt}
-		, #{custPntSq} 
-		, 'G070_30'
-		, #{regNo}
-		, CURRENT_TIMESTAMP
-		, #{updNo}
-		, CURRENT_TIMESTAMP
+		       #{custNo}
+		     , 'G069_99'
+		     , '포인트 소멸'
+		     , #{pntAmt}
+		     , #{custPntSq}
+		     , 'G070_30'
+		     , #{regNo}
+		     , CURRENT_TIMESTAMP
+		     , #{updNo}
+		     , CURRENT_TIMESTAMP
 		)
 	</insert>
 
 	<update id="updateCustPointExpire" parameterType="Point">
+		/*TsbPointDao.updateCustPointExpire*/
 		UPDATE TB_CUST_POINT
-		SET  EXP_CMP_DT=CURRENT_TIMESTAMP
-		   , UPD_NO=#{updNo}
-		   , UPD_DT=CURRENT_TIMESTAMP
-		WHERE EXP_BE_DT <![CDATA[<=]]> DATE_FORMAT(DATE_ADD(CONCAT(CURRENT_DATE(),' 23:59:59'), INTERVAL 0 DAY), '%Y%m%d%H%i%S')
+		SET    EXP_CMP_DT = CURRENT_TIMESTAMP
+		     , UPD_NO = #{updNo}
+		     , UPD_DT = CURRENT_TIMESTAMP
+		WHERE  CUST_PNT_SQ = #{custPntSq}
 	</update>
+	
 </mapper>