tangzy
2021-07-14 5fb38e71cc5ab8eee8e7f489c4476d59104f07df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.punish.mapper.PunishMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="punishResultMap" type="org.springblade.modules.punish.entity.Punish">
        <id column="id" property="id"/>
        <result column="deptid" property="deptid"/>
        <result column="punishtype" property="punishtype"/>
        <result column="punishreason" property="punishreason"/>
        <result column="punishresult" property="punishresult"/>
        <result column="punishtime" property="punishtime"/>
    </resultMap>
 
 
    <select id="selectPunishPage" resultMap="punishResultMap">
        select * from sys_punish
    </select>
 
</mapper>