|
@@ -13,6 +13,7 @@
|
|
|
<result column="picture" property="picture"/>
|
|
|
<result column="tagIds" property="tagIds"/>
|
|
|
<result column="comment" property="comment"/>
|
|
|
+ <result column="coordinates" property="coordinates"/>
|
|
|
<result column="data" property="data"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -26,6 +27,7 @@
|
|
|
<result column="picture" property="picture"/>
|
|
|
<result column="tagIds" property="tagIds"/>
|
|
|
<result column="comment" property="comment"/>
|
|
|
+ <result column="coordinates" property="coordinates"/>
|
|
|
<result column="data" property="data"/>
|
|
|
<collection property="projectItemList" ofType="com.bosshand.virgo.api.model.ProjectItem" resultMap="com.bosshand.virgo.api.dao.ProjectItemDao.projectItemResult" columnPrefix="projectItem_"/>
|
|
|
</resultMap>
|
|
@@ -68,8 +70,8 @@
|
|
|
</select>
|
|
|
|
|
|
<insert id="insert" parameterType="com.bosshand.virgo.api.model.Project" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT INTO project(`type`, `name`, `createDate`, `organizationId`, `address`, `picture`, `tagIds`, `comment`, `data`)
|
|
|
- VALUES (#{type}, #{name}, now(), #{organizationId}, #{address}, #{picture}, #{tagIds}, #{comment}, #{data})
|
|
|
+ INSERT INTO project(`type`, `name`, `createDate`, `organizationId`, `address`, `picture`, `tagIds`, `comment`, `coordinates`, `data`)
|
|
|
+ VALUES (#{type}, #{name}, now(), #{organizationId}, #{address}, #{picture}, #{tagIds}, #{comment}, #{coordinates}, #{data})
|
|
|
</insert>
|
|
|
|
|
|
<update id="delete">
|
|
@@ -87,6 +89,7 @@
|
|
|
<if test="picture!=null">picture=#{picture},</if>
|
|
|
<if test="tagIds!=null">tagIds=#{tagIds},</if>
|
|
|
<if test="comment!=null">comment=#{comment},</if>
|
|
|
+ <if test="coordinates!=null">coordinates=#{coordinates},</if>
|
|
|
<if test="data!=null">data=#{data},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|