“djh”
2025-12-03 cac939bb4469b181844f0537fc6866fc23da9054
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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.exam.system.mapper.InternalKnowledgeMapper">
    <select id="getInternalKnowledge" parameterType="com.gkhy.exam.system.domain.InternalKnowledge" resultType="com.gkhy.exam.system.domain.InternalKnowledge">
        select * from internal_knowledge where del_flag=0
        <if test="companyId!=null ">
            and company_id = #{companyId}
        </if>
        <if test="name!=null ">
            and name like concat('%',#{name},'%')
        </if>
        <if test="knowledgeType!=null ">
            and knowledge_type = #{knowledgeType}
        </if>
        ORDER BY create_time desc
    </select>
</mapper>