zhang_nuo
2026-09-22 0200b4092214d065adea7c7b9fef0c04b31be255
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>