|  |  |  | 
|---|
|  |  |  | package com.ld.igds.drug.view; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.ld.igds.drug.service.HDrugLogService; | 
|---|
|  |  |  | 
|---|
|  |  |  | 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.DrugLog; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 熏蒸管理的PR | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author: | 
|---|
|  |  |  | * @description: | 
|---|
|  |  |  | * @version: | 
|---|
|  |  |  | * @data:2020年3月6日 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Component("drugLogPR") | 
|---|
|  |  |  | public class DrugLogPR { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private HDrugLogService drugLogService; | 
|---|
|  |  |  | @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#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#delDrugLog | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param data | 
|---|
|  |  |  | * @throws Exception | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Expose | 
|---|
|  |  |  | public String delDrugLog(DrugLog data) throws Exception { | 
|---|
|  |  |  | return drugLogService.delData(data); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * drugLogPR#updateDrugLog 新增或者修改 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param data | 
|---|
|  |  |  | * @throws Exception | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Expose | 
|---|
|  |  |  | public String updateDrugLog(DrugLog data) throws Exception { | 
|---|
|  |  |  | drugLogService.saveData(data); | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * drugLogPR#saveDrugLog 新增或者修改 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param data | 
|---|
|  |  |  | * @throws Exception | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Expose | 
|---|
|  |  |  | public String saveDrugLog(DrugLog data) throws Exception { | 
|---|
|  |  |  | drugLogService.saveData(data); | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|