1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3+ <mapper namespace =" com.fangxuele.tool.push.dao.TMsgMaSubscribeMapper" >
4+ <resultMap id =" BaseResultMap" type =" com.fangxuele.tool.push.domain.TMsgMaSubscribe" >
5+ <id column =" id" jdbcType =" INTEGER" property =" id" />
6+ <result column =" msg_type" jdbcType =" INTEGER" property =" msgType" />
7+ <result column =" msg_name" jdbcType =" VARCHAR" property =" msgName" />
8+ <result column =" template_id" jdbcType =" VARCHAR" property =" templateId" />
9+ <result column =" page" jdbcType =" VARCHAR" property =" page" />
10+ <result column =" create_time" jdbcType =" VARCHAR" property =" createTime" />
11+ <result column =" modified_time" jdbcType =" VARCHAR" property =" modifiedTime" />
12+ </resultMap >
13+ <sql id =" Base_Column_List" >
14+ id, msg_type, msg_name, template_id, page, create_time, modified_time
15+ </sql >
16+ <select id =" selectByPrimaryKey" parameterType =" java.lang.Integer" resultMap =" BaseResultMap" >
17+ select
18+ <include refid =" Base_Column_List" />
19+ from t_msg_ma_subscribe
20+ where id = #{id,jdbcType=INTEGER}
21+ </select >
22+ <delete id =" deleteByPrimaryKey" parameterType =" java.lang.Integer" >
23+ delete from t_msg_ma_subscribe
24+ where id = #{id,jdbcType=INTEGER}
25+ </delete >
26+ <insert id =" insert" parameterType =" com.fangxuele.tool.push.domain.TMsgMaSubscribe" >
27+ insert into t_msg_ma_subscribe (id, msg_type, msg_name,
28+ template_id, page, create_time,
29+ modified_time)
30+ values (#{id,jdbcType=INTEGER}, #{msgType,jdbcType=INTEGER}, #{msgName,jdbcType=VARCHAR},
31+ #{templateId,jdbcType=VARCHAR}, #{page,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR},
32+ #{modifiedTime,jdbcType=VARCHAR})
33+ </insert >
34+ <insert id =" insertSelective" parameterType =" com.fangxuele.tool.push.domain.TMsgMaSubscribe" >
35+ insert into t_msg_ma_subscribe
36+ <trim prefix =" (" suffix =" )" suffixOverrides =" ," >
37+ <if test =" id != null" >
38+ id,
39+ </if >
40+ <if test =" msgType != null" >
41+ msg_type,
42+ </if >
43+ <if test =" msgName != null" >
44+ msg_name,
45+ </if >
46+ <if test =" templateId != null" >
47+ template_id,
48+ </if >
49+ <if test =" page != null" >
50+ page,
51+ </if >
52+ <if test =" createTime != null" >
53+ create_time,
54+ </if >
55+ <if test =" modifiedTime != null" >
56+ modified_time,
57+ </if >
58+ </trim >
59+ <trim prefix =" values (" suffix =" )" suffixOverrides =" ," >
60+ <if test =" id != null" >
61+ #{id,jdbcType=INTEGER},
62+ </if >
63+ <if test =" msgType != null" >
64+ #{msgType,jdbcType=INTEGER},
65+ </if >
66+ <if test =" msgName != null" >
67+ #{msgName,jdbcType=VARCHAR},
68+ </if >
69+ <if test =" templateId != null" >
70+ #{templateId,jdbcType=VARCHAR},
71+ </if >
72+ <if test =" page != null" >
73+ #{page,jdbcType=VARCHAR},
74+ </if >
75+ <if test =" createTime != null" >
76+ #{createTime,jdbcType=VARCHAR},
77+ </if >
78+ <if test =" modifiedTime != null" >
79+ #{modifiedTime,jdbcType=VARCHAR},
80+ </if >
81+ </trim >
82+ </insert >
83+ <update id =" updateByPrimaryKeySelective" parameterType =" com.fangxuele.tool.push.domain.TMsgMaSubscribe" >
84+ update t_msg_ma_subscribe
85+ <set >
86+ <if test =" msgType != null" >
87+ msg_type = #{msgType,jdbcType=INTEGER},
88+ </if >
89+ <if test =" msgName != null" >
90+ msg_name = #{msgName,jdbcType=VARCHAR},
91+ </if >
92+ <if test =" templateId != null" >
93+ template_id = #{templateId,jdbcType=VARCHAR},
94+ </if >
95+ <if test =" page != null" >
96+ page = #{page,jdbcType=VARCHAR},
97+ </if >
98+ <if test =" createTime != null" >
99+ create_time = #{createTime,jdbcType=VARCHAR},
100+ </if >
101+ <if test =" modifiedTime != null" >
102+ modified_time = #{modifiedTime,jdbcType=VARCHAR},
103+ </if >
104+ </set >
105+ where id = #{id,jdbcType=INTEGER}
106+ </update >
107+ <update id =" updateByPrimaryKey" parameterType =" com.fangxuele.tool.push.domain.TMsgMaSubscribe" >
108+ update t_msg_ma_subscribe
109+ set msg_type = #{msgType,jdbcType=INTEGER},
110+ msg_name = #{msgName,jdbcType=VARCHAR},
111+ template_id = #{templateId,jdbcType=VARCHAR},
112+ page = #{page,jdbcType=VARCHAR},
113+ create_time = #{createTime,jdbcType=VARCHAR},
114+ modified_time = #{modifiedTime,jdbcType=VARCHAR}
115+ where id = #{id,jdbcType=INTEGER}
116+ </update >
117+ </mapper >
0 commit comments