liujie
2023-07-25 9b1188a004df6585d1836e85e22ee24a91b5fd62
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
<?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.dsh.course.mapper.TSystemNoticeMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.dsh.guns.modular.system.model.TSystemNotice">
        <id column="id" property="id" />
        <result column="type" property="type" />
        <result column="userType" property="userType" />
        <result column="noticesId" property="noticesId" />
        <result column="content" property="content" />
        <result column="userId" property="userId" />
        <result column="insertTime" property="insertTime" />
        <result column="read" property="read" />
        <result column="language" property="language" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, type, userType, noticesId, content, userId, insertTime, read
    </sql>
    <insert id="save1">
        insert into t_system_notice(id,
type,
noticeType,
userType,
noticesId,
content,
userId,
insertTime,
isRead,language
) value (null ,#{notice.type},1,#{notice.userType},#{notice.noticesId},#{notice.content},#{notice.userId},now(),#{notice.read},#{notice.language})
    </insert>
 
</mapper>