管道基础大数据平台系统开发-【后端】-Server
13693261870
2023-09-18 bf6109a746afe7d184f0d14241a5b44d4f95a1bc
src/main/resources/mapper/data/MetaMapper.xml
@@ -205,6 +205,12 @@
         order by depcode;
    </select>
    <select id="selectCountByPath" resultType="java.lang.Integer">
        with a as (select count(*) from lf.sys_meta where path = #{path}),
             b as (select count(*) from lf.sys_attach where path = #{path})
        select a.count + b.count "count" from a, b;
    </select>
    <insert id="insert" parameterType="com.lf.server.entity.data.MetaEntity">
        <selectKey resultType="java.lang.Integer" order="AFTER" keyProperty="id">
            select currval('lf.sys_meta_id_seq'::regclass) as id