mitao
2024-07-08 022a7ff7abf82cd2546e18071ade5228b4e2339f
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
<?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.sinata.modular.system.dao.TNoticeMessageMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.sinata.modular.system.model.TNoticeMessage">
        <id column="id" property="id"/>
        <result column="type" property="type"/>
        <result column="other_id" property="otherId"/>
        <result column="user_type" property="userType"/>
        <result column="order_type" property="orderType"/>
        <result column="user_id" property="userId"/>
        <result column="content" property="content"/>
        <result column="show_img" property="showImg"/>
        <result column="is_read" property="isRead"/>
        <result column="is_delete" property="isDelete"/>
        <result column="create_time" property="createTime"/>
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, type, other_id, user_type, order_type, user_id, content, show_img, is_read, is_delete, create_time
    </sql>
 
    <insert id="insertList">
        INSERT INTO `t_notice_message`
        ( `type`, `other_id`, `user_type`, `order_type`, `user_id`, `content`, `show_img`, `is_read`, `is_delete`,
        `create_time`)
        VALUES
        <foreach collection="list" item="item" separator=",">
            (#{item.type}, #{item.otherId}, #{item.userType}, #{item.orderType}, #{item.userId}, #{item.content},
            #{item.showImg}, #{item.isRead}, #{item.isDelete}, #{item.createTime})
        </foreach>
 
    </insert>
</mapper>