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.DrugInout;
|
|
/**
|
* 熏蒸管理的PR
|
*
|
* @author: andy.jia
|
* @description:
|
* @version:
|
* @data:2020年3月6日
|
*
|
*/
|
@Component("drugInoutPR")
|
public class DrugInoutPR {
|
|
@Autowired
|
private HDrugService drugService;
|
|
/**
|
* drugInoutPR#pageDrugInout
|
* @param page
|
* @param param
|
* @throws Exception
|
*/
|
@DataProvider
|
public void pageDrugInout(Page<DrugInout> page, Map<String, Object> param)
|
throws Exception {
|
drugService.pageDrugInout(page, param);
|
}
|
|
/**
|
*
|
* drugInoutPR#delDrugInout
|
* @param param
|
* @throws Exception
|
*/
|
@Expose
|
public String delDrugInout(DrugInout data) throws Exception {
|
return drugService.delDrugInout(data);
|
}
|
|
/**
|
* drugInoutPR#updateDrugInout
|
* 新增或者修改
|
*
|
* @param param
|
* @throws Exception
|
*/
|
@Expose
|
public String updateDrugInout(DrugInout data) throws Exception {
|
return drugService.updateDrugInout(data);
|
}
|
|
}
|