jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
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.ld.igds.m.view;
 
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.bstek.dorado.data.provider.Page;
import com.ld.igds.m.service.HMAtockChangeService;
import com.ld.igds.models.DicTrigger;
import com.ld.igds.models.MStockChange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
/**
 * 综合业务-粮食品种变更记录
 * 
 * @author: andy.jia
 * @description:
 * @version:
 * @data:2020年5月28日
 *
 */
@Component
public class StockChangePR {
 
    @Autowired
    private HMAtockChangeService service;
 
 
    /**
     * 倒仓类型
     * ${dorado.getDataProvider("stockChangePR#triggerType").getResult()}
     *
     * @return
     */
    @DataProvider
    public List<DicTrigger> triggerType() {
        List<DicTrigger> list = new ArrayList<DicTrigger>();
 
        list.add(new DicTrigger("0", "倒仓"));
        list.add(new DicTrigger("1", "移库"));
 
        return list;
    }
 
    /**
     * stockChangePR#pageData
     * 
     * @param page
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void pageData(Page<MStockChange> page, Map<String, Object> param)
            throws Exception {
        service.pageData(page, param);
    }
 
    /**
     * stockChangePR#saveData
     * 
     * @param data
     */
    @DataResolver
    public void saveData(MStockChange data) {
        service.saveData(data);
    }
 
    /**
     * stockChangePR#delData
     * 
     * @param data
     * @return
     */
    @Expose
    public String delData(MStockChange data) {
        return service.delData(data);
    }
 
}