maven
9 天以前 9aec7c5d4e11dcd66f0c886c759bbaa54efe6211
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>