Sfoglia il codice sorgente

生命周期gom返回

chenendian 1 settimana fa
parent
commit
93f9c60e0f

+ 6 - 1
siwei-modules/siwei-apply/src/main/resources/mapper/ProjectWorkflowMapper.xml

@@ -70,7 +70,12 @@
                node_id         as nodeId,
                workflow_id     as workflowId,
                node_table_name as nodeTableName,
-               created_at      as createdAt
+               created_at      as createdAt,
+               (SELECT array_to_string(array_agg(ST_AsEWKT(gd.geom)), '|')
+                FROM t_node_land nl
+                         LEFT JOIN t_geom_db_details gd ON nl.geom_db_id = gd.upload_id
+                WHERE nl.node_id = node_id
+                  AND gd.geom IS NOT NULL) as geom
         FROM t_project_workflow
         WHERE project_id = #{projectId}
         ORDER BY created_at