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