| | |
| | | left join t_supplier_info si on si.id = oi.supplier_id |
| | | left join t_order_item_settlement ois on ois.order_item_id = oi.id |
| | | WHERE oi.deleted = 0 |
| | | <if test="dto.startDate != null"> |
| | | and o.payment_time > #{dto.startDate} |
| | | </if> |
| | | <if test="dto.endDate != null"> |
| | | and o.payment_time <= #{dto.endDate} |
| | | </if> |
| | | )t1 |
| | | where 1=1 |
| | | <if test="dto.paymentDateStart != null"> |
| | |
| | | and o.payment_time <= #{dto.endDate} |
| | | </if> |
| | | <if test="dto.supplierId != null"> |
| | | and oi.supplierId = #{dto.supplierId} |
| | | and oi.supplier_id = #{dto.supplierId} |
| | | </if> |
| | | ) t1 |
| | | GROUP BY |