CZT
2023-08-14 3b4b16061d0373e3eb5c6473586c6c6edd9393de
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
package com.fzzy.async.fzzy40;
 
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.data.SyncProtocol;
import com.fzzy.api.service.SyncService12;
import com.fzzy.async.fzzy40.impl.Fzzy40Sync1201;
import com.fzzy.async.fzzy40.impl.Fzzy40Sync1202;
import com.fzzy.async.fzzy40.impl.Fzzy40Sync1205;
import com.fzzy.async.fzzy40.impl.Fzzy40Sync1212;
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 Fzzy40SyncService12 implements SyncService12 {
 
    @Autowired
    private Fzzy40Sync1201 fzzySync1201;
    @Autowired
    private Fzzy40Sync1202 fzzySync1202;
    @Autowired
    private Fzzy40Sync1205 fzzySync1205;
    @Autowired
    private Fzzy40Sync1212 fzzySync1212;
 
    @Override
    public String getProtocol() {
        return SyncProtocol.FZZY_V40_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);
 
        //粮食入库同步
        fzzySync1202.syncData(kqdm, deptId, start, end);
 
        //粮食出库同步
        fzzySync1205.syncData(kqdm, deptId, start, end);
 
    }
 
}