|
@@ -639,9 +639,9 @@
|
|
|
<update id="updateLabSubject" parameterType="com.zd.laboratory.domain.LabSubject">
|
|
<update id="updateLabSubject" parameterType="com.zd.laboratory.domain.LabSubject">
|
|
|
update lab_subject
|
|
update lab_subject
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="name != null">name = #{name},</if>
|
|
|
|
|
|
|
+ <if test="name != null and name!=''">name = #{name},</if>
|
|
|
<if test="floorId != null">floor_id = #{floorId},</if>
|
|
<if test="floorId != null">floor_id = #{floorId},</if>
|
|
|
- <if test="room != null">room = #{room},</if>
|
|
|
|
|
|
|
+ <if test="room != null and room !=''">room = #{room},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
|
|
<if test="adminId != null">admin_id = #{adminId},</if>
|
|
<if test="adminId != null">admin_id = #{adminId},</if>
|