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.DeptDevice; import com.ld.igds.models.DeviceCheckup; import com.ld.igds.oa.service.HDeptDeviceService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.Map; /** * 仓库设备信息 * * @Author:YAN */ @Component public class DeptDevicePR { @Autowired private HDeptDeviceService deptDeviceService; /** * deptDevicePR#pageDeptDevice * * @param page * @param param * @throws Exception */ @DataProvider public void pageDeptDevice(Page page, Map param) throws Exception { deptDeviceService.pageData(page, param); } /** * deptDevicePR#delDeptDevice * * @param data * @throws Exception */ @Expose public String delDeptDevice(DeptDevice data) throws Exception { return deptDeviceService.delData(data); } /** * deptDevicePR#saveDeptDevice 新增或者修改 * * @param data * @throws Exception */ @DataResolver public String saveDeptDevice(DeptDevice data) throws Exception { deptDeviceService.saveOrUpdate(data); return ""; } //===================================设备检修记录========================================// /** * deptDevicePR#pageCheck * * @param page * @param param * @throws Exception */ @DataProvider public void pageCheck(Page page, Map param) throws Exception { deptDeviceService.pageCheck(page, param); } /** * deptDevicePR#listCheck * * @param param * @throws Exception */ @DataProvider public void listCheck(Map param) throws Exception { deptDeviceService.listCheck(param); } /** * deptDevicePR#delCheck * * @param data * @throws Exception */ @Expose public String delCheck(DeviceCheckup data) throws Exception { return deptDeviceService.delCheck(data); } /** * deptDevicePR#saveCheck 新增或者修改 * * @param data * @throws Exception */ @DataResolver public String saveCheck(DeviceCheckup data) throws Exception { deptDeviceService.saveCheck(data); return ""; } }