This commit is contained in:
mashuai 2024-05-24 14:55:07 +08:00
parent c6d4e9f551
commit f8dd3dfeba
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@
</insert>
<update id="updateMaType">
UPDATE ma_type
SET num = num + #{num},
SET num = IFNULL(num, 0) + #{num},
update_time = now()
<where>
<if test="typeId != null ">and type_id = #{typeId}</if>