|
|
|
@@ -3,7 +3,8 @@ |
|
|
|
<mapper namespace="com.iformall.mapper.WxCardInfoMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxCardInfo"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="coupon_id" jdbcType="VARCHAR" property="couponId" /> |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> |
|
|
|
<result column="coupon_id" jdbcType="BIGINT" property="couponId" /> |
|
|
|
<result column="transaction_id" jdbcType="VARCHAR" property="transactionId" /> |
|
|
|
<result column="amount" jdbcType="INTEGER" property="amount" /> |
|
|
|
<result column="remaining_amount" jdbcType="INTEGER" property="remainingAmount" /> |
|
|
|
@@ -15,7 +16,7 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`coupon_id`,`transaction_id`,`amount`,`remaining_amount`,`service_fee_amount`,`share_fee_amount`,`remaining_share_fee_amount`,`create_date`,`update_date` |
|
|
|
`id`,`tenant_id`,`coupon_id`,`transaction_id`,`amount`,`remaining_amount`,`service_fee_amount`,`share_fee_amount`,`remaining_share_fee_amount`,`create_date`,`update_date` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -23,11 +24,14 @@ |
|
|
|
<if test=" null != id "> |
|
|
|
and `id` = #{id} |
|
|
|
</if> |
|
|
|
<if test=" null != tenantId "> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != couponId "> |
|
|
|
and `coupon_id` like concat('%', #{couponId},'%') |
|
|
|
and `coupon_id` = #{couponId} |
|
|
|
</if> |
|
|
|
<if test=" null != transactionId "> |
|
|
|
and `transaction_id` like concat('%', #{transactionId},'%') |
|
|
|
and `transaction_id` = #{transactionId} |
|
|
|
</if> |
|
|
|
<if test=" null != amount "> |
|
|
|
and `amount` = #{amount} |
|
|
|
|