|
|
|
@@ -8,6 +8,7 @@ |
|
|
|
<result column="coupon_id" jdbcType="BIGINT" property="couponId" /> |
|
|
|
<result column="c_user_id" jdbcType="BIGINT" property="cUserId" /> |
|
|
|
<result column="owner_user_id" jdbcType="BIGINT" property="ownerUserId" /> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type" /> |
|
|
|
<result column="coupon_password_id" jdbcType="BIGINT" property="couponPasswordId" /> |
|
|
|
<result column="coupon_password" jdbcType="VARCHAR" property="couponPassword" /> |
|
|
|
<result column="transaction_id" jdbcType="VARCHAR" property="transactionId" /> |
|
|
|
@@ -25,8 +26,8 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`coupon_id`,`c_user_id`,`owner_user_id`,`coupon_password_id`,`coupon_password`,`transaction_id`, |
|
|
|
`amount`,`sale_amount`,`remaining_amount`,`service_fee_amount`,`share_fee_amount`,`remaining_share_fee_amount`, |
|
|
|
`id`,`tenant_id`,`parent_tenant_id`,`coupon_id`,`c_user_id`,`owner_user_id`,`coupon_password_id`,`coupon_password`,`type`, |
|
|
|
`transaction_id`,`amount`,`sale_amount`,`remaining_amount`,`service_fee_amount`,`share_fee_amount`,`remaining_share_fee_amount`, |
|
|
|
`rate_amount`,`create_date`,`update_date`,`support_transfer`,`status` |
|
|
|
</sql> |
|
|
|
|
|
|
|
@@ -47,6 +48,9 @@ |
|
|
|
<if test=" null != ownerUserId "> |
|
|
|
and `owner_user_id` = #{ownerUserId} |
|
|
|
</if> |
|
|
|
<if test=" null != type "> |
|
|
|
and `type` = #{type} |
|
|
|
</if> |
|
|
|
<if test=" null != transactionId "> |
|
|
|
and `transaction_id` = #{transactionId} |
|
|
|
</if> |
|
|
|
|