| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!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"> |
| | | <mapper namespace="com.terra.system.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.status = 0 |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectByPage" resultType="com.lf.server.entity.data.DomainEntity"> |
| | | <select id="selectByPage" resultType="com.terra.system.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.status = 0 |
| | | <if test="ns != null"> |
| | |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectAll" resultType="com.lf.server.entity.data.DomainEntity"> |
| | | <select id="selectAll" resultType="com.terra.system.entity.data.DomainEntity"> |
| | | select * from lf.sys_domain order by dom_name,dom_code |
| | | </select> |
| | | |
| | | <select id="selectById" resultType="com.lf.server.entity.data.DomainEntity"> |
| | | <select id="selectById" resultType="com.terra.system.entity.data.DomainEntity"> |
| | | select * from lf.sys_domain where id = #{id} |
| | | </select> |
| | | |
| | |
| | | group by domain_na |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.lf.server.entity.data.DomainEntity"> |
| | | <insert id="insert" parameterType="com.terra.system.entity.data.DomainEntity"> |
| | | insert into lf.sys_domain |
| | | (dom_desc,dom_name,dom_code,code_desc,level,orderid,bsm,create_user,create_time,bak) |
| | | values |