heheng
10 hours ago d45f521ab36d3c4759fc3ac3a6e0d6548c233567
expert-system/src/main/resources/mapper/system/SysExpertClassifyMapper.xml
@@ -2,4 +2,28 @@
<!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>