Browse Source

新增组织V2接口提交

master
yinzuomei 4 years ago
parent
commit
4153d52873
  1. 7
      epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/commonservice/impl/AreaCodeServiceImpl.java

7
epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/commonservice/impl/AreaCodeServiceImpl.java

@ -7,9 +7,9 @@ import com.epmet.dataaggre.dto.govorg.form.NextAreaCodeFormDTO;
import com.epmet.dataaggre.dto.govorg.result.NextAreaCodeResultDTO;
import com.epmet.dataaggre.service.commonservice.AreaCodeService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import java.util.ArrayList;
import java.util.List;
@ -67,9 +67,10 @@ public class AreaCodeServiceImpl implements AreaCodeService {
break;
default:
}
if (CollectionUtils.isNotEmpty(list)) {
list.add(other);
if (CollectionUtils.isEmpty(list)) {
list = new ArrayList<>();
}
list.add(other);
return list;
}
}

Loading…
Cancel
Save