洪城义警-正式版后台
zengh
2022-09-14 df878618a8882fc057a5863738df43e1fcd878ea
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
<?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.team.mapper.TeamMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="noticeResultMap" type="org.springblade.modules.team.entity.Team">
        <result column="id" property="id"/>
 
    </resultMap>
 
    <select id="topList" resultMap="noticeResultMap">
 
    </select>
 
    <select id="selectTeamPage" resultType="org.springblade.modules.team.vo.TeamVO">
        select team.*,user.real_name from sys_team team
        LEFT JOIN blade_user user on team.create_user = user.id
        where 1 = 1
        <if test="team.name !='' and team.name !=null">
            and team.name like CONCAT("%",#{team.name},"%")
        </if>
        <if test="team.police !='' and team.police !=null">
            and team.police = #{team.police}
        </if>
        ORDER BY is_brand DESC,number DESC
    </select>
</mapper>