src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -16,6 +16,9 @@ <update id="updateAddStockInventory"> update stock_inventory <set> <if test="ew.productId != null"> product_id = #{ew.productId}, </if> <if test="ew.qualitity != null"> qualitity = qualitity + #{ew.qualitity}, </if> @@ -71,8 +74,8 @@ pm.unit, p.product_name, p1.product_name as parent_name, p1.id as parent_id p1.id as parent_id, si.product_id as productId from stock_inventory si left join product_model pm on si.product_model_id = pm.id left join product p on pm.product_id = p.id