|
|
|
@@ -18,11 +18,11 @@ |
|
|
|
<result column="spend" jdbcType="INTEGER" property="spend" /> |
|
|
|
<result column="change_purpose" jdbcType="VARCHAR" property="changePurpose" /> |
|
|
|
<result column="ticket_number" jdbcType="VARCHAR" property="ticketNumber"/> |
|
|
|
|
|
|
|
<result column="buser_id" jdbcType="BIGINT" property="buserId"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`c_user_id`,`credit_amount`,`credit_num`,`credit_type`,`create_date`,`receipt_url`,`operator_type`,`operator_id`,`merchant_id`,`coupon_id`,`business_id`,`spend`,`change_purpose`,`ticket_number` |
|
|
|
`id`,`tenant_id`,`c_user_id`,`credit_amount`,`credit_num`,`credit_type`,`create_date`,`receipt_url`,`operator_type`,`operator_id`,`merchant_id`,`coupon_id`,`business_id`,`spend`,`change_purpose`,`ticket_number`,`buser_id` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -69,6 +69,11 @@ |
|
|
|
<if test=" null != ticketNumber and ''!=ticketNumber "> |
|
|
|
and ticket_number like concat('%', #{ticketNumber},'%') |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != buserId "> |
|
|
|
and `buser_id` = #{buserId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
@@ -116,6 +121,11 @@ |
|
|
|
<if test=" null != ticketNumber and ''!=ticketNumber "> |
|
|
|
and credit.ticket_number like concat('%', #{ticketNumber},'%') |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != buserId "> |
|
|
|
and credit.buser_id = #{buserId} |
|
|
|
</if> |
|
|
|
|
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxCreditHistory" resultMap="BaseResultMap"> |
|
|
|
|