jiazx0107@163.com
2023-11-04 43ce77a85d8297a53dc25430fff10ead57296167
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
package com.ld.igds.oa.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.models.DeptDevice;
import com.ld.igds.models.DeviceCheckup;
import com.ld.igds.oa.service.HDeptDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
import java.util.Map;
 
/**
 * 仓库设备信息
 *
 * @Author:YAN
 */
@Component
public class DeptDevicePR {
    @Autowired
    private HDeptDeviceService deptDeviceService;
 
    /**
     * deptDevicePR#pageDeptDevice
     *
     * @param page
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void pageDeptDevice(Page<DeptDevice> page, Map<String, Object> param)
            throws Exception {
        deptDeviceService.pageData(page, param);
    }
 
    /**
     * deptDevicePR#delDeptDevice
     *
     * @param data
     * @throws Exception
     */
    @Expose
    public String delDeptDevice(DeptDevice data) throws Exception {
        return deptDeviceService.delData(data);
    }
 
    /**
     * deptDevicePR#saveDeptDevice 新增或者修改
     *
     * @param data
     * @throws Exception
     */
    @DataResolver
    public String saveDeptDevice(DeptDevice data) throws Exception {
        deptDeviceService.saveOrUpdate(data);
        return "";
    }
 
    //===================================设备检修记录========================================//
 
 
    /**
     * deptDevicePR#pageCheck
     *
     * @param page
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void pageCheck(Page<DeviceCheckup> page, Map<String, Object> param)
            throws Exception {
        deptDeviceService.pageCheck(page, param);
    }
 
    /**
     * deptDevicePR#listCheck
     *
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void listCheck(Map<String, Object> param) throws Exception {
        deptDeviceService.listCheck(param);
    }
 
    /**
     * deptDevicePR#delCheck
     *
     * @param data
     * @throws Exception
     */
    @Expose
    public String delCheck(DeviceCheckup data) throws Exception {
        return deptDeviceService.delCheck(data);
    }
 
    /**
     * deptDevicePR#saveCheck 新增或者修改
     *
     * @param data
     * @throws Exception
     */
    @DataResolver
    public String saveCheck(DeviceCheckup data) throws Exception {
        deptDeviceService.saveCheck(data);
        return "";
    }
}