洪城义警-正式版后台
zengh
2022-05-26 4c19ddd36bdfb43b5ef4e8df3c9a98cd4d356d6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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.organ.mapper.OrganMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="organResultMap" type="org.springblade.modules.organ.entity.Organ">
        <id column="id" property="id"/>
        <result column="uid" property="uid"/>
        <result column="organization" property="organization"/>
        <result column="time" property="time"/>
        <result column="type" property="type"/>
    </resultMap>
 
 
    <select id="selectOrganPage" resultMap="organResultMap">
        select * from sys_organ where 1=1
        <if test="organ.uid != null and organ.uid != ''">
            and uid =#{organ.uid}
        </if>
    </select>
 
</mapper>