| | |
| | | <if test="dto.endDate != null"> |
| | | and DATE_FORMAT(wbr.create_time, '%Y-%m-%d') <= #{dto.endDate} |
| | | </if> |
| | | order by wbr.create_time asc |
| | | </select> |
| | | |
| | | <select id="getPageByDesc" resultType="com.mzl.flower.dto.response.wallet.WalletBillRecordVO"> |
| | | select * |
| | | from t_wallet_bill_record wbr |
| | | where wbr.DELETED=0 |
| | | <if test="dto.supplierId != null and dto.supplierId != ''"> |
| | | and wbr.supplier_id= #{dto.supplierId} |
| | | </if> |
| | | <if test="dto.startDate != null"> |
| | | and DATE_FORMAT(wbr.create_time, '%Y-%m-%d') >= #{dto.startDate} |
| | | </if> |
| | | <if test="dto.endDate != null"> |
| | | and DATE_FORMAT(wbr.create_time, '%Y-%m-%d') <= #{dto.endDate} |
| | | </if> |
| | | order by wbr.create_time desc |
| | | </select> |
| | | <select id="queryPage" resultType="com.mzl.flower.dto.response.wallet.WalletBillRecordVO"> |
| | | select t.* ,s.name supplierName ,w.approve_time as approveTime from t_wallet_bill_record t |