This commit is contained in:
clunt 2022-05-24 14:38:18 +08:00
commit a1d370b170
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@
</insert> </insert>
<update id="updateCustomer" parameterType="com.ghy.customer.domain.Customer"> <update id="updateCustomer" parameterType="com.ghy.customer.domain.Customer">
update costomer update customer
<set> <set>
<if test="name != null and name != ''">name = #{name},</if> <if test="name != null and name != ''">name = #{name},</if>
<if test="account != null and account != ''">account = #{account},</if> <if test="account != null and account != ''">account = #{account},</if>

View File

@ -67,7 +67,7 @@
) )
</insert> </insert>
<update id="updateWorker" parameterType="com.ghy.worker.domain.Worker"> <update id="updateWorker" >
update worker update worker
<set> <set>
<if test="account != null and account != ''"> account = #{account},</if> <if test="account != null and account != ''"> account = #{account},</if>
@ -75,4 +75,4 @@
</set> </set>
where worker_id = #{workerId} where worker_id = #{workerId}
</update> </update>
</mapper> </mapper>