Browse Source

指南列表修改

dev_shibei_match
zhaoqifeng 4 years ago
parent
commit
9ecc4f4e18
  1. 9
      epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/GuideDao.xml

9
epmet-module/gov-voice/gov-voice-server/src/main/resources/mapper/GuideDao.xml

@ -24,12 +24,12 @@
SELECT SELECT
g.ID AS "guideId", g.ID AS "guideId",
g.TITLE AS "title", g.TITLE AS "title",
gc.CATEGORY_NAME AS categoryName, gc.CATEGORY_NAME AS "categoryName",
g.CREATED_BY AS createdId, g.CREATED_BY AS "createdId",
g.UPDATED_TIME AS updatedTime, g.UPDATED_TIME AS "updatedTime"
FROM FROM
guide g guide g
INNER JOIN guide_category gc ON g.CATEGORY_ID = gc.ID AND gc.DEL_FLAG = 0 AND gc.CUSTOMER_ID = #{customerId} INNER JOIN guide_category gc ON g.CATEGORY_CODE = gc.CATEGORY_CODE AND gc.DEL_FLAG = 0 AND gc.CUSTOMER_ID = #{customerId}
WHERE g.DEL_FLAG = 0 WHERE g.DEL_FLAG = 0
AND g.CUSTOMER_ID = #{customerId} AND g.CUSTOMER_ID = #{customerId}
<if test='null != agencyId and "" != agencyId'> <if test='null != agencyId and "" != agencyId'>
@ -41,6 +41,7 @@
<if test='null != categoryId and "" != categoryId'> <if test='null != categoryId and "" != categoryId'>
AND g.CATEGORY_ID = #{categoryId} AND g.CATEGORY_ID = #{categoryId}
</if> </if>
ORDER BY g.CREATED_TIME DESC
</select> </select>
<select id="getGuideDetail" resultType="com.epmet.dto.result.GuideDetailResultDTO"> <select id="getGuideDetail" resultType="com.epmet.dto.result.GuideDetailResultDTO">
SELECT SELECT

Loading…
Cancel
Save