|
@@ -258,4 +258,54 @@
|
|
|
a.schedule_time DESC
|
|
|
LIMIT 1
|
|
|
</select>
|
|
|
-</mapper>
|
|
|
+
|
|
|
+ <select id="getProjectId" parameterType="String" resultType="java.lang.String">
|
|
|
+ SELECT project_id projectId from centerdata_t_key_projects
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <update id="updateByProjectId" parameterType="CenterdataTKeyProjects">
|
|
|
+ update centerdata_t_key_projects
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="projectName != null">project_name = #{projectName},</if>
|
|
|
+ <if test="projectTarget != null">project_target = #{projectTarget},</if>
|
|
|
+ <if test="projectType != null">project_type = #{projectType},</if>
|
|
|
+ <if test="projectLevel != null">project_level = #{projectLevel},</if>
|
|
|
+ <if test="constructionUnit != null">construction_unit = #{constructionUnit},</if>
|
|
|
+ <if test="principal != null">principal = #{principal},</if>
|
|
|
+ <if test="phone != null">phone = #{phone},</if>
|
|
|
+ <if test="constructionSite != null">construction_site = #{constructionSite},</if>
|
|
|
+ <if test="constructionArea != null">construction_area = #{constructionArea},</if>
|
|
|
+ <if test="longitude != null">longitude = #{longitude},</if>
|
|
|
+ <if test="latitude != null">latitude = #{latitude},</if>
|
|
|
+ <if test="cameraSystem != null">camera_system = #{cameraSystem},</if>
|
|
|
+ <if test="deptId != null and deptId != ''">dept_id = #{deptId},</if>
|
|
|
+ <if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
|
|
|
+ <if test="photoId != null">photo_id = #{photoId},</if>
|
|
|
+ <if test="orderNum != null">order_num = #{orderNum},</if>
|
|
|
+ <if test="introduction != null">introduction = #{introduction},</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="territoriality != null">territoriality = #{territoriality},</if>
|
|
|
+ <if test="park != null">park = #{park},</if>
|
|
|
+ <if test="parkLongitude != null">park_longitude = #{parkLongitude},</if>
|
|
|
+ <if test="parkLatitude != null">park_latitude = #{parkLatitude},</if>
|
|
|
+ <if test="environment != null">environment = #{environment},</if>
|
|
|
+ <if test="legalUnit != null">legal_unit = #{legalUnit},</if>
|
|
|
+ <if test="startTime != null">start_time = #{startTime},</if>
|
|
|
+ <if test="endTime != null">end_time = #{endTime},</if>
|
|
|
+ <if test="nature != null">nature = #{nature},</if>
|
|
|
+ <if test="totalInvest != null">total_invest = #{totalInvest},</if>
|
|
|
+ <if test="yearInvest != null">year_invest = #{yearInvest},</if>
|
|
|
+ <if test="industryType != null">industry_type = #{industryType},</if>
|
|
|
+ <if test="secretary != null">secretary = #{secretary},</if>
|
|
|
+ <if test="secretaryDuties != null">secretary_duties = #{secretaryDuties},</if>
|
|
|
+ <if test="secretaryPhone != null">secretary_phone = #{secretaryPhone},</if>
|
|
|
+ <if test="message != null">message = #{message},</if>
|
|
|
+ </trim>
|
|
|
+ where project_id = #{projectId}
|
|
|
+ </update>
|
|
|
+</mapper>
|