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 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
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.BUILDING_NAME AS buildingName,
n.id AS neighborhoodId,
n.NEIGHBOR_HOOD_NAME AS neighborhoodName,
n.CUSTOMER_ID AS neighborhoodName,
n.GRID_ID,
g.GRID_NAME
FROM
@ -472,6 +471,9 @@
<if test="gridId != null and gridId != ''">
AND n.GRID_ID = #{gridId}
</if>
<if test="buildingName != null and buildingName != ''">
AND (n.NEIGHBOR_HOOD_NAME LIKE CONCAT('%', #{buildingName}, '%') OR b.BUILDING_NAME LIKE CONCAT('%', #{buildingName}, '%'))
</if>
AND (
n.AGENCY_ID = #{agencyId}
OR n.AGENCY_PIDS LIKE CONCAT('%', #{agencyId}, '%'))

Loading…
Cancel
Save