wangxianzhang 3 years ago
parent
commit
4a7dbcdb9a
  1. 6
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml

6
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml

@ -1023,8 +1023,9 @@
<!--开通社区列表-->
<select id="getUsingCommunityList" resultType="string">
select ca.ID
, ca.CREATED_TIME
select t.ID
from (select ca.ID
, ca.CREATED_TIME created_time
, count(csa.ID) community_count
from customer_agency ca
inner join customer_staff_agency csa on (ca.ID = csa.AGENCY_ID and csa.DEL_FLAG = 0)
@ -1037,5 +1038,6 @@
and (ca.ID = #{agencyId} or ca.PIDS like CONCAT(#{agencyOrgIdPath}, '%'))
group by ca.ID, ca.CREATED_TIME
having community_count > 0
order by created_time desc) t
</select>
</mapper>

Loading…
Cancel
Save