liyong
10 小时以前 f90a37fa86568c94b5ed9be14942e7e234db016e
src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -62,6 +62,7 @@
        si.version,
        (si.qualitity - COALESCE(si.locked_quantity, 0)) as un_locked_quantity,
        pm.model,
        si.remark,
        pm.unit,
        p.product_name
        from stock_inventory si
@@ -77,8 +78,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
@@ -183,5 +184,9 @@
        pm.unit,
        p.product_name
    </select>
    <select id="selectTotal" resultType="java.math.BigDecimal">
        select sum(qualitity)
        from stock_inventory
    </select>
</mapper>