|
@@ -71,95 +71,49 @@
|
|
|
<insert id="insertZhjqScenery" parameterType="ZhjqScenery">
|
|
|
insert into zhjq_scenery
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">id,
|
|
|
- </if>
|
|
|
- <if test="sceneryName != null">scenery_name,
|
|
|
- </if>
|
|
|
- <if test="sceneryUrl != null">scenery_url,
|
|
|
- </if>
|
|
|
- <if test="content != null">content,
|
|
|
- </if>
|
|
|
- <if test="createBy != null">create_by,
|
|
|
- </if>
|
|
|
- <if test="createName != null">create_name,
|
|
|
- </if>
|
|
|
- <if test="createTime != null">create_time,
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">update_by,
|
|
|
- </if>
|
|
|
- <if test="updateName != null">update_name,
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">update_time,
|
|
|
- </if>
|
|
|
- <if test="longitude != null">longitude,
|
|
|
- </if>
|
|
|
- <if test="latitude != null">latitude,
|
|
|
- </if>
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="sceneryName != null">scenery_name,</if>
|
|
|
+ <if test="sceneryUrl != null">scenery_url,</if>
|
|
|
+ <if test="content != null">content,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="createName != null">create_name,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateName != null">update_name,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="longitude != null">longitude,</if>
|
|
|
+ <if test="latitude != null">latitude,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">#{id},
|
|
|
- </if>
|
|
|
- <if test="sceneryName != null">#{sceneryName},
|
|
|
- </if>
|
|
|
- <if test="sceneryUrl != null">#{sceneryUrl},
|
|
|
- </if>
|
|
|
- <if test="content != null">#{content},
|
|
|
- </if>
|
|
|
- <if test="createBy != null">#{createBy},
|
|
|
- </if>
|
|
|
- <if test="createName != null">#{createName},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">#{createTime},
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">#{updateBy},
|
|
|
- </if>
|
|
|
- <if test="updateName != null">#{updateName},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">#{updateTime},
|
|
|
- </if>
|
|
|
- <if test="longitude != null">#{longitude},
|
|
|
- </if>
|
|
|
- <if test="latitude != null">#{latitude},
|
|
|
- </if>
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="sceneryName != null">#{sceneryName},</if>
|
|
|
+ <if test="sceneryUrl != null">#{sceneryUrl},</if>
|
|
|
+ <if test="content != null">#{content},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createName != null">#{createName},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateName != null">#{updateName},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="longitude != null">#{longitude},</if>
|
|
|
+ <if test="latitude != null">#{latitude},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateZhjqScenery" parameterType="ZhjqScenery">
|
|
|
update zhjq_scenery
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="sceneryName != null">scenery_name =
|
|
|
- #{sceneryName},
|
|
|
- </if>
|
|
|
- <if test="sceneryUrl != null">scenery_url =
|
|
|
- #{sceneryUrl},
|
|
|
- </if>
|
|
|
- <if test="content != null">content =
|
|
|
- #{content},
|
|
|
- </if>
|
|
|
- <if test="createBy != null">create_by =
|
|
|
- #{createBy},
|
|
|
- </if>
|
|
|
- <if test="createName != null">create_name =
|
|
|
- #{createName},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">create_time =
|
|
|
- #{createTime},
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">update_by =
|
|
|
- #{updateBy},
|
|
|
- </if>
|
|
|
- <if test="updateName != null">update_name =
|
|
|
- #{updateName},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">update_time =
|
|
|
- #{updateTime},
|
|
|
- </if>
|
|
|
- <if test="longitude != null">longitude =
|
|
|
- #{longitude},
|
|
|
- </if>
|
|
|
- <if test="latitude != null">latitude =
|
|
|
- #{latitude},
|
|
|
- </if>
|
|
|
+ <if test="sceneryName != null">scenery_name = #{sceneryName},</if>
|
|
|
+ <if test="sceneryUrl != null">scenery_url = #{sceneryUrl},</if>
|
|
|
+ <if test="content != null">content = #{content},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createName != null">create_name = #{createName},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateName != null">update_name = #{updateName},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="longitude != null">longitude = #{longitude},</if>
|
|
|
+ <if test="latitude != null">latitude = #{latitude},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|