| | |
| | | </resultMap> |
| | | |
| | | |
| | | <resultMap id="BaseResultRecordMap" type="com.yeshi.fanli.entity.bus.user.UserSystemCouponRecord"> |
| | | <id column="ucr_id" property="id" jdbcType="BIGINT"/> |
| | | <result column="ucr_good_id" property="goodId" jdbcType="BIGINT"/> |
| | | <result column="ucr_good_source" property="goodSource" jdbcType="VARCHAR"/> |
| | | <result column="ucr_coupon_type" property="couponType" jdbcType="VARCHAR"/> |
| | | <result column="ucr_order_no" property="orderNo" jdbcType="VARCHAR"/> |
| | | <result column="ucr_state" property="state" jdbcType="INTEGER"/> |
| | | <result column="ucr_create_time" property="createTime" jdbcType="TIMESTAMP"/> |
| | | <result column="ucr_update_time" property="updateTime" jdbcType="TIMESTAMP"/> |
| | | |
| | | <association property="userSystemCoupon" column="ucr_user_coupon_id" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.user.UserSystemCouponMapper.BaseResultMap"/> |
| | | |
| | | </resultMap> |
| | | |
| | | <select id="listRebateCoupon" resultMap="BaseResultMap"> |
| | | SELECT * FROM `yeshi_ec_user_system_coupon` uc |
| | | LEFT JOIN yeshi_ec_system_coupon p ON p.`sc_id`= uc.`usc_coupon_id` |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="listFreeCouponRecord" resultMap="BaseResultMap"> |
| | | <select id="listFreeCouponRecord" resultMap="BaseResultRecordMap"> |
| | | SELECT * FROM `yeshi_ec_user_system_coupon_record` d |
| | | LEFT JOIN `yeshi_ec_user_system_coupon` uc ON d.`ucr_user_coupon_id` = uc.`usc_id` |
| | | LEFT JOIN yeshi_ec_system_coupon p ON p.`sc_id`= uc.`usc_coupon_id` |