|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|