管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-24 224591306e6bdcc0051787e759ef0c082757a30a
src/main/resources/mapper/data/DomainMapper.xml
@@ -2,24 +2,22 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lf.server.mapper.data.DomainMapper">
    <select id="selectCount" resultType="java.lang.Integer">
        select count(a.*) from lf.sys_domain a
        where exists (select * from lf.sys_dict b where b.ns = #{ns}
        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}
        <if test="tab != null">
            and b.tab = #{tab}
        </if>
        )
        <if test="code != null">
            and a.dom_code like #{code}
        </if>
    </select>
    <select id="selectByPage" resultType="com.lf.server.entity.data.DomainEntity">
        select a.* from lf.sys_domain a
        where exists (select * from lf.sys_dict b where b.ns = #{ns}
        select a.* from lf.sys_domain a inner join lf.sys_dict b on a.dom_name = b.domain_na
        where b.ns = #{ns}
        <if test="tab != null">
            and b.tab = #{tab}
        </if>
        )
        <if test="code != null">
            and a.dom_code like #{code}
        </if>
@@ -35,6 +33,10 @@
        select * from lf.sys_domain where id = #{id}
    </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>
    <insert id="insert" parameterType="com.lf.server.entity.data.DomainEntity">
       insert into lf.sys_domain
       (dom_desc,dom_name,dom_code,code_desc,level,orderid,bsm,create_user,create_time,bak)