YYC
2023-07-13 54f0d5ebf93674d63426e6d3ad1dcfae64b21a82
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
package com.ld.igds.m.view;
 
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
import com.ld.igds.models.DicTrigger;
import com.ld.igds.models.InoutLossOver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
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.HLossOverService;
 
/**
 * 综合业务-损溢管理
 * 损溢的逻辑是,新增收在出入库流水中添加对应的流水,这个流水类型就是损溢。以便统计时候使用
 *
 * @author: andy.jia
 * @description:
 * @version:
 * @data:2020年5月28日
 */
@Component
public class LossOverPR {
 
    @Autowired
    private HLossOverService service;
 
 
    /**
     * ${dorado.getDataProvider("lossOverPR#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;
    }
 
    /**
     * lossOverPR#pageData
     *
     * @param page
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void pageData(Page<InoutLossOver> page, Map<String, Object> param)
            throws Exception {
        service.pageData(page, param);
    }
 
    /**
     * lossOverPR#saveData
     *
     * @param data
     * @throws Exception
     */
    @DataResolver
    public void saveData(InoutLossOver data) throws Exception {
        service.saveData(data);
    }
 
    /**
     * lossOverPR#delData
     *
     * @param data
     * @return
     * @throws Exception
     */
    @Expose
    public String delData(InoutLossOver data) throws Exception {
        return service.delData(data);
    }
 
}