src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -22,6 +22,7 @@ <if test="ew.version != null"> version = version + 1, </if> update_time = now() </set> where product_model_id = #{ew.productModelId} </update> @@ -34,6 +35,7 @@ <if test="ew.version != null"> version = version + 1, </if> update_time = now() </set> where product_model_id = #{ew.productModelId} and qualitity >= #{ew.qualitity} </update>