From 224591306e6bdcc0051787e759ef0c082757a30a Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 24 十一月 2022 11:32:39 +0800 Subject: [PATCH] 1 --- src/main/resources/mapper/data/DomainMapper.xml | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/resources/mapper/data/DomainMapper.xml b/src/main/resources/mapper/data/DomainMapper.xml index dabd06a..ec20698 100644 --- a/src/main/resources/mapper/data/DomainMapper.xml +++ b/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) -- Gitblit v1.9.3