|
|
|
@@ -3,6 +3,7 @@ |
|
|
|
<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="transaction_id" jdbcType="VARCHAR" property="transactionId" /> |
|
|
|
<result column="amount" jdbcType="INTEGER" property="amount" /> |
|
|
|
<result column="remaining_amount" jdbcType="INTEGER" property="remainingAmount" /> |
|
|
|
@@ -14,7 +15,7 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`transaction_id`,`amount`,`remaining_amount`,`service_fee_amount`,`share_fee_amount`,`remaining_share_fee_amount`,`create_date`,`update_date` |
|
|
|
`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"> |
|
|
|
@@ -22,7 +23,10 @@ |
|
|
|
<if test=" null != id "> |
|
|
|
and `id` = #{id} |
|
|
|
</if> |
|
|
|
<if test=" null != transactionId "> |
|
|
|
<if test=" null != couponId "> |
|
|
|
and `coupon_id` like concat('%', #{couponId},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != transactionId "> |
|
|
|
and `transaction_id` like concat('%', #{transactionId},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != amount "> |
|
|
|
|