提交 06502685 作者: zhenjie 提交者: 余乾开

优化

上级 949eecec
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
where is_deleted = 0 where is_deleted = 0
and id = #{id} and id = #{id}
</select> </select>
<select id="count" resultType="java.lang.Integer" parameterType="com.mmc.csf.release.entity.IndustryNewsDO"> <select id="count" resultType="java.lang.Integer" parameterType="com.mmc.csf.release.entity.information.IndustryNewsDO">
select count(*) select count(*)
from industry_news from industry_news
<where> <where>
...@@ -177,14 +177,14 @@ ...@@ -177,14 +177,14 @@
</where> </where>
</select> </select>
<insert id="insert" parameterType="com.mmc.csf.release.entity.IndustryNewsDO" useGeneratedKeys="true" <insert id="insert" parameterType="com.mmc.csf.release.entity.information.IndustryNewsDO" useGeneratedKeys="true"
keyColumn="id"> keyColumn="id">
insert into industry_news(news_title, news_author, user_account_id, surface_img, news_contents, origin, insert into industry_news(news_title, news_author, user_account_id, surface_img, news_contents, origin,
create_time) create_time)
values (#{newsTitle}, #{newsAuthor}, #{userAccountId}, #{surfaceImg}, #{newsContents}, #{origin}, now()) values (#{newsTitle}, #{newsAuthor}, #{userAccountId}, #{surfaceImg}, #{newsContents}, #{origin}, now())
</insert> </insert>
<update id="update" parameterType="com.mmc.csf.release.entity.IndustryNewsDO"> <update id="update" parameterType="com.mmc.csf.release.entity.information.IndustryNewsDO">
update industry_news update industry_news
<set> <set>
<if test="newsTitle != null and newsTitle != ''"> <if test="newsTitle != null and newsTitle != ''">
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
</select> </select>
<select id="backgroundListNewsPage" parameterType="com.mmc.csf.infomation.qo.IndustryNewsQO" <select id="backgroundListNewsPage" parameterType="com.mmc.csf.infomation.qo.IndustryNewsQO"
resultType="com.mmc.csf.release.entity.IndustryNewsDO"> resultType="com.mmc.csf.release.entity.information.IndustryNewsDO">
select id, select id,
news_title, news_title,
news_author, news_author,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论