管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-07 1eba84a2b8bd0604a9650c6a8cadea3738646e54
1
已修改1个文件
20 ■■■■ 文件已修改
src/main/resources/mapper/data/DomainMapper.xml 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/data/DomainMapper.xml
@@ -3,7 +3,10 @@
<mapper namespace="com.lf.server.mapper.data.DomainMapper">
    <select id="selectCount" resultType="java.lang.Integer">
        select count(a.*) from lf.sys_domain a inner join lf.sys_dict b on a.dom_name = b.domain_na
        where b.ns = #{ns}
        where b.status = 0
        <if test="ns != null">
            and b.ns = #{ns}
        </if>
        <if test="tab != null">
            and b.tab = #{tab}
        </if>
@@ -14,7 +17,10 @@
    <select id="selectByPage" resultType="com.lf.server.entity.data.DomainEntity">
        select a.* from lf.sys_domain a inner join lf.sys_dict b on a.dom_name = b.domain_na
        where b.ns = #{ns}
        where b.status = 0
        <if test="ns != null">
            and b.ns = #{ns}
        </if>
        <if test="tab != null">
            and b.tab = #{tab}
        </if>
@@ -34,11 +40,17 @@
    </select>
    <select id="selectDomainTabs" resultType="com.lf.server.entity.ctrl.TabEntity">
        select distinct ns,tab,tab_desc,tableType from lf.sys_dict where domain_na is not null order by ns,tab
        select distinct ns,tab,tab_desc,tableType
        from lf.sys_dict
        where status = 0 and domain_na is not null
        order by ns,tab
    </select>
    <select id="selectDomainNames" resultType="java.lang.String">
        select domain_na from lf.sys_dict where ns = #{ns} and tab = #{tab} and domain_na is not null group by domain_na
        select domain_na
        from lf.sys_dict
        where ns = #{ns} and tab = #{tab} and status = 0 and domain_na is not null
        group by domain_na
    </select>
    <insert id="insert" parameterType="com.lf.server.entity.data.DomainEntity">