puzhibing
2023-08-16 d5b3e5a413bcfccba294793ee093722f31b2448a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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.DriverPunishMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.stylefeng.guns.modular.system.model.DriverPunish">
        <id column="id" property="id"/>
        <result column="driverId" property="driverId"/>
        <result column="punishTime" property="punishTime"/>
        <result column="punishReason" property="punishReason"/>
        <result column="punishReault" property="punishReault"/>
    </resultMap>
 
 
    <select id="queryAllPunish" resultType="DriverPunish">
        select
         id as id,
         driverId as driverId,
         punishTime as punishTime,
         punishReason as punishReason,
         punishReault as punishReault
         from t_driver_punish where driverId = #{driverId}
    </select>
</mapper>