Browse Source

Merge remote-tracking branch 'origin/房屋tree_yzm'

master
yinzuomei 3 years ago
parent
commit
a50335d6f2
  1. 13
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcPublicServiceOrgDao.xml

13
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcPublicServiceOrgDao.xml

@ -33,26 +33,21 @@
<result property="contact" column="CONTACT"/> <result property="contact" column="CONTACT"/>
<result property="contactMobile" column="CONTACT_MOBILE"/> <result property="contactMobile" column="CONTACT_MOBILE"/>
<result property="remark" column="REMARK"/> <result property="remark" column="REMARK"/>
<collection property="serviceMatterList" ofType="com.epmet.dto.IcPublicServiceOrgServiceMatterDTO" > <collection property="serviceMatterList" ofType="com.epmet.dto.IcPublicServiceOrgServiceMatterDTO"
<result property="categoryId" column="CATEGORY_ID"/> select="com.epmet.dao.IcPublicServiceOrgServiceMatterDao.selectServiceMatter" column="ID">
<result property="categoryCode" column="CATEGORY_CODE"/>
<result property="categoryName" column="CATEGORY_NAME"/>
</collection> </collection>
</resultMap> </resultMap>
<select id="pageList" parameterType="com.epmet.dto.form.IcPublicServiceOrgPageFormDTO" resultMap="IcPublicServiceOrgDetailResDTOMap"> <select id="pageList" parameterType="com.epmet.dto.form.IcPublicServiceOrgPageFormDTO" resultMap="IcPublicServiceOrgDetailResDTOMap">
SELECT SELECT
o.ID, distinct o.ID,
o.`NAME`, o.`NAME`,
o.AGENCY_ID, o.AGENCY_ID,
o.TYPE, o.TYPE,
( CASE WHEN o.type = '1' THEN '实有单位' WHEN o.type = '2' THEN '社会服务组织' WHEN o.type = '3' THEN '志愿团队' end) AS typeName, ( CASE WHEN o.type = '1' THEN '实有单位' WHEN o.type = '2' THEN '社会服务组织' WHEN o.type = '3' THEN '志愿团队' end) AS typeName,
o.CONTACT, o.CONTACT,
o.CONTACT_MOBILE, o.CONTACT_MOBILE,
o.REMARK, o.REMARK
m.CATEGORY_ID,
m.CATEGORY_CODE,
d.CATEGORY_NAME
FROM FROM
ic_public_service_org o ic_public_service_org o
LEFT JOIN ic_public_service_org_service_matter m ON ( o.id = m.ORG_ID and m.del_flag='0') LEFT JOIN ic_public_service_org_service_matter m ON ( o.id = m.ORG_ID and m.del_flag='0')

Loading…
Cancel
Save