|
@ -60,7 +60,7 @@ import java.util.stream.Collectors; |
|
|
@RestController |
|
|
@RestController |
|
|
@RequestMapping("neighborhood") |
|
|
@RequestMapping("neighborhood") |
|
|
public class NeighborHoodController { |
|
|
public class NeighborHoodController { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private IcNeighborHoodService icNeighborHoodService; |
|
|
private IcNeighborHoodService icNeighborHoodService; |
|
|
@Autowired |
|
|
@Autowired |
|
@ -210,7 +210,7 @@ public class NeighborHoodController { |
|
|
List<Integer> numList = new ArrayList<>(); |
|
|
List<Integer> numList = new ArrayList<>(); |
|
|
if(!CollectionUtils.isEmpty(failList)){ |
|
|
if(!CollectionUtils.isEmpty(failList)){ |
|
|
for ( IcNeighborHoodExcel entity : failList) { |
|
|
for ( IcNeighborHoodExcel entity : failList) { |
|
|
log.error("第{}行,{}",entity.getRowNum(),entity.getErrorMsg());//打印失败的行 和失败的信息
|
|
|
log.warn("第{}行,{}",entity.getRowNum(),entity.getErrorMsg());//打印失败的行 和失败的信息
|
|
|
numList.add(entity.getRowNum()); |
|
|
numList.add(entity.getRowNum()); |
|
|
} |
|
|
} |
|
|
//return new Result().error(8001,failList.get(0).getErrorMsg());
|
|
|
//return new Result().error(8001,failList.get(0).getErrorMsg());
|
|
@ -231,4 +231,4 @@ public class NeighborHoodController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|