<?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="com.stylefeng.guns.modular.system.dao.TDriverTeamMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.stylefeng.guns.modular.system.model.TDriverTeam">
|
<id column="id" property="id" />
|
<result column="teamName" property="teamName" />
|
<result column="insertTime" property="insertTime" />
|
<result column="insertUser" property="insertUser" />
|
<result column="updateTime" property="updateTime" />
|
<result column="updateUser" property="updateUser" />
|
<result column="remark" property="remark" />
|
<result column="state" property="state" />
|
</resultMap>
|
|
<!-- 通用查询结果列 -->
|
<sql id="Base_Column_List">
|
id, teamName, insertTime, insertUser, updateTime, updateUser, remark,state
|
</sql>
|
|
<select id="findPage" parameterType="com.baomidou.mybatisplus.plugins.Page" resultType="map">
|
select
|
<include refid="Base_Column_List"/>
|
from t_driver_team
|
where state!=3
|
<if test="teamName != null and teamName != ''">
|
and teamName like CONCAT('%',#{teamName},'%')
|
</if>
|
order by id
|
</select>
|
|
<select id="findByTeamName" resultType="com.stylefeng.guns.modular.system.model.TDriverTeam">
|
select
|
<include refid="Base_Column_List" />
|
from t_driver_team
|
where teamName=#{teamName}
|
and state!=3
|
</select>
|
|
<select id="findAllList" resultType="com.stylefeng.guns.modular.system.model.TDriverTeam">
|
select
|
<include refid="Base_Column_List"/>
|
from t_driver_team
|
where state!=3
|
</select>
|
|
</mapper>
|