...
|
...
|
@@ -6,6 +6,7 @@ |
|
|
<result column="content" property="content" jdbcType="VARCHAR" />
|
|
|
<result column="image" property="image" jdbcType="VARCHAR" />
|
|
|
<result column="url" property="url" jdbcType="VARCHAR" />
|
|
|
<result column="share_flag" property="shareFlag" jdbcType="INTEGER" />
|
|
|
<result column="priority" property="priority" jdbcType="INTEGER" />
|
|
|
<result column="start_time" property="startTime" jdbcType="INTEGER" />
|
|
|
<result column="end_time" property="endTime" jdbcType="INTEGER" />
|
...
|
...
|
@@ -13,7 +14,7 @@ |
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, content, image, url, priority, start_time, end_time,
|
|
|
id, content, image, url, share_flag,priority, start_time, end_time,
|
|
|
create_time, update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
...
|
...
|
@@ -27,9 +28,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, priority, start_time, end_time,
|
|
|
insert into union_share_message (content, image, url, share_flag,priority, start_time, end_time,
|
|
|
create_time, update_time)
|
|
|
values (#{content,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{priority,jdbcType=INTEGER},
|
|
|
values (#{content,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{shareFlag,jdbcType=INTEGER}, #{priority,jdbcType=INTEGER},
|
|
|
#{startTime,jdbcType=INTEGER}, #{endTime,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER},
|
|
|
#{updateTime,jdbcType=INTEGER}
|
|
|
)
|
...
|
...
|
@@ -47,6 +48,9 @@ |
|
|
<if test="url != null" >
|
|
|
url = #{url,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="shareFlag != null" >
|
|
|
share_flag = #{shareFlag,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="priority != null" >
|
|
|
priority = #{priority,jdbcType=INTEGER},
|
|
|
</if>
|
...
|
...
|
|