| | |
| | | package com.fzzy.otherview.gd2022.pr; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.fzzy.api.entity.ApiInfoData; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.service.ApiPushManager; |
| | | import com.fzzy.api.view.repository.ApiInfoDataRep; |
| | | import com.fzzy.otherview.gd2022.dto.GdApi1023; |
| | | import com.fzzy.otherview.whhpjl.WhjlConstant; |
| | | import com.fzzy.otherview.whhpjl.dto.WhjlApi1101; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 广东省接口-1023 熏蒸备案 |
| | |
| | | @Component |
| | | public class GDApi1023PR { |
| | | |
| | | @Autowired |
| | | private ApiCommonService apiCommonService; |
| | | @Autowired |
| | | private ApiPushManager apiPushManager; |
| | | @Autowired |
| | | private ApiInfoDataRep apiInfoDataRep; |
| | | |
| | | /** |
| | | * 获取列表信息 |
| | | * whjlApi1101PR#listData |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<GdApi1023> listData() { |
| | | List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1101); |
| | | if(null == result ||result.isEmpty()){ |
| | | return null; |
| | | } |
| | | List<GdApi1023> list = new ArrayList<>(); |
| | | GdApi1023 gbApi1023; |
| | | for (ApiInfoData infoData : result) { |
| | | // GdApi1023 gdApi1023= JSONObject.parseObject(infoData.getData(), GdApi1023.class); |
| | | // gdApi1023.setKqdm(infoData.getKqdm()); |
| | | // gdApi1023.setCzbz(infoData.getCzbz()); |
| | | // gdApi1023.setUpdateTime(infoData.getUpdateTime()); |
| | | // gdApi1023.setBizId(infoData.getDataId()); |
| | | // list.add(GdApi1023); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | } |