|
@@ -435,6 +435,14 @@ public class BaseGgpFacilityServiceImpl extends AbstractCrudService<BaseGgpFacil
|
|
|
int rot=3;
|
|
|
for (FacilityImportVo facilityImportVo:facilityImportVos) {
|
|
|
BaseGgpFacility baseGgpFacility = BeanMapperUtils.map(facilityImportVo, BaseGgpFacility.class);
|
|
|
+ List<BaseGgpFacilityTypeNumVO> typeList = baseFacilityTypeMapper.typeNumList(SecurityUtils.getTenantId());
|
|
|
+ if (CollectionUtils.isNotEmpty(typeList)) {
|
|
|
+ for (int j = 0; j < typeList.size(); j++) {
|
|
|
+ if (baseGgpFacility.getFacilityType().equals(typeList.get(j).getTypeName())) {
|
|
|
+ baseGgpFacility.setFacilityType(typeList.get(j).getTypeCode());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if (StringUtils.isBlank(baseGgpFacility.getFacilityType())||StringUtils.isBlank(baseGgpFacility.getFacilityName())||StringUtils.isBlank(baseGgpFacility.getAddress())||StringUtils.isBlank(baseGgpFacility.getLatitude())||StringUtils.isBlank(baseGgpFacility.getLongitude())){
|
|
|
|
|
|
String tmp = ",第"+rot+"行数据导入失败,必填字段不能为空";
|