CZT
2023-11-27 c206acfaedc69c390fb67daa81bc686f58a212ef
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
package com.ld.igds.drug.view;
 
 
import java.util.Map;
 
import com.ld.igds.drug.service.HDrugLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.Expose;
import com.bstek.dorado.data.provider.Page;
import com.ld.igds.models.DrugLog;
 
/**
 * 熏蒸管理的PR
 *
 * @author:
 * @description:
 * @version:
 * @data:2020年3月6日
 */
@Component("drugLogPR")
public class DrugLogPR {
 
    @Autowired
    private HDrugLogService drugLogService;
 
    /**
     * drugLogPR#pageDrugLog
     *
     * @param page
     * @param param
     * @throws Exception
     */
    @DataProvider
    public void pageDrugLog(Page<DrugLog> page, Map<String, Object> param)
            throws Exception {
        drugLogService.pageData(page, param);
    }
 
    /**
     * drugLogPR#delDrugLog
     *
     * @param data
     * @throws Exception
     */
    @Expose
    public String delDrugLog(DrugLog data) throws Exception {
        return drugLogService.delData(data);
    }
 
    /**
     * drugLogPR#saveDrugLog 新增或者修改
     *
     * @param data
     * @throws Exception
     */
    @Expose
    public String saveDrugLog(DrugLog data) throws Exception {
        drugLogService.saveData(data);
        return "";
    }
 
}