| 1234567891011121314151617181920212223 |
- <?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.jzg.organization.mapper.SysDeptMapper">
- <select id="getMaxId" resultType="java.lang.String">
- SELECT IFNULL(MAX(id), 0) maxid
- FROM `sys_dept`
- WHERE parent_id = #{deptId}
- <if test='comLevel != null and comLevel != ""'>
- and comlevel = #{comlevel}
- </if>
- </select>
- <select id="selectDeptList" resultType="com.jzg.organization.entity.po.SysDept">
- select
- <if test="ew.getSqlSelect != null">
- ${ew.getSqlSelect}
- </if>
- <if test="ew.getSqlSelect == null">
- *
- </if>
- from sys_dept ${ew.getCustomSqlSegment}
- </select>
- </mapper>
|