Browse Source

批量生成一户一码地址及房屋编码传参调整

feature/teamB_zz_wgh
Jackwang 3 years ago
parent
commit
daedfe7827
  1. 2
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/HouseController.java
  2. 2
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/HouseService.java
  3. 4
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java

2
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/HouseController.java

@ -523,7 +523,7 @@ public class HouseController implements ResultDataResolver {
@NoRepeatSubmit
@PostMapping("createBatchHouseCodeAndUrl")
public Result createBatchHouseCodeAndUrl(@LoginUser TokenDto loginUser) {
return houseService.createBatchHouseCodeAndUrl(loginUser);
return houseService.createBatchHouseCodeAndUrl(loginUser.getCustomerId());
}

2
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/HouseService.java

@ -162,5 +162,5 @@ public interface HouseService {
* @params []
* @return com.epmet.commons.tools.utils.Result
*/
Result createBatchHouseCodeAndUrl(TokenDto loginUser);
Result createBatchHouseCodeAndUrl(String customerId);
}

4
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java

@ -987,8 +987,8 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver {
@Override
public Result createBatchHouseCodeAndUrl(TokenDto loginUser) {
List<CreateHouseCodeAndUrlDTO> houseList = icHouseDao.selectBatchHouseCodeAndUrl(loginUser.getCustomerId());
public Result createBatchHouseCodeAndUrl(String customerId) {
List<CreateHouseCodeAndUrlDTO> houseList = icHouseDao.selectBatchHouseCodeAndUrl(customerId);
houseList.forEach(house->{
IcHouseEntity entity = icHouseDao.selectById(house.getHouseId());
if(StringUtils.isNotBlank(house.getAreaCode())){

Loading…
Cancel
Save