|
|
@@ -900,21 +900,5 @@
|
|
|
</trim>
|
|
|
</select>
|
|
|
|
|
|
- <select id="getNodeSourceIdByTable" resultType="string" >
|
|
|
- SELECT source_id FROM ${tableName}
|
|
|
- WHERE id = #{nodeId}
|
|
|
- </select>
|
|
|
-
|
|
|
-
|
|
|
- <!-- 1.查询项目代码存在的所有项目,并且工程建设环节无新增数据的条数。2.查询当前环节已经新增数据但是未上链并且未同步过的数据(source_id-同步数据id)) -->
|
|
|
- <select id="getZrzysiteProjectList" resultMap="projectMap">
|
|
|
- SELECT p.id,p.name,p.code ,p.project_type, '1' as creator_id
|
|
|
- from "public"."t_project" p LEFT JOIN "public"."t_project_workflow" w on p.id = w.project_id and w.node_table_name=#{tableName}
|
|
|
- where LENGTH(TRIM(p.code))>0 and w.id is null
|
|
|
- union
|
|
|
- SELECT DISTINCT p.id,p.name,p.code ,p.project_type ,'2' as creator_id
|
|
|
- from "public"."t_project" p LEFT JOIN "public".${tableName} node on p.id=node.project_id
|
|
|
- where LENGTH(TRIM(p.code))>0 and node.has_onchain=false and node.source_id is null
|
|
|
- </select>
|
|
|
|
|
|
</mapper>
|