liyong
4 天以前 723adf57d00ba389cf52ff889535112b02f1b922
src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
@@ -8,7 +8,7 @@
        SELECT
        T1.*,
        CASE
        WHEN t2.qualitity > T1.quantity THEN 1
        WHEN t2.qualitity-t2.locked_quantity >= T1.quantity THEN 1
        ELSE 0
        END as has_sufficient_stock
        FROM
@@ -97,7 +97,7 @@
                AND slp.product_category like concat('%',#{req.productCategory},'%')
            </if>
            <if test="req.status != null and req.status ">
                AND slp.pending_invoice_total &gt; 0
                AND slp.pending_tickets_total &gt; 0
            </if>
        </where>
        order by slp.register_date desc