gongchunyi
4 天以前 9f6a65e7f4b87b0e27e7d2949b4e42f40419b2ff
src/main/resources/mapper/sales/ShippingInfoMapper.xml
@@ -21,6 +21,7 @@
        sl.sales_contract_no,
        pm.model as specification_model,
        pm.unit,
        slp.packaging_spec,
        p.product_name,
        sl.customer_name,
        spd.totalQuantity,
@@ -48,7 +49,7 @@
        <if test="req.expressNumber != null and req.expressNumber != ''">
            AND s.express_number LIKE CONCAT('%',#{req.expressNumber},'%')
        </if>
        order by create_time DESC
        order by s.shipping_no DESC
    </select>
    <select id="listAll" resultType="com.ruoyi.sales.pojo.ShippingInfo">
        SELECT
@@ -67,11 +68,12 @@
                 LEFT JOIN sales_ledger sl ON s.sales_ledger_id = sl.id
    </select>
    <select id="getReturnManagementDtoById" resultType="com.ruoyi.procurementrecord.bean.vo.ShippingProductVo">
        SELECT
        SELECT distinct
            sor.id,
            slp.product_category,
            slp.specification_model,
            slp.unit,
            slp.product_model_id,
            sor.outbound_batches,
            sor.stock_out_num,
            sor.batch_no,
@@ -97,6 +99,7 @@
                si.id = #{shippingId}
            </if>
        </where>
        order by sor.id
    </select>
    <select id="getShippingInfoByCustomerName" resultType="com.ruoyi.sales.pojo.ShippingInfo">
        select * from shipping_info si