czt
2025-01-06 d178c8574a4c3c9d436f5188ddfeff95ffe5f65c
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
60
61
62
63
64
65
66
67
68
package com.fzzy.push.gd2020;
 
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.data.PushProtocol;
import com.fzzy.api.service.PushService12;
import com.fzzy.push.impl.ComPushService12;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
/**
 * @Desc: 粮食购销相关模块功能接口自动推送
 * @author: Andy
 * @update-time: 2022/10/27
 */
@Slf4j
@Component
public class GDPushService12 implements PushService12 {
 
    @Autowired
    private GDApiRemoteService apiRemoteService;
 
    @Autowired
    private ComPushService12 pushService;
 
 
    @Override
    public String getProtocol() {
        return PushProtocol.SB_GD_2020.getCode();
    }
 
    @Override
    public void pushData(ApiParam param) {
        log.info("------->>>>粮食购销 接口模块上报开始");
 
        //粮食库存数据
        pushService.pushData1208(apiRemoteService, param);
 
        //损溢单
        pushService.pushData1209(apiRemoteService, param);
 
        //性质转变
        pushService.pushData1210(apiRemoteService, param);
 
        //入库数据 + 入库过磅
        pushService.pushData1202(apiRemoteService, param);
 
        //入库质检
        pushService.pushData1203(apiRemoteService, param);
 
        //入库结算
        pushService.pushData1204(apiRemoteService, param);
 
        //出库数据 + 出库过磅
        pushService.pushData1205(apiRemoteService, param);
 
        //出库结算
        pushService.pushData1206(apiRemoteService, param);
 
        //倒仓
        pushService.pushData1207(apiRemoteService, param);
 
        //合同
        pushService.pushData1201(apiRemoteService, param);
 
        log.info("------->>>>粮食购销 接口模块上报结束");
    }
}