|
@ -261,6 +261,12 @@ public class NeighborHoodServiceImpl implements NeighborHoodService { |
|
|
List<IcNeighborHoodEntity> neighborHoodEntityList = new ArrayList<>(); |
|
|
List<IcNeighborHoodEntity> neighborHoodEntityList = new ArrayList<>(); |
|
|
List<IcNeighborHoodPropertyEntity> icNeighborHoodPropertyEntityList = new ArrayList<>(); |
|
|
List<IcNeighborHoodPropertyEntity> icNeighborHoodPropertyEntityList = new ArrayList<>(); |
|
|
for (IcNeighborHoodExcel icNeighborHoodExcel : list) { |
|
|
for (IcNeighborHoodExcel icNeighborHoodExcel : list) { |
|
|
|
|
|
//同一客户下,小区名称唯一
|
|
|
|
|
|
Integer count = icNeighborHoodDao.checkNameUq(customerId,icNeighborHoodExcel.getNeighborHoodName(),null); |
|
|
|
|
|
if (null != count && count > 0) { |
|
|
|
|
|
throw new RenException(EpmetErrorCode.NEIGHBOOR_NAME_EXITED.getCode(), EpmetErrorCode.NEIGHBOOR_NAME_EXITED.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
IcNeighborHoodEntity entity = new IcNeighborHoodEntity(); |
|
|
IcNeighborHoodEntity entity = new IcNeighborHoodEntity(); |
|
|
String uuid =UUID.randomUUID().toString().replace("-", ""); |
|
|
String uuid =UUID.randomUUID().toString().replace("-", ""); |
|
|
entity.setId(uuid); |
|
|
entity.setId(uuid); |
|
|