智慧保安后台管理-外网-验收版本
Administrator
2021-12-02 ec1cb265b0d2d98172fd7a58512218959eae8359
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.coinspect.mapper.CoinspectMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="coinspectResultMap" type="org.springblade.modules.coinspect.entity.Coinspect">
        <id column="id" property="id"/>
        <result column="name" property="name"/>
        <result column="sName" property="sname"/>
        <result column="deptName" property="deptname"/>
        <result column="reviewTime" property="reviewtime"/>
        <result column="insid" property="insid"/>
        <result column="results" property="results"/>
        <result column="url" property="url"/>
    </resultMap>
 
 
    <select id="selectCoinspectPage" resultMap="coinspectResultMap">
        select * from sys_coinspect
        where 1=1
        <if test="coinspect.sname!=null and coinspect.sname != ''">
            and sName like concat('%', #{coinspect.sname},'%')
        </if>
    </select>
 
</mapper>