liyong
6 天以前 16dbf4a7062e0a228ebde98e1eaedd7a499b9b1d
src/main/resources/mapper/sales/ShippingInfoMapper.xml
@@ -61,6 +61,7 @@
    <select id="getReturnManagementDtoById" resultType="com.ruoyi.sales.dto.SalesLedgerProductDto">
        SELECT
        slp.*,
        si.shipping_no,
        GREATEST(slp.quantity - COALESCE(rs.total_return_num, 0), 0) AS un_quantity,
        COALESCE(rs.total_return_num, 0) AS total_return_num
        FROM shipping_info si