lishenao
昨天 d05d46076c62c744cdbd84c84d6e19b42cda9259
src/main/resources/mapper/inventory/StockManagementMapper.xml
@@ -12,27 +12,33 @@
            T2.specification_model,
            T3.supplier_name,
            T1.id,
            T1.product_id,
            T1.product_recordid,
            T1.stock_quantity,
            T2.tax_inclusive_unit_price,
            T2.tax_inclusive_total_price,
            T2.tax_rate,
            T2.tax_exclusive_total_price,
            T1.inbound_person,
            T1.user_id,
            T1.supplier_id,
            T1.tenant_id,
            T1.bound_time,
            T1.inbound_time
            T1.inbound_time,
            T4.nick_name,
            T1.inbound_batch
        FROM
            stock_management T1
                INNER JOIN
            product_record T2
            ON
                T1.product_id = T2.product_id
                T1.product_recordid = T2.id
                INNER JOIN
            supplier_manage T3
            ON
                T1.supplier_id = T3.id
                INNER JOIN
            sys_user T4
            ON
                T1.user_id = T4.user_id
        <where>
            <if test="stockManagementDto.supplierName != null and stockManagementDto.supplierName != ''">
                AND T3.supplier_name LIKE CONCAT('%', #{stockManagementDto.supplierName}, '%')
@@ -47,27 +53,33 @@
        T2.specification_model,
        T3.supplier_name,
        T1.id,
        T1.product_id,
        T1.product_recordid,
        T1.stock_quantity,
        T2.tax_inclusive_unit_price,
        T2.tax_inclusive_total_price,
        T2.tax_rate,
        T2.tax_exclusive_total_price,
        T1.inbound_person,
        T1.user_id,
        T1.supplier_id,
        T1.tenant_id,
        T1.bound_time,
        T1.inbound_time
        T1.inbound_time,
        T4.nick_name,
        T1.inbound_batch
        FROM
        stock_management T1
        INNER JOIN
        product_record T2
        ON
        T1.product_id = T2.product_id
        T1.product_recordid = T2.id
        INNER JOIN
        supplier_manage T3
        ON
        T1.supplier_id = T3.id
        INNER JOIN
        sys_user T4
        ON
        T1.user_id = T4.user_id
        <where>
            <if test="stockManagementDto.supplierName != null and stockManagementDto.supplierName != ''">
                AND T3.supplier_name LIKE CONCAT('%', #{stockManagementDto.supplierName}, '%')