6 天以前 69dc6b16ef04bdfbfa65f77c169c0847dc7e65c2
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