| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | pm.unit, |
| | | p.product_name |
| | | </select> |
| | | <select id="selectTotal" resultType="java.math.BigDecimal"> |
| | | select sum(qualitity) |
| | | from stock_inventory |
| | | </select> |
| | | |
| | | </mapper> |