heheng
9 hours ago d45f521ab36d3c4759fc3ac3a6e0d6548c233567
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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.gkhy.system.mapper.SysExpertClassifyMapper">
 
    <resultMap id="BaseResultMap" type="com.gkhy.system.domain.SysExpertClassify">
        <id column="id" jdbcType="BIGINT" property="id" />
        <result column="classify_name" jdbcType="VARCHAR" property="classifyName" />
        <result column="parent_id" jdbcType="BIGINT" property="parentId" />
        <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
        <result column="version" jdbcType="INTEGER" property="version" />
        <result column="dept_id" jdbcType="BIGINT" property="deptId" />
        <result column="create_by" jdbcType="VARCHAR" property="createBy" />
        <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
        <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
        <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
        <result column="remark" jdbcType="VARCHAR" property="remark" />
        <result column="dept_name" jdbcType="VARCHAR" property="deptName" />
    </resultMap>
 
 
    <select id="classifyList" parameterType="com.gkhy.system.domain.SysExpertClassify"  resultMap="BaseResultMap">
        select a.*,b.dept_name from sys_expert_classify a
            left join sys_dept b on a.dept_id = b.dept_id
        where a.del_flag = 0
        <if test="classifyName != null and classifyName != ''">
            and a.classify_name like concat('%',#{classifyName},'%')
        </if>
    </select>
</mapper>