bug
This commit is contained in:
parent
1d99cc5561
commit
6ac2183854
|
|
@ -164,7 +164,7 @@
|
||||||
</insert>
|
</insert>
|
||||||
<update id="updateMaType">
|
<update id="updateMaType">
|
||||||
UPDATE ma_type
|
UPDATE ma_type
|
||||||
SET num = num + #{num},
|
SET num = IFNULL(num, 0) + #{num},
|
||||||
update_time = now()
|
update_time = now()
|
||||||
<where>
|
<where>
|
||||||
<if test="typeId != null ">and type_id = #{typeId}</if>
|
<if test="typeId != null ">and type_id = #{typeId}</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue