Pu Zhibing
2025-04-22 279d3bbbe15d4839cba8dfb48053c75b504aacc3
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?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>