Browse Source

榆山项目代码提交 首页-组织信息接口 代码更新

hotfix/zhy
zhangfh 5 years ago
parent
commit
3690d45e89
  1. 47
      epdc-cloud-analysis-pc/src/main/resources/mapper/screen/EpdcScreenDao.xml

47
epdc-cloud-analysis-pc/src/main/resources/mapper/screen/EpdcScreenDao.xml

@ -2,7 +2,23 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.elink.esua.epdc.modules.screen.dao.EpdcScreenDao">
<resultMap type="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageDeptInfoResultDTO" id="frontPageDeptInfoListMap">
<result property="id" column="id"/>
<result property="name" column="name"/>
<result property="typeKey" column="typeKey"/>
<result property="introduction" column="introduction"/>
<result property="acreage" column="acreage"/>
<result property="communityNum" column="communityNum"/>
<result property="gridNum" column="gridNum"/>
<result property="gridmanNum" column="gridmanNum"/>
<result property="partyMemberNum" column="partyMemberNum"/>
<result property="longitude" column="longitude"/>
<result property="latitude" column="latitude"/>
<collection property="images" ofType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenImagesDTO">
<result property="imgType" column="imgType"/>
<result property="imgUrl" column="imgUrl"/>
</collection>
</resultMap>
<select id="gridGovernanceItemList" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemResultDTO">
SELECT
i.ID,
@ -241,22 +257,21 @@
DEL_FLAG = '0'
</select>
<select id="frontPageDeptInfoList"
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageDeptInfoResultDTO">
<select id="frontPageDeptInfoList" resultMap="frontPageDeptInfoListMap">
SELECT
sd.id,
sd.name,
sd.type_key,
sdi.introduction,
sdi.COMMUNITY_NUM,
sdi.GRID_NUM,
sdi.GRIDMAN_NUM,
sdi.PARTY_MEMBER_NUM,
sdi.LONGITUDE,
sdi.LATITUDE,
sdi.ACREAGE,
edi.IMG_URL,
edi.IMG_TYPE
sd.id AS id,
sd.name AS name,
sd.type_key AS typeKey,
sdi.introduction AS introduction,
sdi.COMMUNITY_NUM AS communityNum,
sdi.GRID_NUM AS gridNum,
sdi.GRIDMAN_NUM AS gridmanNum,
sdi.PARTY_MEMBER_NUM AS partyMemberNum,
sdi.LONGITUDE AS longitude,
sdi.LATITUDE AS latitude,
sdi.ACREAGE AS acreage,
edi.IMG_URL AS imgUrl,
edi.IMG_TYPE AS imgType
FROM sys_dept_info sdi
LEFT JOIN sys_dept sd ON sd.ID = sdi.DEPT_ID
LEFT JOIN epdc_admin_img edi ON edi.REFERENCE_ID = sdi.DEPT_ID

Loading…
Cancel
Save