Browse Source

修改bug 新闻类别标签查重

dev
qushutong 6 years ago
parent
commit
e0156b8b9e
  1. 3
      esua-epdc/epdc-module/epdc-news/epdc-news-server/src/main/resources/mapper/InformationDao.xml
  2. 2
      esua-epdc/epdc-module/epdc-news/epdc-news-server/src/main/resources/mapper/NewsCategoryDao.xml

3
esua-epdc/epdc-module/epdc-news/epdc-news-server/src/main/resources/mapper/InformationDao.xml

@ -21,6 +21,7 @@
WHERE
im.USER_ID = #{userId}
AND im.CREATED_TIME <= STR_TO_DATE( #{timestamp}, '%Y-%m-%d %H:%i:%s' )
AND im.DEL_FLAG= '0'
ORDER BY
im.READ_FLAG DESC, im.CREATED_TIME DESC
LIMIT #{pageIndex},#{pageSize}
@ -34,7 +35,7 @@
(SELECT count(*) FROM epdc_information ii WHERE ii.READ_FLAG = '0' AND ii.USER_ID = #{userId}) amount
FROM
epdc_information i
WHERE i.USER_ID = #{userId} and i.del_flag = '0'
WHERE i.USER_ID = #{userId} and i.DEL_FLAG = '0'
ORDER BY i.CREATED_TIME DESC
LIMIT 1
</select>

2
esua-epdc/epdc-module/epdc-news/epdc-news-server/src/main/resources/mapper/NewsCategoryDao.xml

@ -26,6 +26,7 @@
<if test="id!=null and id!=''">
AND id != #{id}
</if>
AND DEL_FLAG= '0'
</select>
<select id="selectNameCount" resultType="int">
SELECT
@ -37,6 +38,7 @@
<if test="id!=null and id!=''">
AND id != #{id}
</if>
AND DEL_FLAG= '0'
</select>
<select id="selectListCategory" resultType="Map">
SELECT ID as id,CATEGORY_NAME as name FROM esua_epdc_news.epdc_news_category where DEL_FLAG= '0'

Loading…
Cancel
Save