| | |
| | | <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> |
| | |
| | | |
| | | <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> |
| | |
| | | </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"> |