Browse Source

Merge branch 'dev_bugfix_ljj' into develop

master
zhaoqifeng 4 years ago
parent
commit
fc6f093392
  1. 2
      epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenCustomerAgencyDao.xml
  2. 53
      epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml

2
epmet-module/data-report/data-report-server/src/main/resources/mapper/screen/ScreenCustomerAgencyDao.xml

@ -282,6 +282,7 @@
screen_customer_agency sca screen_customer_agency sca
WHERE WHERE
sca.DEL_FLAG = '0' sca.DEL_FLAG = '0'
and sca.IS_DISPLAY='1'
<choose> <choose>
<when test="areaCode != null and areaCode.trim() != ''"> <when test="areaCode != null and areaCode.trim() != ''">
AND sca.PARENT_AREA_CODE = #{areaCode} AND sca.PARENT_AREA_CODE = #{areaCode}
@ -296,6 +297,7 @@
FROM FROM
screen_customer_grid m screen_customer_grid m
where m.DEL_FLAG = '0' where m.DEL_FLAG = '0'
and m.IS_DISPLAY='1'
<choose> <choose>
<when test="areaCode != null and areaCode.trim() != ''"> <when test="areaCode != null and areaCode.trim() != ''">
and m.AREA_CODE=#{areaCode} and m.AREA_CODE=#{areaCode}

53
epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml

@ -108,41 +108,24 @@
topicContent, topicContent,
type type
FROM FROM
( (
SELECT SELECT
a.ID AS textId, a.ID AS textId,
a.TOPIC_CONTENT AS topicContent, a.TOPIC_CONTENT AS topicContent,
'topic' AS type, 'topic' AS type,
max( a.CREATED_TIME ) AS CREATED_TIME a.CREATED_TIME
FROM FROM
resi_topic a resi_topic a
WHERE INNER JOIN (
a.GROUP_ID = #{groupId} SELECT max( CREATED_TIME ) AS CREATED_TIME
GROUP BY FROM resi_topic
a.GROUP_ID UNION ALL WHERE GROUP_ID = #{groupId}
SELECT AND DEL_FLAG = '0'
a.ID AS textId, ) b ON a.CREATED_TIME = b.CREATED_TIME
a.TITLE AS topicContent, WHERE
'notice' AS type, a.DEL_FLAG = '0'
max( a.CREATED_TIME ) AS CREATED_TIME AND a.GROUP_ID = #{groupId}
FROM ) a
notice a
WHERE
a.GROUP_ID = #{groupId}
GROUP BY
a.GROUP_ID UNION ALL
SELECT
a.ID AS textId,
a.TITLE AS topicContent,
'activity' AS type,
max( a.CREATED_TIME ) AS CREATED_TIME
FROM
group_act_info a
WHERE
a.GROUP_ID = #{groupId}
GROUP BY
a.GROUP_ID
) a
ORDER BY ORDER BY
CREATED_TIME DESC CREATED_TIME DESC
LIMIT 1 LIMIT 1

Loading…
Cancel
Save