package com.ld.igds.drug.view;
|
|
import java.util.Map;
|
|
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.drug.service.HDrugService;
|
import com.ld.igds.models.DrugApply;
|
|
/**
|
* 熏蒸管理的PR
|
*
|
* @author: andy.jia
|
* @description:
|
* @version:
|
* @data:2020年3月6日
|
*
|
*/
|
@Component("drugApplyPR")
|
public class DrugApplyPR {
|
|
@Autowired
|
private HDrugService drugService;
|
|
|
/**
|
* drugApplyPR#pageDrug
|
* @param page
|
* @param param
|
* @throws Exception
|
*/
|
@DataProvider
|
public void pageDrug(Page<DrugApply> page, Map<String, Object> param)
|
throws Exception {
|
drugService.pageDrugApply(page, param);
|
}
|
|
/**
|
* drugApplyPR#delDrugApply
|
*
|
* @param param
|
* @throws Exception
|
*/
|
@Expose
|
public String delDrugApply(DrugApply data) throws Exception {
|
return drugService.delDrugApply(data);
|
}
|
|
/**
|
* drugApplyPR#updateDrugApply 新增或者修改
|
*
|
* @param param
|
* @throws Exception
|
*/
|
@Expose
|
public String updateDrugApply(DrugApply data) throws Exception {
|
return drugService.updateDrugApply(data);
|
}
|
|
/**
|
* drugApplyPR#auditDrugApply 审核
|
*
|
* @param param
|
* @throws Exception
|
*/
|
@Expose
|
public String auditDrugApply(DrugApply data) throws Exception {
|
return drugService.auditDrugApply(data);
|
}
|
|
}
|