LAPTOP-BJJ3IV5R\SIWEI 9 сар өмнө
parent
commit
6e6816af49

+ 3 - 0
onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/fzss/HgxfxRwJgMapper.xml

@@ -26,6 +26,7 @@
 
     <select id="selectType" resultType="map">
         select
+        oncat(to_char(now() , 'YYYYMMDDHH24MISSMS'),(ROW_NUMBER() OVER (ORDER BY v1.type_column))) id,
         <if test="type_dict != null and type_dict != ''">
             v2.mc yslx_name,
         </if>
@@ -51,6 +52,7 @@
 
     <select id="selectTypeList" resultType="map">
         select
+        oncat(to_char(now() , 'YYYYMMDDHH24MISSMS'),(ROW_NUMBER() OVER (ORDER BY v1.yslx_name))) id,
         v1.yslx_name,v1.bsm,v1.rwbsm,v1.scxbsm,v1.mj,public.st_asewkt(ret_geom) geom
         from(
             select v0.yslx_name,v0.bsm bsm,v0.rwbsm rwbsm,v0.scxbsm scxbsm,mj::numeric mj,v0.geom ret_geom
@@ -63,6 +65,7 @@
 
     <select id="selectTypeScxList" resultType="map">
         select
+            oncat(to_char(now() , 'YYYYMMDDHH24MISSMS'),(ROW_NUMBER() OVER (ORDER BY v1.type_column))) id,
         v1.type_column as yslx,yslx_name ,v1.bsm,v1.rwbsm,v1.scxbsm,round((v1.mj*0.0015),2) mj, public.st_asewkt(ret_geom) geom
         from(
             select v0.bsm,v0.rwbsm,v0.scxbsm,v0.type_column,v0.yslx_name,