|  |  |  | 
|---|
|  |  |  | <select id="queryPage" resultType="com.mzl.flower.dto.response.wallet.WalletBillRecordVO"> | 
|---|
|  |  |  | select t.* ,s.name supplierName from t_wallet_bill_record t | 
|---|
|  |  |  | left join t_supplier_info s on t.supplier_id = s.id | 
|---|
|  |  |  | left join t_order o on t.order_id = o.id | 
|---|
|  |  |  | left join t_wallet_withdraw_record w on t.withdraw_record_id = w.id | 
|---|
|  |  |  | where t.deleted= 0 | 
|---|
|  |  |  | <if test="dto.supplierName != null and dto.supplierName != ''"> | 
|---|
|  |  |  | 
|---|
|  |  |  | and t.type = #{type} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="dto.orderNo != null and dto.orderNo != ''"> | 
|---|
|  |  |  | and o.order_no = like concat('%', #{orderNo}, '%') | 
|---|
|  |  |  | and torder_no = like concat('%', #{orderNo}, '%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="dto.createStartDate!=null "> | 
|---|
|  |  |  | <![CDATA[ | 
|---|
|  |  |  | <![CDATA[. | 
|---|
|  |  |  | AND w.create_time >= #{dto.createStartDate} | 
|---|
|  |  |  | ]]> | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <select id="queryWalletBillRecordList" resultType="com.mzl.flower.dto.response.wallet.WalletBillRecordVO"> | 
|---|
|  |  |  | select t.* ,s.name supplierName from t_wallet_bill_record t | 
|---|
|  |  |  | left join t_supplier_info s on t.supplier_id = s.id | 
|---|
|  |  |  | left join t_order o on t.order_id = o.id | 
|---|
|  |  |  | left join t_wallet_withdraw_record w on t.withdraw_record_id = w.id | 
|---|
|  |  |  | where t.deleted= 0 | 
|---|
|  |  |  | <if test="dto.supplierName != null and dto.supplierName != ''"> | 
|---|
|  |  |  | 
|---|
|  |  |  | and t.type = #{type} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="dto.orderNo != null and dto.orderNo != ''"> | 
|---|
|  |  |  | and o.order_no = like concat('%', #{orderNo}, '%') | 
|---|
|  |  |  | and t.order_no = like concat('%', #{orderNo}, '%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="dto.createStartDate!=null "> | 
|---|
|  |  |  | <![CDATA[ | 
|---|