| | |
| | | import com.fzzy.api.entity.ApiTrigger; |
| | | import com.fzzy.api.view.repository.ApiListRep; |
| | | |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | */ |
| | | @DataProvider |
| | | public List<ApiList> listAll() { |
| | | return apiRepository.findAll(); |
| | | List<ApiList> all = apiRepository.findAll(); |
| | | List<ApiList> list = new ArrayList<>(); |
| | | for (ApiList apiList : all) { |
| | | if(StringUtils.isEmpty(apiList.getBizType()) || "GB".equals(apiList.getBizType())){ |
| | | list.add(apiList); |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | /** |