|
|
@@ -18,10 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="description" column="description" />
|
|
|
<result property="isTop" column="isTop" />
|
|
|
<result property="location" column="location" />
|
|
|
+ <result property="url" column="url" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBWwwNewsVo">
|
|
|
- select id, type, title, f, sendDate, content, createTime, clicked, status,keywords,description,isTop,location from b_www_news
|
|
|
+ select id, type, title, f, sendDate, content, createTime, clicked, status,keywords,description,isTop,location,url from b_www_news
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectBWwwNewsList" parameterType="BWwwNews" resultMap="BWwwNewsResult">
|
|
|
@@ -67,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="clicked != null">clicked,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="location != null and location != '' ">location,</if>
|
|
|
+ <if test="url != null and url != '' ">url,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="type != null">#{type},</if>
|
|
|
@@ -78,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="clicked != null">#{clicked},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="location != null and location != '' ">#{location},</if>
|
|
|
+ <if test="url != null and url != '' ">#{url},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -94,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="isTop != null">isTop = #{isTop},</if>
|
|
|
<if test="location != null and location != ''">location = #{location},</if>
|
|
|
+ <if test="url != null and url != ''">url = #{url},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|