CZT
2023-10-24 f27f3ea5055888f7f1c797d0fd7fb26a2013c89c
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
package com.ld.igds.three;
 
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.ld.igds.models.ThreeConf;
import com.ld.igds.three.impl.ThreeConfServiceImpl;
import com.ld.igds.util.ContextUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
 
/**
 * @author chen
 */
@Component
public class ThreeConfPR {
    
    @Autowired
    private ThreeConfServiceImpl threeConfService;
 
    /**
     * threeConfPR#getAllThreeConf
     *
     * @return
     * @throws Exception
     */
    @DataProvider
    public List<ThreeConf> getAllThreeConf() throws Exception {
        return threeConfService.getAllThreeConf(ContextUtil.getCompanyId());
    }
 
 
    /**
     * threeConfPR#updateThreeConf
     *
     * @param threeConf
     * @throws Exception
     */
    @DataResolver
    public void updateThreeConf(ThreeConf threeConf) throws Exception {
        threeConfService.updateThreeConf(threeConf);
    }
 
 
    /**
     * threeConfPR#delThreeConf
     * 根据分机id和名称删除分机
     */
    @Expose
    public void delThreeConf(ThreeConf threeConf) {
        threeConfService.delThreeConf(threeConf);
    }
 
 
    /**
     * threeConfPR#refreshCache
     */
    @Expose
    public void refreshCache() {
        threeConfService.refreshCache(ContextUtil.getCompanyId());
    }
    
}