记得上下班打卡 | git大法好,push需谨慎

Commit c7ac89fc authored by 张国柄's avatar 张国柄

+user_coupon降级DB;

parent 038cce49
...@@ -376,6 +376,8 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa ...@@ -376,6 +376,8 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
memberRightsCouponVoList = new ArrayList<>(); memberRightsCouponVoList = new ArrayList<>();
} }
} }
if (updateCoupon.getState() == 1) {
Integer eventAmt = updateMgtCoupon.getEventAmt(); Integer eventAmt = updateMgtCoupon.getEventAmt();
for (int i = 0; i < eventAmt; i++) { for (int i = 0; i < eventAmt; i++) {
AdamMemberRightsCouponVo memberRightsCouponVo = AdamMemberRightsCouponVo.getNew(); AdamMemberRightsCouponVo memberRightsCouponVo = AdamMemberRightsCouponVo.getNew();
...@@ -393,6 +395,8 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa ...@@ -393,6 +395,8 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
memberRightsCouponVoList.add(memberRightsCouponVo); memberRightsCouponVoList.add(memberRightsCouponVo);
} }
}
redisUtil.set(AdamRedisConst.INFO_MEMBER_RIGHTS_COUPON.concat(updateMgtCoupon.getMcouponId()), memberRightsCouponVoList); redisUtil.set(AdamRedisConst.INFO_MEMBER_RIGHTS_COUPON.concat(updateMgtCoupon.getMcouponId()), memberRightsCouponVoList);
} }
} }
...@@ -2,59 +2,59 @@ ...@@ -2,59 +2,59 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.liquidnet.service.candy.mapper.CandyCommonCouponMapper"> <mapper namespace="com.liquidnet.service.candy.mapper.CandyCommonCouponMapper">
<resultMap id="Rst_UserCouponBasicDto" type="com.liquidnet.service.candy.dto.CandyUserCouponBasicDto"> <!-- <resultMap id="Rst_UserCouponBasicDto" type="com.liquidnet.service.candy.dto.CandyUserCouponBasicDto">-->
<result column="coupon_id" jdbcType="VARCHAR" property="couponId"/> <!-- <result column="coupon_id" jdbcType="VARCHAR" property="couponId"/>-->
<!-- <result column="state" jdbcType="TINYINT" property="state"/>--> <!-- &lt;!&ndash; <result column="state" jdbcType="TINYINT" property="state"/>&ndash;&gt;-->
<result column="title" jdbcType="VARCHAR" property="title"/> <!-- <result column="title" jdbcType="VARCHAR" property="title"/>-->
<result column="label" jdbcType="VARCHAR" property="label"/> <!-- <result column="label" jdbcType="VARCHAR" property="label"/>-->
<result column="notice" jdbcType="VARCHAR" property="notice"/> <!-- <result column="notice" jdbcType="VARCHAR" property="notice"/>-->
<result column="exclusive" jdbcType="SMALLINT" property="exclusive"/> <!-- <result column="exclusive" jdbcType="SMALLINT" property="exclusive"/>-->
<result column="busi_type" jdbcType="SMALLINT" property="busiType"/> <!-- <result column="busi_type" jdbcType="SMALLINT" property="busiType"/>-->
<result column="cou_type" jdbcType="SMALLINT" property="couType"/> <!-- <result column="cou_type" jdbcType="SMALLINT" property="couType"/>-->
<result column="bind_type" jdbcType="SMALLINT" property="bindType"/> <!-- <result column="bind_type" jdbcType="SMALLINT" property="bindType"/>-->
<result column="discount" jdbcType="DECIMAL" property="discount"/> <!-- <result column="discount" jdbcType="DECIMAL" property="discount"/>-->
<result column="val_face" jdbcType="DECIMAL" property="valFace"/> <!-- <result column="val_face" jdbcType="DECIMAL" property="valFace"/>-->
<result column="val_over" jdbcType="DECIMAL" property="valOver"/> <!-- <result column="val_over" jdbcType="DECIMAL" property="valOver"/>-->
<result column="val_minus" jdbcType="DECIMAL" property="valMinus"/> <!-- <result column="val_minus" jdbcType="DECIMAL" property="valMinus"/>-->
<result column="overlay" jdbcType="TINYINT" property="overlay"/> <!-- <result column="overlay" jdbcType="TINYINT" property="overlay"/>-->
<result column="overlay_level" jdbcType="TINYINT" property="overlayLevel"/> <!-- <result column="overlay_level" jdbcType="TINYINT" property="overlayLevel"/>-->
<result column="validity" jdbcType="INTEGER" property="validity"/> <!-- <result column="validity" jdbcType="INTEGER" property="validity"/>-->
<result column="redeem_validity" jdbcType="INTEGER" property="redeemValidity"/> <!-- <result column="redeem_validity" jdbcType="INTEGER" property="redeemValidity"/>-->
<result column="redeem_start" jdbcType="TIMESTAMP" property="redeemStart"/> <!-- <result column="redeem_start" jdbcType="TIMESTAMP" property="redeemStart"/>-->
<result column="redeem_stop" jdbcType="TIMESTAMP" property="redeemStop"/> <!-- <result column="redeem_stop" jdbcType="TIMESTAMP" property="redeemStop"/>-->
<result column="effect_at" jdbcType="TIMESTAMP" property="effectAt"/> <!-- <result column="effect_at" jdbcType="TIMESTAMP" property="effectAt"/>-->
<result column="expire_at" jdbcType="TIMESTAMP" property="expireAt"/> <!-- <result column="expire_at" jdbcType="TIMESTAMP" property="expireAt"/>-->
<!-- <result column="operator" jdbcType="VARCHAR" property="operator" />--> <!-- &lt;!&ndash; <result column="operator" jdbcType="VARCHAR" property="operator" />&ndash;&gt;-->
<!-- <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />--> <!-- &lt;!&ndash; <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />&ndash;&gt;-->
<!-- <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />--> <!-- &lt;!&ndash; <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />&ndash;&gt;-->
<!-- <result column="comment" jdbcType="VARCHAR" property="comment" />--> <!-- &lt;!&ndash; <result column="comment" jdbcType="VARCHAR" property="comment" />&ndash;&gt;-->
<result column="ucoupon_id" jdbcType="VARCHAR" property="ucouponId"/> <!-- <result column="ucoupon_id" jdbcType="VARCHAR" property="ucouponId"/>-->
<!-- <result column="mcoupon_id" jdbcType="VARCHAR" property="mcouponId" />--> <!-- &lt;!&ndash; <result column="mcoupon_id" jdbcType="VARCHAR" property="mcouponId" />&ndash;&gt;-->
<result column="uid" jdbcType="VARCHAR" property="uid"/> <!-- <result column="uid" jdbcType="VARCHAR" property="uid"/>-->
<!-- <result column="coupon_id" jdbcType="VARCHAR" property="couponId" />--> <!-- &lt;!&ndash; <result column="coupon_id" jdbcType="VARCHAR" property="couponId" />&ndash;&gt;-->
<result column="state" jdbcType="TINYINT" property="state"/> <!-- <result column="state" jdbcType="TINYINT" property="state"/>-->
<result column="ccode" jdbcType="VARCHAR" property="ccode"/> <!-- <result column="ccode" jdbcType="VARCHAR" property="ccode"/>-->
<result column="bind_at" jdbcType="TIMESTAMP" property="bindAt"/> <!-- <result column="bind_at" jdbcType="TIMESTAMP" property="bindAt"/>-->
<result column="used_at" jdbcType="TIMESTAMP" property="usedAt"/> <!-- <result column="used_at" jdbcType="TIMESTAMP" property="usedAt"/>-->
<result column="used_for" jdbcType="VARCHAR" property="usedFor"/> <!-- <result column="used_for" jdbcType="VARCHAR" property="usedFor"/>-->
<!-- <result column="comment" jdbcType="VARCHAR" property="comment" />--> <!-- &lt;!&ndash; <result column="comment" jdbcType="VARCHAR" property="comment" />&ndash;&gt;-->
</resultMap> <!-- </resultMap>-->
<sql id="Rst_CommonCouponBasicDto_Column_List"> <!-- <sql id="Rst_CommonCouponBasicDto_Column_List">-->
cc.coupon_id, cc.title, cc.`label`, cc.notice, cc.`exclusive`, cc.busi_type, cc.cou_type, cc.bind_type, <!-- cc.coupon_id, cc.title, cc.`label`, cc.notice, cc.`exclusive`, cc.busi_type, cc.cou_type, cc.bind_type,-->
cc.discount, cc.val_face, cc.val_over, cc.val_minus, cc.`overlay`, cc.overlay_level, <!-- cc.discount, cc.val_face, cc.val_over, cc.val_minus, cc.`overlay`, cc.overlay_level,-->
cc.validity,cc.redeem_validity, cc.redeem_start, cc.redeem_stop, <!-- cc.validity,cc.redeem_validity, cc.redeem_start, cc.redeem_stop,-->
cuc.ucoupon_id, cuc.mcoupon_id, cuc.`uid`, cuc.`state`, cuc.ccode, cuc.bind_at, cuc.dued_at, cuc.used_at, cuc.used_for <!-- cuc.ucoupon_id, cuc.mcoupon_id, cuc.`uid`, cuc.`state`, cuc.ccode, cuc.bind_at, cuc.dued_at, cuc.used_at, cuc.used_for-->
</sql> <!-- </sql>-->
<select id="selectMultiForCommonCouponBasicDto" resultMap="Rst_CommonCouponBasicDto"> <!-- <select id="selectMultiForCommonCouponBasicDto" resultMap="Rst_CommonCouponBasicDto">-->
SELECT <!-- SELECT-->
<include refid="Rst_CommonCouponBasicDto_Column_List"/> <!-- <include refid="Rst_CommonCouponBasicDto_Column_List"/>-->
FROM candy_user_coupon cuc <!-- FROM candy_user_coupon cuc-->
LEFT JOIN candy_coupon cc ON cuc.coupon_id = cc.coupon_id <!-- LEFT JOIN candy_coupon cc ON cuc.coupon_id = cc.coupon_id-->
WHERE cuc.uid = #{uid,jdbcType=VARCHAR} <!-- WHERE cuc.uid = #{uid,jdbcType=VARCHAR}-->
AND state <![CDATA[<>]]> 2 <!-- AND state <![CDATA[<>]]> 2-->
</select> <!-- </select>-->
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment