WS
2023-08-22 667d24748171a032c55910c0dc1bb1ac340b9521
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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 熏蒸备案
 *
 * @author czt
 * @date 2023/8/17
 */
@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;
    }
 
}