|
@@ -28,6 +28,7 @@
|
|
<result column="attribute2_" property="attribute2" />
|
|
<result column="attribute2_" property="attribute2" />
|
|
<result column="show_time_" property="showTime" />
|
|
<result column="show_time_" property="showTime" />
|
|
<result column="update_by_" property="updateBy" />
|
|
<result column="update_by_" property="updateBy" />
|
|
|
|
+ <result column="link_type_" property="linkType" />
|
|
<result column="create_by_" property="createBy" />
|
|
<result column="create_by_" property="createBy" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
@@ -46,7 +47,7 @@
|
|
and sni.sub_type_ = #{subType}
|
|
and sni.sub_type_ = #{subType}
|
|
</if>
|
|
</if>
|
|
<if test="status != null">
|
|
<if test="status != null">
|
|
- and sni.status_ = #{status, typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler}
|
|
|
|
|
|
+ and sni.status_ = #{status}
|
|
</if>
|
|
</if>
|
|
<if test="title != null">
|
|
<if test="title != null">
|
|
and (sni.title_ like '%' #{title} '%'
|
|
and (sni.title_ like '%' #{title} '%'
|
|
@@ -95,8 +96,8 @@
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
<!-- 向数据库增加一条记录 -->
|
|
<insert id="insert" parameterType="com.yonge.cooleshow.cms.dal.entity.SysNewsInformation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
<insert id="insert" parameterType="com.yonge.cooleshow.cms.dal.entity.SysNewsInformation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
- INSERT INTO sys_news_information (id_,title_,content_,cover_image_,video_cover_image_,type_,online_time_,offline_time_,sub_type_,status_,create_time_,update_time_,link_url_,href_target_,order_,del_flag_,memo_,attribute1_,attribute2_,subject_id_list_,create_by_,update_by_,show_time_)
|
|
|
|
- VALUES(#{id},#{title},#{content},#{coverImage},#{videoCoverImage},#{type},#{onlineTime},#{offlineTime},#{subType},#{status, typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler},now(),now(),#{linkUrl},#{hrefTarget},#{order},0,#{memo},#{attribute1},#{attribute2},#{subjectIdList},#{createBy},#{updateBy},#{showTime})
|
|
|
|
|
|
+ INSERT INTO sys_news_information (id_,title_,content_,cover_image_,video_cover_image_,type_,online_time_,offline_time_,sub_type_,status_,create_time_,update_time_,link_url_,href_target_,order_,del_flag_,memo_,attribute1_,attribute2_,subject_id_list_,create_by_,update_by_,show_time_,link_type_)
|
|
|
|
+ VALUES(#{id},#{title},#{content},#{coverImage},#{videoCoverImage},#{type},#{onlineTime},#{offlineTime},#{subType},#{status, typeHandler=com.yonge.toolset.mybatis.dal.CustomEnumTypeHandler},now(),now(),#{linkUrl},#{hrefTarget},#{order},0,#{memo},#{attribute1},#{attribute2},#{subjectIdList},#{createBy},#{updateBy},#{showTime},#{linkType})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -156,6 +157,9 @@
|
|
<if test="updateBy != null">
|
|
<if test="updateBy != null">
|
|
update_by_ = #{updateBy},
|
|
update_by_ = #{updateBy},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="linkType != null">
|
|
|
|
+ link_type_ = #{linkType},
|
|
|
|
+ </if>
|
|
<if test="showTime != null">
|
|
<if test="showTime != null">
|
|
show_time_ = #{showTime}
|
|
show_time_ = #{showTime}
|
|
</if>
|
|
</if>
|
|
@@ -180,7 +184,12 @@
|
|
order by sni.status_ desc,sni.order_,sni.update_time_ desc
|
|
order by sni.status_ desc,sni.order_,sni.update_time_ desc
|
|
<include refid="global.limit"/>
|
|
<include refid="global.limit"/>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ <select id="selectAppVersionInfo" resultType="java.lang.String">
|
|
|
|
+
|
|
|
|
+ select avi.status_ from app_version_info avi where avi.platform_ = #{platform} and avi.version_ = #{version}
|
|
|
|
+
|
|
|
|
+ </select>
|
|
<!-- 查询当前表的总记录数 -->
|
|
<!-- 查询当前表的总记录数 -->
|
|
<select id="selectPageCount" resultType="int">
|
|
<select id="selectPageCount" resultType="int">
|
|
SELECT COUNT(sni.id_) FROM sys_news_information sni
|
|
SELECT COUNT(sni.id_) FROM sys_news_information sni
|