`id`,`tenant_id`,`c_user_id`,`credit_amount`,`credit_num`,`credit_type`,`credate_date`,`receipt_url`,`operator_type`,`operator_id`,`merchant_id`,`coupon_id`,`business_id`,`spend`,`change_purpose` where 1 = 1 and `id` = #{id} and `c_user_id` = #{cUserId} and `credit_amount` = #{creditAmount} and `credit_num` = #{creditNum} and `credit_type` = #{creditType} and `receipt_url` like concat('%', #{receiptUrl},'%') and `operator_type` = #{operatorType} and `operator_id` = #{operatorId} and `merchant_id` = #{merchantId} and `coupon_id` = #{couponId} and `business_id` = #{businessId} and `spend` = #{spend} and `change_purpose` = #{changePurpose} and id in #{idItem} order by ${sortColumns} where 1 = 1 and basic.nick_name like concat('%', #{name},'%') and basic.phone like concat('%', #{phone},'%') and credit.create_date >= #{startTime} and credit.create_date < #{endTime} and credit.tenant_id = #{tenantId} and `operator_id` = #{operatorId} and `credit_type` = #{creditType} and `c_user_id` = #{cUserId} and `merchant_id` = #{merchantId}