|
|
@ -126,7 +126,7 @@ public class IcPointVaccinesInoculationServiceImpl extends BaseServiceImpl<IcPoi |
|
|
|
List<String> addressList = baseDao.getAllAddressName(); |
|
|
|
// 校验数据库是否存在该地点名称
|
|
|
|
if (addressList.contains(dto.getName())){ |
|
|
|
throw new RenException("该接种点名称已存在"); |
|
|
|
throw new RenException("该接种点名称已存在,请重新输入"); |
|
|
|
} |
|
|
|
IcPointVaccinesInoculationEntity entity = ConvertUtils.sourceToTarget(dto, IcPointVaccinesInoculationEntity.class); |
|
|
|
insert(entity); |
|
|
|