<?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>
|