智慧保安后台管理-外网-验收版本
tangzy
2021-12-06 cc057177b2fb17aee9a173a6adbabdc578fd74c7
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
<?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="org.springblade.modules.talk.mapper.TalkMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="talkResultMap" type="org.springblade.modules.talk.entity.Talk">
        <id column="id" property="id"/>
        <result column="title" property="title"/>
        <result column="real_name" property="realName"/>
        <result column="talkcontent" property="talkcontent"/>
        <result column="talktime" property="talktime"/>
        <result column="conclusion" property="conclusion"/>
        <result column="evaluate" property="evaluate"/>
        <result column="deptid" property="deptid"/>
        <result column="imgurl" property="imgurl"/>
    </resultMap>
 
 
    <select id="selectTalkPage" resultMap="talkResultMap">
        select * from sys_talk where 1=1
        <if test="talk.deptid!=null and alk.deptid!='' and alk.deptid!='1123598813738675201'">
            deptid=#{talk.deptid}
        </if>
    </select>
 
</mapper>