|
@@ -95,12 +95,17 @@
|
|
|
<delete id="deleteByProjectId">
|
|
|
DELETE FROM project_item WHERE projectId=#{projectId}
|
|
|
</delete>
|
|
|
-
|
|
|
+
|
|
|
<update id="update" parameterType="com.bosshand.virgo.api.model.ProjectItem">
|
|
|
UPDATE project_item
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
<if test="name!=null">name=#{name},</if>
|
|
|
+ <if test="area!=null">area=#{area},</if>
|
|
|
+ <if test="address!=null">address=#{address},</if>
|
|
|
+ <if test="picture!=null">picture=#{picture},</if>
|
|
|
+ <if test="propertyCertificateNumber!=null">propertyCertificateNumber=#{propertyCertificateNumber},</if>
|
|
|
<if test="tagIds!=null">tagIds=#{tagIds},</if>
|
|
|
+ <if test="data!=null">data=#{data},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|