...
|
...
|
@@ -6,6 +6,8 @@ |
|
|
<result column="content" property="content" jdbcType="VARCHAR" />
|
|
|
<result column="image" property="image" jdbcType="VARCHAR" />
|
|
|
<result column="url" property="url" jdbcType="VARCHAR" />
|
|
|
<result column="type" property="type" jdbcType="INTEGER" />
|
|
|
<result column="some_key" property="someKey" jdbcType="INTEGER" />
|
|
|
<result column="share_flag" property="shareFlag" jdbcType="INTEGER" />
|
|
|
<result column="priority" property="priority" jdbcType="INTEGER" />
|
|
|
<result column="start_time" property="startTime" jdbcType="INTEGER" />
|
...
|
...
|
@@ -14,7 +16,7 @@ |
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, content, image, url, share_flag,priority, start_time, end_time,
|
|
|
id, content, image, url, type,some_key,share_flag,priority, start_time, end_time,
|
|
|
create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
...
|
...
|
@@ -28,9 +30,9 @@ |
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.yoho.unions.dal.model.UnionShareMessage" >
|
|
|
insert into union_share_message (content, image, url, share_flag,priority, start_time, end_time,
|
|
|
insert into union_share_message (content, image, url, type,some_key,share_flag,priority, start_time, end_time,
|
|
|
create_time, update_time)
|
|
|
values (#{content,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{shareFlag,jdbcType=INTEGER}, #{priority,jdbcType=INTEGER},
|
|
|
values (#{content,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{someKey,jdbcType=INTEGER}, #{shareFlag,jdbcType=INTEGER}, #{priority,jdbcType=INTEGER},
|
|
|
#{startTime,jdbcType=INTEGER}, #{endTime,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER},
|
|
|
#{updateTime,jdbcType=INTEGER}
|
|
|
)
|
...
|
...
|
@@ -48,6 +50,12 @@ |
|
|
<if test="url != null" >
|
|
|
url = #{url,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="type != null" >
|
|
|
type = #{type,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="someKey != null" >
|
|
|
some_key = #{someKey,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="shareFlag != null" >
|
|
|
share_flag = #{shareFlag,jdbcType=INTEGER},
|
|
|
</if>
|
...
|
...
|
|