package com.ld.igds.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.GrainOilShop;
|
import com.ld.igds.view.service.HGrainOilShopService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
import java.util.Map;
|
|
/**
|
* 廒间信息
|
*
|
* @Author:YAN
|
*/
|
@Component
|
public class GrainOilShopPR {
|
|
@Autowired
|
private HGrainOilShopService grainOilShopService;
|
|
/**
|
* grainOilShopPR#pageData
|
*
|
* @param page
|
* @param param
|
* @throws Exception
|
*/
|
@DataProvider
|
public void pageData(Page<GrainOilShop> page, Map<String, Object> param)
|
throws Exception {
|
grainOilShopService.pageData(page, param);
|
}
|
|
/**
|
* grainOilShopPR#delData
|
*
|
* @param data
|
* @throws Exception
|
*/
|
@Expose
|
public String delData(GrainOilShop data) throws Exception {
|
return grainOilShopService.delData(data);
|
}
|
|
/**
|
* grainOilShopPR#saveData 新增或者修改
|
*
|
* @param data
|
* @throws Exception
|
*/
|
@DataResolver
|
public String saveData(GrainOilShop data) throws Exception {
|
grainOilShopService.saveOrUpdate(data);
|
return "";
|
}
|
}
|