<?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>
|