房屋管理批量导入bug修改。
This commit is contained in:
parent
017419e79a
commit
0cc01615ef
@ -25,11 +25,12 @@ public interface ICityBuildingService {
|
||||
|
||||
/**
|
||||
* 根据名称获取
|
||||
* @param districtName
|
||||
* @param buildingName
|
||||
* @return
|
||||
* @throws SearchException
|
||||
*/
|
||||
CityBuildingDTO getCityBuildingByName(String buildingName) throws SearchException;
|
||||
CityBuildingDTO getCityBuildingByName(String districtName, String buildingName) throws SearchException;
|
||||
/**
|
||||
* 获取小区的楼宇
|
||||
* @param districtIds
|
||||
|
@ -383,8 +383,9 @@ public class CityBuildingServiceImpl extends AbstractService implements ICityBui
|
||||
}
|
||||
|
||||
@Override
|
||||
public CityBuildingDTO getCityBuildingByName(String buildingName) throws SearchException {
|
||||
public CityBuildingDTO getCityBuildingByName(String districtName, String buildingName) throws SearchException {
|
||||
Map<String, Object> params = super.getHashMap(1);
|
||||
params.put("districtName", districtName);
|
||||
params.put("buildingName", buildingName);
|
||||
return cityBuildingDao.getCityBuilding(params);
|
||||
}
|
||||
|
@ -120,11 +120,12 @@ public class ImportExcelHelper {
|
||||
}
|
||||
Map<String, Object> param = new HashMap<>();
|
||||
param.put("districtName", buildingHouseModel.getDistrictName());
|
||||
param.put("buildingName", buildingHouseModel.getCityBuildingName());
|
||||
CityDistrictDTO cityDistrictDTO = cityDistrictService.getCityDistrictByName(buildingHouseModel.getDistrictName());
|
||||
if(null != cityDistrictDTO) {
|
||||
buildingHouseModel.setDistrictId(cityDistrictDTO.getCityDistrictId());
|
||||
}
|
||||
CityBuildingDTO cityBuildingDTO = cityBuildingService.getCityBuildingByName(buildingHouseModel.getCityBuildingName());
|
||||
CityBuildingDTO cityBuildingDTO = cityBuildingService.getCityBuildingByName(buildingHouseModel.getDistrictName(), buildingHouseModel.getCityBuildingName());
|
||||
if(null != cityBuildingDTO) {
|
||||
buildingHouseModel.setCityBuildingId(cityBuildingDTO.getCityBuildingId());
|
||||
}
|
||||
|
@ -137,11 +137,15 @@
|
||||
AND
|
||||
t1.city_building_id = #{cityBuildingId}
|
||||
</if>
|
||||
<if test="districtName != null and districtName != ''">
|
||||
AND
|
||||
t1.district_name = #{districtName}
|
||||
</if>
|
||||
<if test="buildingName != null and buildingName != ''">
|
||||
AND
|
||||
t1.building_name = #{buildingName}
|
||||
LIMIT 0, 1
|
||||
</if>
|
||||
LIMIT 0, 1
|
||||
</select>
|
||||
|
||||
<!-- 楼宇管理列表 -->
|
||||
|
Loading…
Reference in New Issue
Block a user