yuan
2026-10-08 15f7555b9f9d3e3ae2cdaa82d89bc7ea5160f62c
src/main/resources/mapper/sales/SalesLedgerMapper.xml
@@ -140,10 +140,13 @@
        sales_ledger sl
        left join sales_ledger_product slp on sl.id = slp.sales_ledger_id
        left join shipping_info si on slp.id = si.sales_ledger_product_id
        where si.status = '审核通过'
        where si.status in ('审核通过', '已发货')
        <if test="ew.customerId != null and ew.customerId != '' ">
            and sl.customer_id = #{ew.customerId}
        </if>
        <if test="ew.customerName != null and ew.customerName != '' ">
            and sl.customer_name like concat('%', #{ew.customerName}, '%')
        </if>
        order by sl.execution_date desc
    </select>