|
@@ -61,7 +61,7 @@
|
|
|
<result column="survey_length" jdbcType="VARCHAR" property="surveyLength"/>
|
|
|
</resultMap>
|
|
|
|
|
|
- <select id="findAddPointByProjId" fetchSize="3000" resultMap="Point">
|
|
|
+ <select id="findAddUpdatePointByProjId" fetchSize="3000" resultMap="Point">
|
|
|
select la.code, la.job_id, la.layer, la.kind, la.gis, la.apply, la.source, la.elevation, la.no,
|
|
|
case when lt.name is null then
|
|
|
(select td.name from k2_type_define td where td.key = la.layer and td.kind = 7)
|
|
@@ -72,10 +72,10 @@
|
|
|
left join k3_gis_metadata_layer_template lt on pit.nature = lt.nature and la.layer = lt.key
|
|
|
where pit.uid = #{projId,jdbcType=VARCHAR}
|
|
|
and jo.disused = 0
|
|
|
- and la.apply = 'add' and la.kind = 'point'
|
|
|
+ and (la.apply = 'add' or la.apply = 'update') and la.kind = 'point'
|
|
|
</select>
|
|
|
|
|
|
- <select id="findAddLineByProjId" fetchSize="3000" resultMap="Line">
|
|
|
+ <select id="findAddUpdateLineByProjId" fetchSize="3000" resultMap="Line">
|
|
|
select la.code, la.job_id, la.layer, la.kind, la.apply, la.source, la.up_node, la.down_node,
|
|
|
un.no as up_no, dn.no as down_no,
|
|
|
case when un.code is not null and dn.code is not null then concat('[', un.gis, ',', dn.gis, ']') else la.gis end
|
|
@@ -97,10 +97,10 @@
|
|
|
left join k3_gis_metadata_layer_template lt on pit.nature = lt.nature and la.layer = lt.key
|
|
|
where pit.uid = #{projId,jdbcType=VARCHAR}
|
|
|
and jo.disused = 0
|
|
|
- and la.apply = 'add' and la.kind = 'line';
|
|
|
+ and (la.apply = 'add' or la.apply = 'update') and la.kind = 'line';
|
|
|
</select>
|
|
|
|
|
|
- <select id="findAddPointByJobId" fetchSize="3000" resultMap="Point">
|
|
|
+ <select id="findAddUpdatePointByJobId" fetchSize="3000" resultMap="Point">
|
|
|
select la.code, la.job_id, la.layer, la.kind, la.gis, la.apply, la.source, la.elevation, la.no,
|
|
|
case when lt.name is null then
|
|
|
(select td.name from k2_type_define td where td.key = la.layer and td.kind = 7)
|
|
@@ -110,10 +110,10 @@
|
|
|
join k3_gis_survey_project_info pit on jo.proj_id = pit.uid
|
|
|
left join k3_gis_metadata_layer_template lt on pit.nature = lt.nature and la.layer = lt.key
|
|
|
where jo.uid = #{jobId,jdbcType=VARCHAR}
|
|
|
- and la.apply = 'add' and la.kind = 'point'
|
|
|
+ and (la.apply = 'add' or la.apply = 'update') and la.kind = 'point'
|
|
|
</select>
|
|
|
|
|
|
- <select id="findAddLineByJobId" fetchSize="3000" resultMap="Line">
|
|
|
+ <select id="findAddUpdateLineByJobId" fetchSize="3000" resultMap="Line">
|
|
|
select la.code, la.job_id, la.layer, la.kind, la.apply, la.source, la.up_node, la.down_node,
|
|
|
un.no as up_no, dn.no as down_no,
|
|
|
case when un.code is not null and dn.code is not null then concat('[', un.gis, ',', dn.gis, ']') else la.gis end
|
|
@@ -134,7 +134,7 @@
|
|
|
'survey_length'
|
|
|
left join k3_gis_metadata_layer_template lt on pit.nature = lt.nature and la.layer = lt.key
|
|
|
where jo.uid = #{jobId,jdbcType=VARCHAR}
|
|
|
- and la.apply = 'add' and la.kind = 'line';
|
|
|
+ and (la.apply = 'add' or la.apply = 'update') and la.kind = 'line';
|
|
|
</select>
|
|
|
|
|
|
<select id="findAllByJobIdAndKind" fetchSize="3000" resultMap="BaseResultMap">
|