南昌市物联网技防平台-后台
nnnjjj123
2021-01-28 830d1772dfae2ea5eaaf41ecb7cdbcb9efffc6c5
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="org.springblade.jfpt.dj.mapper.DjMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="djResultMap" type="org.springblade.jfpt.dj.entity.Dj">
        <id column="id" property="id"/>
        <result column="tnumber" property="tnumber"/>
        <result column="dj" property="dj"/>
    </resultMap>
 
 
    <select id="selectDjPage" resultMap="djResultMap">
        select * from sys_dj where is_deleted = 0
    </select>
 
 
    <select id="selectList" resultType="java.util.HashMap">
         select * from sys_dj
    </select>
 
    <select id="selectName" resultMap="djResultMap">
        select * from sys_dj where 1=1
        <if test="tnumber!=null and tnumber!=''">
            and tnumber=#{tnumbers}
        </if>
    </select>
 
</mapper>