|
|
|
@@ -18,7 +18,41 @@ |
|
|
|
<result column="couponPic" property="couponPic" /> |
|
|
|
<result column="couponId" property="couponId" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="couponResultMap" type="com.iformall.domain.po.WxCoupon"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id"/> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type"/> |
|
|
|
<result column="cover_img" jdbcType="VARCHAR" property="coverImg"/> |
|
|
|
<result column="title" jdbcType="VARCHAR" property="title"/> |
|
|
|
<result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> |
|
|
|
<result column="sale_price" jdbcType="INTEGER" property="salePrice"/> |
|
|
|
<result column="use_price" jdbcType="INTEGER" property="usePrice"/> |
|
|
|
<result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> |
|
|
|
<result column="send_type" jdbcType="INTEGER" property="sendType"/> |
|
|
|
<result column="valid_type" jdbcType="INTEGER" property="validType"/> |
|
|
|
<result column="valid_start_date" jdbcType="TIMESTAMP" property="validStartDate"/> |
|
|
|
<result column="valid_end_date" jdbcType="TIMESTAMP" property="validEndDate"/> |
|
|
|
<result column="valid_days" jdbcType="INTEGER" property="validDays"/> |
|
|
|
<result column="detail" jdbcType="VARCHAR" property="detail"/> |
|
|
|
<result column="price" jdbcType="INTEGER" property="price"/> |
|
|
|
<result column="unit" jdbcType="INTEGER" property="unit"/> |
|
|
|
<result column="remain_inventory" jdbcType="INTEGER" property="remainInventory"/> |
|
|
|
<result column="inventory" jdbcType="INTEGER" property="inventory"/> |
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark"/> |
|
|
|
<result column="status" jdbcType="INTEGER" property="status"/> |
|
|
|
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/> |
|
|
|
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> |
|
|
|
<result column="business" jdbcType="INTEGER" property="business"/> |
|
|
|
<result column="support_transfer" jdbcType="INTEGER" property="supportTransfer"/> |
|
|
|
<result column="subsidy_type" jdbcType="INTEGER" property="subsidyType"/> |
|
|
|
<result column="subsidy_num" jdbcType="INTEGER" property="subsidyNum"/> |
|
|
|
<result column="press_limit_num" jdbcType="INTEGER" property="pressLimitNum"/> |
|
|
|
<result column="press_limit_hours" jdbcType="INTEGER" property="pressLimitHours"/> |
|
|
|
<result column="auto_refund" jdbcType="INTEGER" property="autoRefund"/> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
where 1 = 1 |
|
|
|
<if test=" null != id "> |
|
|
|
@@ -44,8 +78,8 @@ |
|
|
|
order by createtime desc |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxTopic" resultMap="BaseResultMap"> |
|
|
|
select ct.*,wc.title as couponName,wc.`cover_img` as couponPic,wc.id as couponId from wx_coupon_topic ct left join |
|
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxCoupon" resultMap="couponResultMap"> |
|
|
|
select wc.*,wc.title as couponName,wc.`cover_img` as couponPic,wc.id as couponId from wx_coupon_topic ct left join |
|
|
|
wx_coupon wc on wc.id = ct.bus_id |
|
|
|
where ct.`topic_id` = #{id} |
|
|
|
</select> |
|
|
|
|