Browse Source

改善原来的接口

master
zhangyuan 3 years ago
parent
commit
35874ef073
  1. 5
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/IcNeighborHoodDTO.java
  2. 6
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcBuildingDao.xml

5
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/IcNeighborHoodDTO.java

@ -149,4 +149,9 @@ public class IcNeighborHoodDTO implements Serializable {
*/ */
private Integer realBuilding; private Integer realBuilding;
/**
* 楼栋名
*/
private Integer buildingName;
} }

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

@ -452,12 +452,11 @@
<select id="listBuildingInfo" resultType="com.epmet.dto.result.BuildingResultDTO"> <select id="listBuildingInfo" resultType="com.epmet.dto.result.BuildingResultDTO">
SELECT SELECT
CONCAT( n.NEIGHBOR_HOOD_NAME, '-', b.BUILDING_NAME ) AS label, CONCAT( n.NEIGHBOR_HOOD_NAME, b.BUILDING_NAME ) AS label,
b.id AS buildingId, b.id AS buildingId,
b.BUILDING_NAME AS buildingName, b.BUILDING_NAME AS buildingName,
n.id AS neighborhoodId, n.id AS neighborhoodId,
n.NEIGHBOR_HOOD_NAME AS neighborhoodName, n.NEIGHBOR_HOOD_NAME AS neighborhoodName,
n.CUSTOMER_ID AS neighborhoodName,
n.GRID_ID, n.GRID_ID,
g.GRID_NAME g.GRID_NAME
FROM FROM
@ -472,6 +471,9 @@
<if test="gridId != null and gridId != ''"> <if test="gridId != null and gridId != ''">
AND n.GRID_ID = #{gridId} AND n.GRID_ID = #{gridId}
</if> </if>
<if test="buildingName != null and buildingName != ''">
AND (n.NEIGHBOR_HOOD_NAME LIKE CONCAT('%', #{buildingName}, '%') OR b.BUILDING_NAME LIKE CONCAT('%', #{buildingName}, '%'))
</if>
AND ( AND (
n.AGENCY_ID = #{agencyId} n.AGENCY_ID = #{agencyId}
OR n.AGENCY_PIDS LIKE CONCAT('%', #{agencyId}, '%')) OR n.AGENCY_PIDS LIKE CONCAT('%', #{agencyId}, '%'))

Loading…
Cancel
Save