|
@@ -1,46 +1,71 @@
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
<!DOCTYPE mapper
|
|
|
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.huashe.park.core.mapper.ProjectCoordinateInfoMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="ProjectCoordinateInfo" id="ProjectCoordinateInfoResult">
|
|
|
- <result property="id" column="id" />
|
|
|
- <result property="projectId" column="project_id" />
|
|
|
- <result property="strName" column="str_name" />
|
|
|
- <result property="da" column="da" />
|
|
|
- <result property="df" column="df" />
|
|
|
- <result property="dreferenceLatitude" column="dreference_latitude" />
|
|
|
- <result property="dcentralMeridian" column="dcentral_meridian" />
|
|
|
- <result property="dreferenceLongitude" column="dreference_longitude" />
|
|
|
- <result property="dprojectionHeight" column="dprojection_height" />
|
|
|
- <result property="projectionName" column="projection_name" />
|
|
|
- <result property="heightFittingParameter" column="height_fitting_parameter" />
|
|
|
- <result property="constructionP4" column="construction_p4" />
|
|
|
- <result property="createType" column="create_type" />
|
|
|
- <result property="projectionId" column="projection_id" />
|
|
|
- <result property="constructionP7" column="construction_p7" />
|
|
|
- <result property="projectType" column="project_type" />
|
|
|
- <result property="dtx" column="dtx" />
|
|
|
- <result property="dty" column="dty" />
|
|
|
- <result property="ntype" column="ntype" />
|
|
|
- <result property="dtk" column="dtk" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="projectId" column="project_id"/>
|
|
|
+ <result property="strName" column="str_name"/>
|
|
|
+ <result property="da" column="da"/>
|
|
|
+ <result property="df" column="df"/>
|
|
|
+ <result property="dreferenceLatitude" column="dreference_latitude"/>
|
|
|
+ <result property="dcentralMeridian" column="dcentral_meridian"/>
|
|
|
+ <result property="dreferenceLongitude" column="dreference_longitude"/>
|
|
|
+ <result property="dprojectionHeight" column="dprojection_height"/>
|
|
|
+ <result property="projectionName" column="projection_name"/>
|
|
|
+ <result property="heightFittingParameter" column="height_fitting_parameter"/>
|
|
|
+ <result property="constructionP4" column="construction_p4"/>
|
|
|
+ <result property="createType" column="create_type"/>
|
|
|
+ <result property="projectionId" column="projection_id"/>
|
|
|
+ <result property="constructionP7" column="construction_p7"/>
|
|
|
+ <result property="projectType" column="project_type"/>
|
|
|
+ <result property="dtx" column="dtx"/>
|
|
|
+ <result property="dty" column="dty"/>
|
|
|
+ <result property="ntype" column="ntype"/>
|
|
|
+ <result property="dtk" column="dtk"/>
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="createBy" column="create_by"/>
|
|
|
+ <result property="updateBy" column="update_by"/>
|
|
|
+ <result property="tenantId" column="tenant_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectProjectCoordinateInfoVo">
|
|
|
- select id, project_id, str_name, da, df, dreference_latitude, dcentral_meridian, dreference_longitude, dprojection_height, projection_name, height_fitting_parameter, construction_p4, create_type, projection_id, construction_p7, project_type, dtx, dty, ntype, dtk, update_time, create_time, create_by, update_by from cons_project_coordinate_info
|
|
|
+ select id,
|
|
|
+ project_id,
|
|
|
+ str_name,
|
|
|
+ da,
|
|
|
+ df,
|
|
|
+ dreference_latitude,
|
|
|
+ dcentral_meridian,
|
|
|
+ dreference_longitude,
|
|
|
+ dprojection_height,
|
|
|
+ projection_name,
|
|
|
+ height_fitting_parameter,
|
|
|
+ construction_p4,
|
|
|
+ create_type,
|
|
|
+ projection_id,
|
|
|
+ construction_p7,
|
|
|
+ project_type,
|
|
|
+ dtx,
|
|
|
+ dty,
|
|
|
+ ntype,
|
|
|
+ dtk,
|
|
|
+ update_time,
|
|
|
+ create_time,
|
|
|
+ create_by,
|
|
|
+ update_by,
|
|
|
+ tenant_id
|
|
|
+ from cons_project_coordinate_info
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectProjectCoordinateInfoList" parameterType="ProjectCoordinateInfo" resultMap="ProjectCoordinateInfoResult">
|
|
|
+ <select id="selectProjectCoordinateInfoList" parameterType="ProjectCoordinateInfo"
|
|
|
+ resultMap="ProjectCoordinateInfoResult">
|
|
|
<include refid="selectProjectCoordinateInfoVo"/>
|
|
|
- <where>
|
|
|
- </where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectProjectCoordinateInfoById" parameterType="Long" resultMap="ProjectCoordinateInfoResult">
|
|
|
<include refid="selectProjectCoordinateInfoVo"/>
|
|
|
where id = #{id}
|
|
@@ -73,7 +98,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
- </trim>
|
|
|
+ <if test="tenantId != null">tenant_id,</if>
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
<if test="projectId != null">#{projectId},</if>
|
|
@@ -99,7 +125,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
- </trim>
|
|
|
+ <if test="tenantId != null">#{tenantId},</if>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateProjectCoordinateInfo" parameterType="ProjectCoordinateInfo">
|
|
@@ -128,16 +155,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="tenantId != null">tenant_id = #{tenantId},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteProjectCoordinateInfoById" parameterType="Long">
|
|
|
- delete from cons_project_coordinate_info where id = #{id}
|
|
|
+ delete
|
|
|
+ from cons_project_coordinate_info
|
|
|
+ where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteProjectCoordinateInfoByIds" parameterType="String">
|
|
|
- delete from cons_project_coordinate_info where id in
|
|
|
+ delete from cons_project_coordinate_info where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|