Browse Source

大屏类型分析SQL修改

feature/dangjian
wanggongfeng 3 years ago
parent
commit
19d98fd1ae
  1. 1
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

1
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

@ -2373,6 +2373,7 @@
and item.EVENT_ID is null and item.EVENT_ID is null
and item.ISSUE_ID is null and item.ISSUE_ID is null
and SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他'
and SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',2) != '城市综合'
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
AND DATE_FORMAT( item.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} AND DATE_FORMAT( item.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime}
</if> </if>

Loading…
Cancel
Save