|
|
|
@ -19,6 +19,7 @@ package cn.topiam.employee.console.converter.setting;
|
|
|
|
|
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.mapstruct.Mapper;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
@ -115,7 +116,7 @@ public interface GeoLocationSettingConverter {
|
|
|
|
|
*/
|
|
|
|
|
default GeoIpProviderResult entityToGeoLocationProviderConfig(SettingEntity entity) {
|
|
|
|
|
//没有数据,默认未启用
|
|
|
|
|
if (Objects.isNull(entity)) {
|
|
|
|
|
if (Objects.isNull(entity) || StringUtils.isBlank(entity.getValue())) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|