YYC
2025-03-07 aee5c93d9d8f904d84ecdfff6025ddace615c6b2
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package com.fzzy.push.sh2023;
 
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 com.fzzy.push.impl.ComPushService90;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
/**
 * 上海市平台2023版-基础数据上传
 *
 * @author czt
 * @date 2023/08/17
 */
@Slf4j
@Component
public class SH2023PushService12 implements PushService12 {
 
 
    @Autowired
    private SH2023ApiRemoteService apiRemoteService;
    @Autowired
    private ComPushService12 pushService12;
    @Autowired
    private ComPushService90 pushService99;
    @Override
    public String getProtocol() {
        return PushProtocol.SB_SH_2023.getCode();
    }
 
    @Override
    public void pushData(ApiParam param) {
        log.info("------->>>>粮食购销 接口模块上报开始");
 
        //客户信息
        pushService12.pushData1212(apiRemoteService, param);
 
        //合同
        pushService12.pushData1201(apiRemoteService, param);
 
        //入库数据 + 入库过磅
        pushService12.pushData1202(apiRemoteService, param);
 
        //入库质检
        pushService12.pushData1203(apiRemoteService, param);
 
        //入库结算
        pushService12.pushData1204(apiRemoteService, param);
 
        //出库数据 + 出库过磅
        pushService12.pushData1205(apiRemoteService, param);
 
        //出库结算
        pushService12.pushData1206(apiRemoteService, param);
 
        //倒仓
        pushService12.pushData1207(apiRemoteService, param);
 
        //损溢单
        pushService12.pushData1209(apiRemoteService, param);
 
        //粮食库存数据
        pushService12.pushData1208(apiRemoteService, param);
 
        //性质转变
        pushService12.pushData1210(apiRemoteService, param);
 
        //账面库存
        pushService12.pushData1211(apiRemoteService, param);
 
        //文件
        pushService12.pushData1109(apiRemoteService, param);
 
        pushService99.pushData9105(apiRemoteService, param);
        pushService99.pushData9103(apiRemoteService, param);
        pushService99.pushData9106(apiRemoteService, param);
 
        log.info("------->>>>粮食购销 接口模块上报结束");
    }
}