update product unit
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
<id column="id" property="id"/>
|
||||
<result column="product_id" property="productId"/>
|
||||
<result column="name" property="name"/>
|
||||
<result column="conversion_to_base" property="conversionToBase"/>
|
||||
<result column="base_quantity_per_unit" property="baseQuantityPerUnit"/>
|
||||
<result column="sale_price" property="salePrice"/>
|
||||
<result column="is_base" property="isBase"/>
|
||||
<result column="allow_purchase" property="allowPurchase"/>
|
||||
<result column="allow_sale" property="allowSale"/>
|
||||
@@ -37,7 +38,7 @@
|
||||
</select>
|
||||
<update id="updateUnit">
|
||||
UPDATE `gao_product_unit`
|
||||
SET `name` = #{name}, `conversion_to_base` = #{conversionToBase}, `is_base` = #{isBase},
|
||||
SET `name` = #{name}, `base_quantity_per_unit` = #{baseQuantityPerUnit}, `sale_price` = #{salePrice}, `is_base` = #{isBase},
|
||||
`allow_purchase` = #{allowPurchase}, `allow_sale` = #{allowSale}, `sort` = #{sort},
|
||||
`updated_at` = FLOOR(UNIX_TIMESTAMP(NOW(3)) * 1000)
|
||||
WHERE `id` = #{id} AND `product_id` = #{productId} AND `deleted_at` IS NULL
|
||||
|
||||
Reference in New Issue
Block a user