czt
2025-11-08 edb0ae72155f3c0454ecbe4f089975b1320d8b88
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
package com.fzzy.async.fzzy61;
 
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.data.PushProtocol;
import com.fzzy.api.data.SyncProtocol;
import com.fzzy.api.service.SyncService12;
import com.fzzy.async.fzzy61.impl.*;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
import java.util.Date;
 
/**
 * @Desc: 粮食购销相关数据同步
 * @author: czt
 * @update-time: 2023/6/29
 */
@Component
public class Fzzy61SyncService12 implements SyncService12 {
 
    @Autowired
    private Fzzy61Sync1201 fzzySync1201;
    @Autowired
    private Fzzy61Sync1202 fzzySync1202;
    @Autowired
    private Fzzy61Sync1203 fzzySync1203;
    @Autowired
    private Fzzy61Sync1204 fzzySync1204;
    @Autowired
    private Fzzy61Sync1205 fzzySync1205;
    @Autowired
    private Fzzy61Sync1206 fzzySync1206;
    @Autowired
    private Fzzy61Sync1207 fzzySync1207;
    @Autowired
    private Fzzy61Sync1208 fzzySync1208;
    @Autowired
    private Fzzy61Sync1209 fzzySync1209;
    @Autowired
    private Fzzy61Sync1211 fzzySync1211;
    @Autowired
    private Fzzy61Sync1210 fzzySync1210;
    @Autowired
    private Fzzy61Sync1212 fzzySync1212;
    @Autowired
    private Fzzy61Sync1213 fzzySync1213;
    @Autowired
    private Fzzy61Sync1109 fzzySync1109;
    @Autowired
    private Fzzy61Sync1214 fzzySync1214;
    @Autowired
    private Fzzy61Sync1215 fzzySync1215;
    @Autowired
    private Fzzy61Sync1216 fzzySync1216;
    @Autowired
    private Fzzy61Sync1217 fzzySync1217;
    @Autowired
    private Fzzy61Sync1218 fzzySync1218;
    @Autowired
    private Fzzy61Sync1219 fzzySync1219;
    @Autowired
    private Fzzy61Sync2102 fzzySync2102;
 
    @Override
    public String getProtocol() {
        return SyncProtocol.FZZY_V61_GB.getCode();
    }
 
    @Override
    public void syncData(ApiParam param) {
 
        String kqdm = param.getKqdm();
        String deptId = param.getDeptId();
        Date start = param.getStart();
        Date end = param.getEnd();
 
        //客户同步
        fzzySync1212.syncData(kqdm, deptId, start, end);
 
        //合同同步
        fzzySync1201.syncData(kqdm, deptId, start, end);
 
        //粮食入库结算
        fzzySync1204.syncData(kqdm, deptId, start, end);
 
        //粮食入库同步
        fzzySync1202.syncData(kqdm, deptId, start, end);
 
        //粮食入库质检
        fzzySync1203.syncData(kqdm, deptId, start, end);
 
        //粮食出库结算
        fzzySync1206.syncData(kqdm, deptId, start, end);
 
        //粮食出库同步
        fzzySync1205.syncData(kqdm, deptId, start, end);
 
        //粮食损益
        fzzySync1209.syncData(kqdm, deptId, start, end);
        //倒仓信息同步
        fzzySync1207.syncData(kqdm, deptId, start, end);
 
        //出入库文件信息同步
        fzzySync1109.syncData(kqdm, deptId, start, end);
 
        //粮食库存同步
        fzzySync1208.syncData(kqdm, deptId, start, end);
 
        //粮食性质转变信息同步
        fzzySync1210.syncData(kqdm, deptId, start, end);
 
        //账面库存信息同步
        fzzySync1211.syncData(kqdm, deptId, start, end);
        //封仓确认信息同步
        fzzySync1213.syncData(kqdm, deptId, start, end);
 
        /*-----各省独有接口信息同步-----*/
        //上海市平台2023版
        if (StringUtils.isNotEmpty(param.getPushProtocol()) && PushProtocol.SB_SH_2023.getCode().equals(param.getPushProtocol())) {
            //倒仓倒入信息同步
            fzzySync2102.syncData(kqdm, deptId, start, end);
        }
 
        //陕西省平台2025版
        if (StringUtils.isNotEmpty(param.getPushProtocol()) && PushProtocol.SB_SX_2025.getCode().equals(param.getPushProtocol())) {
            //储备粮空仓验收表
            fzzySync1214.syncData(kqdm, deptId, start, end);
            //储备油空罐验收表
            fzzySync1215.syncData(kqdm, deptId, start, end);
            //储备粮倒仓验收表
            fzzySync1216.syncData(kqdm, deptId, start, end);
            //轮换验收信息
            fzzySync1217.syncData(kqdm, deptId, start, end);
            //入库成本核定表
            fzzySync1218.syncData(kqdm, deptId, start, end);
            //入库成本核定明细表
            fzzySync1219.syncData(kqdm, deptId, start, end);
        }
 
    }
 
}