liyong
5 天以前 f23bb8ce948f64e22276b3fa5fe6ba37c24dcd06
src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -62,6 +62,8 @@
        si.version,
        (si.qualitity - COALESCE(si.locked_quantity, 0)) as un_locked_quantity,
        pm.model,
        si.remark,
        pm.model as model,
        pm.unit,
        p.product_name
        from stock_inventory si
@@ -77,8 +79,8 @@
        pm.model,
        pm.unit,
        p.product_name,
        si.warn_num,
        si.locked_quantity,
        coalesce(si.warn_num, 0) as warn_num,
        coalesce(si.locked_quantity, 0) as locked_quantity,
        si.remark,
        si.update_time
        from stock_inventory si