提交增加运维管理
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.itsm.domain.Duty;
|
||||
import com.xinda.itsm.service.IDutyService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 值班管理Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/duty")
|
||||
@Api(tags = "值班管理")
|
||||
public class DutyController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDutyService dutyService;
|
||||
|
||||
/**
|
||||
* 查询值班管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:duty:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询值班管理列表")
|
||||
public TableDataInfo list(Duty duty)
|
||||
{
|
||||
startPage();
|
||||
List<Duty> list = dutyService.selectDutyList(duty);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出值班管理列表
|
||||
*/
|
||||
@ApiOperation("导出值班管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:duty:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Duty duty)
|
||||
{
|
||||
List<Duty> list = dutyService.selectDutyList(duty);
|
||||
ExcelUtil<Duty> util = new ExcelUtil<Duty>(Duty.class);
|
||||
util.exportExcel(response, list, "值班管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取值班管理详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:duty:query')")
|
||||
@GetMapping(value = "/{dutyId}")
|
||||
@ApiOperation("获取值班管理详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("dutyId") Long dutyId)
|
||||
{
|
||||
return success(dutyService.selectDutyByDutyId(dutyId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增值班管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:duty:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增值班管理")
|
||||
public AjaxResult add(@RequestBody Duty duty)
|
||||
{
|
||||
return toAjax(dutyService.insertDuty(duty));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改值班管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:duty:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改值班管理")
|
||||
public AjaxResult edit(@RequestBody Duty duty)
|
||||
{
|
||||
return toAjax(dutyService.updateDuty(duty));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除值班管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:duty:remove')")
|
||||
@DeleteMapping("/{dutyIds}")
|
||||
@ApiOperation("删除值班管理")
|
||||
public AjaxResult remove(@PathVariable Long[] dutyIds)
|
||||
{
|
||||
return toAjax(dutyService.deleteDutyByDutyIds(dutyIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.itsm.domain.ExampleReport;
|
||||
import com.xinda.itsm.service.IExampleReportService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 例报管理Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/report")
|
||||
@Api(tags = "例报管理")
|
||||
public class ExampleReportController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IExampleReportService exampleReportService;
|
||||
|
||||
/**
|
||||
* 查询例报管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:report:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询例报管理列表")
|
||||
public TableDataInfo list(ExampleReport exampleReport)
|
||||
{
|
||||
startPage();
|
||||
List<ExampleReport> list = exampleReportService.selectExampleReportList(exampleReport);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出例报管理列表
|
||||
*/
|
||||
@ApiOperation("导出例报管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:report:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ExampleReport exampleReport)
|
||||
{
|
||||
List<ExampleReport> list = exampleReportService.selectExampleReportList(exampleReport);
|
||||
ExcelUtil<ExampleReport> util = new ExcelUtil<ExampleReport>(ExampleReport.class);
|
||||
util.exportExcel(response, list, "例报管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取例报管理详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:report:query')")
|
||||
@GetMapping(value = "/{exampleReportId}")
|
||||
@ApiOperation("获取例报管理详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("exampleReportId") Long exampleReportId)
|
||||
{
|
||||
return success(exampleReportService.selectExampleReportByExampleReportId(exampleReportId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增例报管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:report:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增例报管理")
|
||||
public AjaxResult add(@RequestBody ExampleReport exampleReport)
|
||||
{
|
||||
return toAjax(exampleReportService.insertExampleReport(exampleReport));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改例报管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:report:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改例报管理")
|
||||
public AjaxResult edit(@RequestBody ExampleReport exampleReport)
|
||||
{
|
||||
return toAjax(exampleReportService.updateExampleReport(exampleReport));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除例报管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:report:remove')")
|
||||
@DeleteMapping("/{exampleReportIds}")
|
||||
@ApiOperation("删除例报管理")
|
||||
public AjaxResult remove(@PathVariable Long[] exampleReportIds)
|
||||
{
|
||||
return toAjax(exampleReportService.deleteExampleReportByExampleReportIds(exampleReportIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.itsm.domain.InspectionPlan;
|
||||
import com.xinda.itsm.service.IInspectionPlanService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 巡检计划Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/plan")
|
||||
@Api(tags = "巡检计划")
|
||||
public class InspectionPlanController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IInspectionPlanService inspectionPlanService;
|
||||
|
||||
/**
|
||||
* 查询巡检计划列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:plan:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询巡检计划列表")
|
||||
public TableDataInfo list(InspectionPlan inspectionPlan)
|
||||
{
|
||||
startPage();
|
||||
List<InspectionPlan> list = inspectionPlanService.selectInspectionPlanList(inspectionPlan);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出巡检计划列表
|
||||
*/
|
||||
@ApiOperation("导出巡检计划列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:plan:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, InspectionPlan inspectionPlan)
|
||||
{
|
||||
List<InspectionPlan> list = inspectionPlanService.selectInspectionPlanList(inspectionPlan);
|
||||
ExcelUtil<InspectionPlan> util = new ExcelUtil<InspectionPlan>(InspectionPlan.class);
|
||||
util.exportExcel(response, list, "巡检计划数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取巡检计划详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:plan:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取巡检计划详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(inspectionPlanService.selectInspectionPlanById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增巡检计划
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:plan:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增巡检计划")
|
||||
public AjaxResult add(@RequestBody InspectionPlan inspectionPlan)
|
||||
{
|
||||
return toAjax(inspectionPlanService.insertInspectionPlan(inspectionPlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改巡检计划
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:plan:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改巡检计划")
|
||||
public AjaxResult edit(@RequestBody InspectionPlan inspectionPlan)
|
||||
{
|
||||
return toAjax(inspectionPlanService.updateInspectionPlan(inspectionPlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除巡检计划
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:plan:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除巡检计划")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(inspectionPlanService.deleteInspectionPlanByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.itsm.domain.InspectionRecord;
|
||||
import com.xinda.itsm.service.IInspectionRecordService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 巡检记录Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/record")
|
||||
@Api(tags = "巡检记录")
|
||||
public class InspectionRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IInspectionRecordService inspectionRecordService;
|
||||
|
||||
/**
|
||||
* 查询巡检记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:record:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询巡检记录列表")
|
||||
public TableDataInfo list(InspectionRecord inspectionRecord)
|
||||
{
|
||||
startPage();
|
||||
List<InspectionRecord> list = inspectionRecordService.selectInspectionRecordList(inspectionRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出巡检记录列表
|
||||
*/
|
||||
@ApiOperation("导出巡检记录列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:record:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, InspectionRecord inspectionRecord)
|
||||
{
|
||||
List<InspectionRecord> list = inspectionRecordService.selectInspectionRecordList(inspectionRecord);
|
||||
ExcelUtil<InspectionRecord> util = new ExcelUtil<InspectionRecord>(InspectionRecord.class);
|
||||
util.exportExcel(response, list, "巡检记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取巡检记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:record:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取巡检记录详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(inspectionRecordService.selectInspectionRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增巡检记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:record:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增巡检记录")
|
||||
public AjaxResult add(@RequestBody InspectionRecord inspectionRecord)
|
||||
{
|
||||
return toAjax(inspectionRecordService.insertInspectionRecord(inspectionRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改巡检记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:record:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改巡检记录")
|
||||
public AjaxResult edit(@RequestBody InspectionRecord inspectionRecord)
|
||||
{
|
||||
return toAjax(inspectionRecordService.updateInspectionRecord(inspectionRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除巡检记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:record:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除巡检记录")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(inspectionRecordService.deleteInspectionRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.itsm.domain.PrePlan;
|
||||
import com.xinda.itsm.service.IPrePlanService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 预案管理Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/prePlan")
|
||||
@Api(tags = "预案管理")
|
||||
public class PrePlanController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPrePlanService prePlanService;
|
||||
|
||||
/**
|
||||
* 查询预案管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:prePlan:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询预案管理列表")
|
||||
public TableDataInfo list(PrePlan prePlan)
|
||||
{
|
||||
startPage();
|
||||
List<PrePlan> list = prePlanService.selectPrePlanList(prePlan);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出预案管理列表
|
||||
*/
|
||||
@ApiOperation("导出预案管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:prePlan:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PrePlan prePlan)
|
||||
{
|
||||
List<PrePlan> list = prePlanService.selectPrePlanList(prePlan);
|
||||
ExcelUtil<PrePlan> util = new ExcelUtil<PrePlan>(PrePlan.class);
|
||||
util.exportExcel(response, list, "预案管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取预案管理详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:prePlan:query')")
|
||||
@GetMapping(value = "/{prePlanId}")
|
||||
@ApiOperation("获取预案管理详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("prePlanId") Long prePlanId)
|
||||
{
|
||||
return success(prePlanService.selectPrePlanByPrePlanId(prePlanId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增预案管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:prePlan:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增预案管理")
|
||||
public AjaxResult add(@RequestBody PrePlan prePlan)
|
||||
{
|
||||
return toAjax(prePlanService.insertPrePlan(prePlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改预案管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:prePlan:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改预案管理")
|
||||
public AjaxResult edit(@RequestBody PrePlan prePlan)
|
||||
{
|
||||
return toAjax(prePlanService.updatePrePlan(prePlan));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除预案管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:prePlan:remove')")
|
||||
@DeleteMapping("/{prePlanIds}")
|
||||
@ApiOperation("删除预案管理")
|
||||
public AjaxResult remove(@PathVariable Long[] prePlanIds)
|
||||
{
|
||||
return toAjax(prePlanService.deletePrePlanByPrePlanIds(prePlanIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.itsm.domain.ProcessInfo;
|
||||
import com.xinda.itsm.service.IProcessInfoService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 流程管理Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/process")
|
||||
@Api(tags = "流程管理")
|
||||
public class ProcessInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IProcessInfoService processInfoService;
|
||||
|
||||
/**
|
||||
* 查询流程管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:process:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询流程管理列表")
|
||||
public TableDataInfo list(ProcessInfo processInfo)
|
||||
{
|
||||
startPage();
|
||||
List<ProcessInfo> list = processInfoService.selectProcessInfoList(processInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出流程管理列表
|
||||
*/
|
||||
@ApiOperation("导出流程管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:process:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ProcessInfo processInfo)
|
||||
{
|
||||
List<ProcessInfo> list = processInfoService.selectProcessInfoList(processInfo);
|
||||
ExcelUtil<ProcessInfo> util = new ExcelUtil<ProcessInfo>(ProcessInfo.class);
|
||||
util.exportExcel(response, list, "流程管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取流程管理详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:process:query')")
|
||||
@GetMapping(value = "/{processId}")
|
||||
@ApiOperation("获取流程管理详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("processId") Long processId)
|
||||
{
|
||||
return success(processInfoService.selectProcessInfoByProcessId(processId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增流程管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:process:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增流程管理")
|
||||
public AjaxResult add(@RequestBody ProcessInfo processInfo)
|
||||
{
|
||||
return toAjax(processInfoService.insertProcessInfo(processInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改流程管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:process:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改流程管理")
|
||||
public AjaxResult edit(@RequestBody ProcessInfo processInfo)
|
||||
{
|
||||
return toAjax(processInfoService.updateProcessInfo(processInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除流程管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:process:remove')")
|
||||
@DeleteMapping("/{processIds}")
|
||||
@ApiOperation("删除流程管理")
|
||||
public AjaxResult remove(@PathVariable Long[] processIds)
|
||||
{
|
||||
return toAjax(processInfoService.deleteProcessInfoByProcessIds(processIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.itsm.domain.RegulationInfo;
|
||||
import com.xinda.itsm.service.IRegulationInfoService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 制度管理Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/regulation")
|
||||
@Api(tags = "制度管理")
|
||||
public class RegulationInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IRegulationInfoService regulationInfoService;
|
||||
|
||||
/**
|
||||
* 查询制度管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:regulation:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询制度管理列表")
|
||||
public TableDataInfo list(RegulationInfo regulationInfo)
|
||||
{
|
||||
startPage();
|
||||
List<RegulationInfo> list = regulationInfoService.selectRegulationInfoList(regulationInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出制度管理列表
|
||||
*/
|
||||
@ApiOperation("导出制度管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:regulation:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RegulationInfo regulationInfo)
|
||||
{
|
||||
List<RegulationInfo> list = regulationInfoService.selectRegulationInfoList(regulationInfo);
|
||||
ExcelUtil<RegulationInfo> util = new ExcelUtil<RegulationInfo>(RegulationInfo.class);
|
||||
util.exportExcel(response, list, "制度管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取制度管理详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:regulation:query')")
|
||||
@GetMapping(value = "/{regulationId}")
|
||||
@ApiOperation("获取制度管理详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("regulationId") Long regulationId)
|
||||
{
|
||||
return success(regulationInfoService.selectRegulationInfoByRegulationId(regulationId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增制度管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:regulation:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增制度管理")
|
||||
public AjaxResult add(@RequestBody RegulationInfo regulationInfo)
|
||||
{
|
||||
return toAjax(regulationInfoService.insertRegulationInfo(regulationInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改制度管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:regulation:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改制度管理")
|
||||
public AjaxResult edit(@RequestBody RegulationInfo regulationInfo)
|
||||
{
|
||||
return toAjax(regulationInfoService.updateRegulationInfo(regulationInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除制度管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:regulation:remove')")
|
||||
@DeleteMapping("/{regulationIds}")
|
||||
@ApiOperation("删除制度管理")
|
||||
public AjaxResult remove(@PathVariable Long[] regulationIds)
|
||||
{
|
||||
return toAjax(regulationInfoService.deleteRegulationInfoByRegulationIds(regulationIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.itsm.domain.RepairOrder;
|
||||
import com.xinda.itsm.service.IRepairOrderService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 维修工单Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/order")
|
||||
@Api(tags = "维修工单")
|
||||
public class RepairOrderController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IRepairOrderService repairOrderService;
|
||||
|
||||
/**
|
||||
* 查询维修工单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:order:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询维修工单列表")
|
||||
public TableDataInfo list(RepairOrder repairOrder)
|
||||
{
|
||||
startPage();
|
||||
List<RepairOrder> list = repairOrderService.selectRepairOrderList(repairOrder);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出维修工单列表
|
||||
*/
|
||||
@ApiOperation("导出维修工单列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:order:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RepairOrder repairOrder)
|
||||
{
|
||||
List<RepairOrder> list = repairOrderService.selectRepairOrderList(repairOrder);
|
||||
ExcelUtil<RepairOrder> util = new ExcelUtil<RepairOrder>(RepairOrder.class);
|
||||
util.exportExcel(response, list, "维修工单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取维修工单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:order:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取维修工单详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(repairOrderService.selectRepairOrderById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增维修工单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:order:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增维修工单")
|
||||
public AjaxResult add(@RequestBody RepairOrder repairOrder)
|
||||
{
|
||||
return toAjax(repairOrderService.insertRepairOrder(repairOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改维修工单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:order:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改维修工单")
|
||||
public AjaxResult edit(@RequestBody RepairOrder repairOrder)
|
||||
{
|
||||
return toAjax(repairOrderService.updateRepairOrder(repairOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除维修工单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:order:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除维修工单")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(repairOrderService.deleteRepairOrderByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.itsm.domain.Schedule;
|
||||
import com.xinda.itsm.service.IScheduleService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 调度计划管理Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/schedule")
|
||||
@Api(tags = "调度计划管理")
|
||||
public class ScheduleController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IScheduleService scheduleService;
|
||||
|
||||
/**
|
||||
* 查询调度计划管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:schedule:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询调度计划管理列表")
|
||||
public TableDataInfo list(Schedule schedule)
|
||||
{
|
||||
startPage();
|
||||
List<Schedule> list = scheduleService.selectScheduleList(schedule);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调度计划管理列表
|
||||
*/
|
||||
@ApiOperation("导出调度计划管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:schedule:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, Schedule schedule)
|
||||
{
|
||||
List<Schedule> list = scheduleService.selectScheduleList(schedule);
|
||||
ExcelUtil<Schedule> util = new ExcelUtil<Schedule>(Schedule.class);
|
||||
util.exportExcel(response, list, "调度计划管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取调度计划管理详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:schedule:query')")
|
||||
@GetMapping(value = "/{scheduleId}")
|
||||
@ApiOperation("获取调度计划管理详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("scheduleId") Long scheduleId)
|
||||
{
|
||||
return success(scheduleService.selectScheduleByScheduleId(scheduleId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调度计划管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:schedule:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增调度计划管理")
|
||||
public AjaxResult add(@RequestBody Schedule schedule)
|
||||
{
|
||||
return toAjax(scheduleService.insertSchedule(schedule));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改调度计划管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:schedule:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改调度计划管理")
|
||||
public AjaxResult edit(@RequestBody Schedule schedule)
|
||||
{
|
||||
return toAjax(scheduleService.updateSchedule(schedule));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调度计划管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:schedule:remove')")
|
||||
@DeleteMapping("/{scheduleIds}")
|
||||
@ApiOperation("删除调度计划管理")
|
||||
public AjaxResult remove(@PathVariable Long[] scheduleIds)
|
||||
{
|
||||
return toAjax(scheduleService.deleteScheduleByScheduleIds(scheduleIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.xinda.itsm.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinda.common.annotation.Log;
|
||||
import com.xinda.common.core.controller.BaseController;
|
||||
import com.xinda.common.core.domain.AjaxResult;
|
||||
import com.xinda.common.enums.BusinessType;
|
||||
import com.xinda.itsm.domain.StandardInfo;
|
||||
import com.xinda.itsm.service.IStandardInfoService;
|
||||
import com.xinda.common.utils.poi.ExcelUtil;
|
||||
import com.xinda.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 作业规范Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/itsm/standardInfo")
|
||||
@Api(tags = "作业规范")
|
||||
public class StandardInfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IStandardInfoService standardInfoService;
|
||||
|
||||
/**
|
||||
* 查询作业规范列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:standardInfo:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询作业规范列表")
|
||||
public TableDataInfo list(StandardInfo standardInfo)
|
||||
{
|
||||
startPage();
|
||||
List<StandardInfo> list = standardInfoService.selectStandardInfoList(standardInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出作业规范列表
|
||||
*/
|
||||
@ApiOperation("导出作业规范列表")
|
||||
@PreAuthorize("@ss.hasPermi('itsm:standardInfo:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, StandardInfo standardInfo)
|
||||
{
|
||||
List<StandardInfo> list = standardInfoService.selectStandardInfoList(standardInfo);
|
||||
ExcelUtil<StandardInfo> util = new ExcelUtil<StandardInfo>(StandardInfo.class);
|
||||
util.exportExcel(response, list, "作业规范数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取作业规范详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:standardInfo:query')")
|
||||
@GetMapping(value = "/{standardId}")
|
||||
@ApiOperation("获取作业规范详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("standardId") Long standardId)
|
||||
{
|
||||
return success(standardInfoService.selectStandardInfoByStandardId(standardId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增作业规范
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:standardInfo:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增作业规范")
|
||||
public AjaxResult add(@RequestBody StandardInfo standardInfo)
|
||||
{
|
||||
return toAjax(standardInfoService.insertStandardInfo(standardInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改作业规范
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:standardInfo:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改作业规范")
|
||||
public AjaxResult edit(@RequestBody StandardInfo standardInfo)
|
||||
{
|
||||
return toAjax(standardInfoService.updateStandardInfo(standardInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除作业规范
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('itsm:standardInfo:remove')")
|
||||
@DeleteMapping("/{standardIds}")
|
||||
@ApiOperation("删除作业规范")
|
||||
public AjaxResult remove(@PathVariable Long[] standardIds)
|
||||
{
|
||||
return toAjax(standardInfoService.deleteStandardInfoByStandardIds(standardIds));
|
||||
}
|
||||
}
|
||||
56
xinda-itsm/src/main/java/com/xinda/itsm/domain/Duty.java
Normal file
56
xinda-itsm/src/main/java/com/xinda/itsm/domain/Duty.java
Normal file
@@ -0,0 +1,56 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 值班管理对象 duty
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@ApiModel(value = "Duty",description = "值班管理 duty")
|
||||
@Data
|
||||
public class Duty extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 值班id */
|
||||
private Long dutyId;
|
||||
|
||||
/** 值班日期 */
|
||||
@Excel(name = "值班日期")
|
||||
@ApiModelProperty("值班日期")
|
||||
private String dutyDate;
|
||||
|
||||
/** 值班人员 */
|
||||
@Excel(name = "值班人员")
|
||||
@ApiModelProperty("值班人员")
|
||||
private String onDuty;
|
||||
|
||||
/** 值班时间段 */
|
||||
@Excel(name = "值班时间段")
|
||||
@ApiModelProperty("值班时间段")
|
||||
private String dutyPeriod;
|
||||
|
||||
/** 值班类型 */
|
||||
@Excel(name = "值班类型")
|
||||
@ApiModelProperty("值班类型")
|
||||
private String type;
|
||||
|
||||
/** 值班状态 */
|
||||
@Excel(name = "值班状态")
|
||||
@ApiModelProperty("值班状态")
|
||||
private String status;
|
||||
|
||||
/** 替班人员 */
|
||||
@Excel(name = "替班人员")
|
||||
@ApiModelProperty("替班人员")
|
||||
private String relief;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 例报管理对象 example_report
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@ApiModel(value = "ExampleReport",description = "例报管理 example_report")
|
||||
@Data
|
||||
public class ExampleReport extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 例报id */
|
||||
private Long exampleReportId;
|
||||
|
||||
/** 例报类型 */
|
||||
@Excel(name = "例报类型")
|
||||
@ApiModelProperty("例报类型")
|
||||
private String type;
|
||||
|
||||
/** 例报周期 */
|
||||
@Excel(name = "例报周期")
|
||||
@ApiModelProperty("例报周期")
|
||||
private String cycle;
|
||||
|
||||
/** 例报内容 */
|
||||
@Excel(name = "例报内容")
|
||||
@ApiModelProperty("例报内容")
|
||||
private String content;
|
||||
|
||||
/** 推送方式 */
|
||||
@Excel(name = "推送方式")
|
||||
@ApiModelProperty("推送方式")
|
||||
private String pushMethod;
|
||||
|
||||
/** 接收人id */
|
||||
@Excel(name = "接收人id")
|
||||
@ApiModelProperty("接收人id")
|
||||
private String userId;
|
||||
|
||||
/** 接收人 */
|
||||
@Excel(name = "接收人")
|
||||
@ApiModelProperty("接收人")
|
||||
private String receiver;
|
||||
|
||||
/** 开始日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("开始日期")
|
||||
private Date startDate;
|
||||
|
||||
/** 结束日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("结束日期")
|
||||
private Date endDate;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 巡检计划对象 inspection_plan
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@ApiModel(value = "InspectionPlan",description = "巡检计划 inspection_plan")
|
||||
@Data
|
||||
public class InspectionPlan extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private Long id;
|
||||
|
||||
/** 计划名称 */
|
||||
@Excel(name = "计划名称")
|
||||
@ApiModelProperty("计划名称")
|
||||
private String planName;
|
||||
|
||||
/** 计划内容 */
|
||||
@Excel(name = "计划内容")
|
||||
@ApiModelProperty("计划内容")
|
||||
private String planContent;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
@ApiModelProperty("项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 开始日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("开始日期")
|
||||
private Date startDate;
|
||||
|
||||
/** 结束日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("结束日期")
|
||||
private Date endDate;
|
||||
|
||||
/** 巡检周期 */
|
||||
@Excel(name = "巡检周期")
|
||||
@ApiModelProperty("巡检周期")
|
||||
private String inspectionCycle;
|
||||
|
||||
/** 巡检人 */
|
||||
@Excel(name = "巡检人")
|
||||
@ApiModelProperty("巡检人")
|
||||
private String inspectionPerson;
|
||||
|
||||
/** 巡检人id */
|
||||
@Excel(name = "巡检人id")
|
||||
@ApiModelProperty("巡检人id")
|
||||
private String userId;
|
||||
|
||||
/** 巡检指定日期 */
|
||||
@Excel(name = "巡检指定日期")
|
||||
@ApiModelProperty("巡检指定日期")
|
||||
private String setDate;
|
||||
|
||||
/** 巡检固定时间 */
|
||||
@Excel(name = "巡检固定时间")
|
||||
@ApiModelProperty("巡检固定时间")
|
||||
private String setTime;
|
||||
|
||||
/** 状态(0正常 1停用) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||
@ApiModelProperty("状态")
|
||||
private String status;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 巡检记录对象 inspection_record
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@ApiModel(value = "InspectionRecord",description = "巡检记录 inspection_record")
|
||||
@Data
|
||||
public class InspectionRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private Long id;
|
||||
|
||||
/** 计划id */
|
||||
@Excel(name = "计划id")
|
||||
@ApiModelProperty("计划id")
|
||||
private Long planId;
|
||||
|
||||
/** 计划名称 */
|
||||
@Excel(name = "计划名称")
|
||||
@ApiModelProperty("计划名称")
|
||||
private String planName;
|
||||
|
||||
/** 计划内容 */
|
||||
@Excel(name = "计划内容")
|
||||
@ApiModelProperty("计划内容")
|
||||
private String planContent;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
@ApiModelProperty("项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 计划巡检时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "计划巡检时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("计划巡检时间")
|
||||
private Date planTime;
|
||||
|
||||
/** 实际巡检时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "实际巡检时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("实际巡检时间")
|
||||
private Date inspectionTime;
|
||||
|
||||
/** 巡检人 */
|
||||
@Excel(name = "巡检人")
|
||||
@ApiModelProperty("巡检人")
|
||||
private String inspectionPerson;
|
||||
|
||||
/** 巡检人id */
|
||||
@Excel(name = "巡检人id")
|
||||
@ApiModelProperty("巡检人id")
|
||||
private String userId;
|
||||
|
||||
/** 巡检周期 */
|
||||
@Excel(name = "巡检周期")
|
||||
@ApiModelProperty("巡检周期")
|
||||
private String inspectionCycle;
|
||||
|
||||
/** 周期 */
|
||||
@Excel(name = "周期")
|
||||
@ApiModelProperty("周期")
|
||||
private String cycle;
|
||||
|
||||
/** 巡检状态(默认值为0:待进行) */
|
||||
@Excel(name = "巡检状态(默认值为0:待进行)")
|
||||
@ApiModelProperty("巡检状态(默认值为0:待进行)")
|
||||
private String inspectionStatus;
|
||||
|
||||
/** 巡检备注 */
|
||||
@Excel(name = "巡检备注")
|
||||
@ApiModelProperty("巡检备注")
|
||||
private String inspectionRemark;
|
||||
|
||||
}
|
||||
61
xinda-itsm/src/main/java/com/xinda/itsm/domain/PrePlan.java
Normal file
61
xinda-itsm/src/main/java/com/xinda/itsm/domain/PrePlan.java
Normal file
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 预案管理对象 pre_plan
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@ApiModel(value = "PrePlan",description = "预案管理 pre_plan")
|
||||
@Data
|
||||
public class PrePlan extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 预案id */
|
||||
private Long prePlanId;
|
||||
|
||||
/** 预案编号 */
|
||||
@Excel(name = "预案编号")
|
||||
@ApiModelProperty("预案编号")
|
||||
private String number;
|
||||
|
||||
/** 预案类型 */
|
||||
@Excel(name = "预案类型")
|
||||
@ApiModelProperty("预案类型")
|
||||
private String type;
|
||||
|
||||
/** 站名 */
|
||||
@Excel(name = "站名")
|
||||
@ApiModelProperty("站名")
|
||||
private String station;
|
||||
|
||||
/** 设备 */
|
||||
@Excel(name = "设备")
|
||||
@ApiModelProperty("设备")
|
||||
private String device;
|
||||
|
||||
/** 预案内容 */
|
||||
@Excel(name = "预案内容")
|
||||
@ApiModelProperty("预案内容")
|
||||
private String content;
|
||||
|
||||
/** 编制人 */
|
||||
@Excel(name = "编制人")
|
||||
@ApiModelProperty("编制人")
|
||||
private String preparedBy;
|
||||
|
||||
/** 预案关键词 */
|
||||
@Excel(name = "预案关键词")
|
||||
@ApiModelProperty("预案关键词")
|
||||
private String keywords;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 流程管理对象 process_info
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@ApiModel(value = "ProcessInfo",description = "流程管理 process_info")
|
||||
@Data
|
||||
public class ProcessInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long processId;
|
||||
|
||||
/** 事件名称 */
|
||||
@Excel(name = "事件名称")
|
||||
@ApiModelProperty("事件名称")
|
||||
private String eventName;
|
||||
|
||||
/** 事件类型 */
|
||||
@Excel(name = "事件类型")
|
||||
@ApiModelProperty("事件类型")
|
||||
private String eventType;
|
||||
|
||||
/** 触发时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "触发时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("触发时间")
|
||||
private Date touchTime;
|
||||
|
||||
/** 处理结果 */
|
||||
@Excel(name = "处理结果")
|
||||
@ApiModelProperty("处理结果")
|
||||
private String handleResult;
|
||||
|
||||
/** 处理人 */
|
||||
@Excel(name = "处理人")
|
||||
@ApiModelProperty("处理人")
|
||||
private Long handlePerson;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 制度管理对象 regulation_info
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@ApiModel(value = "RegulationInfo",description = "制度管理 regulation_info")
|
||||
@Data
|
||||
public class RegulationInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long regulationId;
|
||||
|
||||
/** 制度编码 */
|
||||
@Excel(name = "制度编码")
|
||||
@ApiModelProperty("制度编码")
|
||||
private String regulationCode;
|
||||
|
||||
/** 制度名称 */
|
||||
@Excel(name = "制度名称")
|
||||
@ApiModelProperty("制度名称")
|
||||
private String regulationName;
|
||||
|
||||
/** 制度描述 */
|
||||
@Excel(name = "制度描述")
|
||||
@ApiModelProperty("制度描述")
|
||||
private String regulationDescribe;
|
||||
|
||||
/** 制度类型 */
|
||||
@Excel(name = "制度类型")
|
||||
@ApiModelProperty("制度类型")
|
||||
private String regulationType;
|
||||
|
||||
/** 制度文件 */
|
||||
@Excel(name = "制度文件")
|
||||
@ApiModelProperty("制度文件")
|
||||
private String docOssId;
|
||||
|
||||
/** 上传时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("上传时间")
|
||||
private Date uploadTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 维修工单对象 repair_order
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@ApiModel(value = "RepairOrder",description = "维修工单 repair_order")
|
||||
@Data
|
||||
public class RepairOrder extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private Long id;
|
||||
|
||||
/** 工单编号 */
|
||||
@Excel(name = "工单编号")
|
||||
@ApiModelProperty("工单编号")
|
||||
private String orderNo;
|
||||
|
||||
/** 工单内容 */
|
||||
@Excel(name = "工单内容")
|
||||
@ApiModelProperty("工单内容")
|
||||
private String orderContent;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
@ApiModelProperty("项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 派单时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "派单时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("派单时间")
|
||||
private Date assignTime;
|
||||
|
||||
/** 完成时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("完成时间")
|
||||
private Date finishTime;
|
||||
|
||||
/** 完成人 */
|
||||
@Excel(name = "完成人")
|
||||
@ApiModelProperty("完成人")
|
||||
private String finishBy;
|
||||
|
||||
/** 附件 */
|
||||
@Excel(name = "附件")
|
||||
@ApiModelProperty("附件")
|
||||
private String annex;
|
||||
|
||||
/** 完成人id */
|
||||
@Excel(name = "完成人id")
|
||||
@ApiModelProperty("完成人id")
|
||||
private Long userId;
|
||||
|
||||
/** 工单状态(默认值为0:待进行) */
|
||||
@Excel(name = "工单状态(默认值为0:待进行)")
|
||||
@ApiModelProperty("工单状态(默认值为0:待进行)")
|
||||
private String orderStatus;
|
||||
|
||||
/** 工单备注 */
|
||||
@Excel(name = "工单备注")
|
||||
@ApiModelProperty("工单备注")
|
||||
private String orderRemark;
|
||||
|
||||
}
|
||||
132
xinda-itsm/src/main/java/com/xinda/itsm/domain/Schedule.java
Normal file
132
xinda-itsm/src/main/java/com/xinda/itsm/domain/Schedule.java
Normal file
@@ -0,0 +1,132 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 调度计划管理对象 schedule
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@ApiModel(value = "Schedule",description = "调度计划管理 schedule")
|
||||
@Data
|
||||
public class Schedule extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 调度计划id */
|
||||
private Long scheduleId;
|
||||
|
||||
/** 计划编号 */
|
||||
@Excel(name = "计划编号")
|
||||
@ApiModelProperty("计划编号")
|
||||
private String number;
|
||||
|
||||
/** 类型 */
|
||||
@Excel(name = "类型")
|
||||
@ApiModelProperty("类型")
|
||||
private String type;
|
||||
|
||||
/** 计划周期 */
|
||||
@Excel(name = "计划周期")
|
||||
@ApiModelProperty("计划周期")
|
||||
private String cycle;
|
||||
|
||||
/** 站所 */
|
||||
@Excel(name = "站所")
|
||||
@ApiModelProperty("站所")
|
||||
private String station;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
@ApiModelProperty("状态")
|
||||
private String status;
|
||||
|
||||
/** 是否超时(0是,1不是) */
|
||||
@Excel(name = "是否超时(0是,1不是)")
|
||||
@ApiModelProperty("是否超时(0是,1不是)")
|
||||
private String isTimeout;
|
||||
|
||||
/** 计划名称 */
|
||||
@Excel(name = "计划名称")
|
||||
@ApiModelProperty("计划名称")
|
||||
private String name;
|
||||
|
||||
/** 计划来源 */
|
||||
@Excel(name = "计划来源")
|
||||
@ApiModelProperty("计划来源")
|
||||
private String source;
|
||||
|
||||
/** 计划内容 */
|
||||
@Excel(name = "计划内容")
|
||||
@ApiModelProperty("计划内容")
|
||||
private String content;
|
||||
|
||||
/** 开始时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("开始时间")
|
||||
private Date startTime;
|
||||
|
||||
/** 结束时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("结束时间")
|
||||
private Date endTime;
|
||||
|
||||
/** 一级提醒 */
|
||||
@Excel(name = "一级提醒")
|
||||
@ApiModelProperty("一级提醒")
|
||||
private Long firstReminder;
|
||||
|
||||
/** 二级提醒 */
|
||||
@Excel(name = "二级提醒")
|
||||
@ApiModelProperty("二级提醒")
|
||||
private Long secondReminder;
|
||||
|
||||
/** 开工执行人 */
|
||||
@Excel(name = "开工执行人")
|
||||
@ApiModelProperty("开工执行人")
|
||||
private String operator;
|
||||
|
||||
/** 开工时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "开工时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("开工时间")
|
||||
private Date commencementTime;
|
||||
|
||||
/** 归结执行人 */
|
||||
@Excel(name = "归结执行人")
|
||||
@ApiModelProperty("归结执行人")
|
||||
private String terminator;
|
||||
|
||||
/** 归结时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "归结时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("归结时间")
|
||||
private Date resolutionTime;
|
||||
|
||||
/** 归结内容 */
|
||||
@Excel(name = "归结内容")
|
||||
@ApiModelProperty("归结内容")
|
||||
private String resolutionContent;
|
||||
|
||||
/** 编制人 */
|
||||
@Excel(name = "编制人")
|
||||
@ApiModelProperty("编制人")
|
||||
private String preparedBy;
|
||||
|
||||
/** 负责人 */
|
||||
@Excel(name = "负责人")
|
||||
@ApiModelProperty("负责人")
|
||||
private String head;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.xinda.itsm.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xinda.common.annotation.Excel;
|
||||
import com.xinda.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 作业规范对象 standard_info
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@ApiModel(value = "StandardInfo",description = "作业规范 standard_info")
|
||||
@Data
|
||||
public class StandardInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long standardId;
|
||||
|
||||
/** 规范编码 */
|
||||
@Excel(name = "规范编码")
|
||||
@ApiModelProperty("规范编码")
|
||||
private String standardCode;
|
||||
|
||||
/** 规范名称 */
|
||||
@Excel(name = "规范名称")
|
||||
@ApiModelProperty("规范名称")
|
||||
private String standardName;
|
||||
|
||||
/** 规范描述 */
|
||||
@Excel(name = "规范描述")
|
||||
@ApiModelProperty("规范描述")
|
||||
private String standardDescribe;
|
||||
|
||||
/** 规范文件 */
|
||||
@Excel(name = "规范文件")
|
||||
@ApiModelProperty("规范文件")
|
||||
private String docOssId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.xinda.itsm.domain.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @Author cpems
|
||||
* @Date 2023/11/2 14:44
|
||||
**/
|
||||
@Getter
|
||||
public enum InspectionRecordStatus {
|
||||
/**
|
||||
* 进行中
|
||||
*/
|
||||
IN_PROGRESS("0", "inProgress", "进行中"),
|
||||
/**
|
||||
* 已完成
|
||||
*/
|
||||
COMPLETED("1", "completed", "已完成");
|
||||
|
||||
private final String code;
|
||||
private final String info;
|
||||
private final String name;
|
||||
|
||||
InspectionRecordStatus(String code, String info, String name) {
|
||||
this.code = code;
|
||||
this.info = info;
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.xinda.itsm.domain.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @Author cpems
|
||||
* @Date 2023/11/2 13:55
|
||||
**/
|
||||
@Getter
|
||||
public enum RepairOrderStatus {
|
||||
|
||||
/**
|
||||
* 待进行
|
||||
*/
|
||||
CARRIED_OUT("0", "carriedOut", "待进行"),
|
||||
/**
|
||||
* 进行中
|
||||
*/
|
||||
IN_PROGRESS("1", "inProgress", "进行中"),
|
||||
/**
|
||||
* 已完成
|
||||
*/
|
||||
COMPLETED("2", "completed", "已完成"),
|
||||
/**
|
||||
* 已取消
|
||||
*/
|
||||
CANCELED("3", "canceled", "已取消");
|
||||
|
||||
private final String code;
|
||||
private final String info;
|
||||
private final String name;
|
||||
|
||||
RepairOrderStatus(String code, String info, String name) {
|
||||
this.code = code;
|
||||
this.info = info;
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.Duty;
|
||||
|
||||
/**
|
||||
* 值班管理Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface DutyMapper
|
||||
{
|
||||
/**
|
||||
* 查询值班管理
|
||||
*
|
||||
* @param dutyId 值班管理主键
|
||||
* @return 值班管理
|
||||
*/
|
||||
public Duty selectDutyByDutyId(Long dutyId);
|
||||
|
||||
/**
|
||||
* 查询值班管理列表
|
||||
*
|
||||
* @param duty 值班管理
|
||||
* @return 值班管理集合
|
||||
*/
|
||||
public List<Duty> selectDutyList(Duty duty);
|
||||
|
||||
/**
|
||||
* 新增值班管理
|
||||
*
|
||||
* @param duty 值班管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDuty(Duty duty);
|
||||
|
||||
/**
|
||||
* 修改值班管理
|
||||
*
|
||||
* @param duty 值班管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDuty(Duty duty);
|
||||
|
||||
/**
|
||||
* 删除值班管理
|
||||
*
|
||||
* @param dutyId 值班管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDutyByDutyId(Long dutyId);
|
||||
|
||||
/**
|
||||
* 批量删除值班管理
|
||||
*
|
||||
* @param dutyIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDutyByDutyIds(Long[] dutyIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.ExampleReport;
|
||||
|
||||
/**
|
||||
* 例报管理Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface ExampleReportMapper
|
||||
{
|
||||
/**
|
||||
* 查询例报管理
|
||||
*
|
||||
* @param exampleReportId 例报管理主键
|
||||
* @return 例报管理
|
||||
*/
|
||||
public ExampleReport selectExampleReportByExampleReportId(Long exampleReportId);
|
||||
|
||||
/**
|
||||
* 查询例报管理列表
|
||||
*
|
||||
* @param exampleReport 例报管理
|
||||
* @return 例报管理集合
|
||||
*/
|
||||
public List<ExampleReport> selectExampleReportList(ExampleReport exampleReport);
|
||||
|
||||
/**
|
||||
* 新增例报管理
|
||||
*
|
||||
* @param exampleReport 例报管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertExampleReport(ExampleReport exampleReport);
|
||||
|
||||
/**
|
||||
* 修改例报管理
|
||||
*
|
||||
* @param exampleReport 例报管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExampleReport(ExampleReport exampleReport);
|
||||
|
||||
/**
|
||||
* 删除例报管理
|
||||
*
|
||||
* @param exampleReportId 例报管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExampleReportByExampleReportId(Long exampleReportId);
|
||||
|
||||
/**
|
||||
* 批量删除例报管理
|
||||
*
|
||||
* @param exampleReportIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExampleReportByExampleReportIds(Long[] exampleReportIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.InspectionPlan;
|
||||
|
||||
/**
|
||||
* 巡检计划Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface InspectionPlanMapper
|
||||
{
|
||||
/**
|
||||
* 查询巡检计划
|
||||
*
|
||||
* @param id 巡检计划主键
|
||||
* @return 巡检计划
|
||||
*/
|
||||
public InspectionPlan selectInspectionPlanById(Long id);
|
||||
|
||||
/**
|
||||
* 查询巡检计划列表
|
||||
*
|
||||
* @param inspectionPlan 巡检计划
|
||||
* @return 巡检计划集合
|
||||
*/
|
||||
public List<InspectionPlan> selectInspectionPlanList(InspectionPlan inspectionPlan);
|
||||
|
||||
/**
|
||||
* 新增巡检计划
|
||||
*
|
||||
* @param inspectionPlan 巡检计划
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInspectionPlan(InspectionPlan inspectionPlan);
|
||||
|
||||
/**
|
||||
* 修改巡检计划
|
||||
*
|
||||
* @param inspectionPlan 巡检计划
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInspectionPlan(InspectionPlan inspectionPlan);
|
||||
|
||||
/**
|
||||
* 删除巡检计划
|
||||
*
|
||||
* @param id 巡检计划主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInspectionPlanById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除巡检计划
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInspectionPlanByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.InspectionRecord;
|
||||
|
||||
/**
|
||||
* 巡检记录Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface InspectionRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询巡检记录
|
||||
*
|
||||
* @param id 巡检记录主键
|
||||
* @return 巡检记录
|
||||
*/
|
||||
public InspectionRecord selectInspectionRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询巡检记录列表
|
||||
*
|
||||
* @param inspectionRecord 巡检记录
|
||||
* @return 巡检记录集合
|
||||
*/
|
||||
public List<InspectionRecord> selectInspectionRecordList(InspectionRecord inspectionRecord);
|
||||
|
||||
/**
|
||||
* 新增巡检记录
|
||||
*
|
||||
* @param inspectionRecord 巡检记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInspectionRecord(InspectionRecord inspectionRecord);
|
||||
|
||||
/**
|
||||
* 修改巡检记录
|
||||
*
|
||||
* @param inspectionRecord 巡检记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInspectionRecord(InspectionRecord inspectionRecord);
|
||||
|
||||
/**
|
||||
* 删除巡检记录
|
||||
*
|
||||
* @param id 巡检记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInspectionRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除巡检记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInspectionRecordByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.PrePlan;
|
||||
|
||||
/**
|
||||
* 预案管理Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
public interface PrePlanMapper
|
||||
{
|
||||
/**
|
||||
* 查询预案管理
|
||||
*
|
||||
* @param prePlanId 预案管理主键
|
||||
* @return 预案管理
|
||||
*/
|
||||
public PrePlan selectPrePlanByPrePlanId(Long prePlanId);
|
||||
|
||||
/**
|
||||
* 查询预案管理列表
|
||||
*
|
||||
* @param prePlan 预案管理
|
||||
* @return 预案管理集合
|
||||
*/
|
||||
public List<PrePlan> selectPrePlanList(PrePlan prePlan);
|
||||
|
||||
/**
|
||||
* 新增预案管理
|
||||
*
|
||||
* @param prePlan 预案管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPrePlan(PrePlan prePlan);
|
||||
|
||||
/**
|
||||
* 修改预案管理
|
||||
*
|
||||
* @param prePlan 预案管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePrePlan(PrePlan prePlan);
|
||||
|
||||
/**
|
||||
* 删除预案管理
|
||||
*
|
||||
* @param prePlanId 预案管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePrePlanByPrePlanId(Long prePlanId);
|
||||
|
||||
/**
|
||||
* 批量删除预案管理
|
||||
*
|
||||
* @param prePlanIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePrePlanByPrePlanIds(Long[] prePlanIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.ProcessInfo;
|
||||
|
||||
/**
|
||||
* 流程管理Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
public interface ProcessInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询流程管理
|
||||
*
|
||||
* @param processId 流程管理主键
|
||||
* @return 流程管理
|
||||
*/
|
||||
public ProcessInfo selectProcessInfoByProcessId(Long processId);
|
||||
|
||||
/**
|
||||
* 查询流程管理列表
|
||||
*
|
||||
* @param processInfo 流程管理
|
||||
* @return 流程管理集合
|
||||
*/
|
||||
public List<ProcessInfo> selectProcessInfoList(ProcessInfo processInfo);
|
||||
|
||||
/**
|
||||
* 新增流程管理
|
||||
*
|
||||
* @param processInfo 流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProcessInfo(ProcessInfo processInfo);
|
||||
|
||||
/**
|
||||
* 修改流程管理
|
||||
*
|
||||
* @param processInfo 流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProcessInfo(ProcessInfo processInfo);
|
||||
|
||||
/**
|
||||
* 删除流程管理
|
||||
*
|
||||
* @param processId 流程管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProcessInfoByProcessId(Long processId);
|
||||
|
||||
/**
|
||||
* 批量删除流程管理
|
||||
*
|
||||
* @param processIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProcessInfoByProcessIds(Long[] processIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.RegulationInfo;
|
||||
|
||||
/**
|
||||
* 制度管理Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
public interface RegulationInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询制度管理
|
||||
*
|
||||
* @param regulationId 制度管理主键
|
||||
* @return 制度管理
|
||||
*/
|
||||
public RegulationInfo selectRegulationInfoByRegulationId(Long regulationId);
|
||||
|
||||
/**
|
||||
* 查询制度管理列表
|
||||
*
|
||||
* @param regulationInfo 制度管理
|
||||
* @return 制度管理集合
|
||||
*/
|
||||
public List<RegulationInfo> selectRegulationInfoList(RegulationInfo regulationInfo);
|
||||
|
||||
/**
|
||||
* 新增制度管理
|
||||
*
|
||||
* @param regulationInfo 制度管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRegulationInfo(RegulationInfo regulationInfo);
|
||||
|
||||
/**
|
||||
* 修改制度管理
|
||||
*
|
||||
* @param regulationInfo 制度管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRegulationInfo(RegulationInfo regulationInfo);
|
||||
|
||||
/**
|
||||
* 删除制度管理
|
||||
*
|
||||
* @param regulationId 制度管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRegulationInfoByRegulationId(Long regulationId);
|
||||
|
||||
/**
|
||||
* 批量删除制度管理
|
||||
*
|
||||
* @param regulationIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRegulationInfoByRegulationIds(Long[] regulationIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.RepairOrder;
|
||||
|
||||
/**
|
||||
* 维修工单Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface RepairOrderMapper
|
||||
{
|
||||
/**
|
||||
* 查询维修工单
|
||||
*
|
||||
* @param id 维修工单主键
|
||||
* @return 维修工单
|
||||
*/
|
||||
public RepairOrder selectRepairOrderById(Long id);
|
||||
|
||||
/**
|
||||
* 查询维修工单列表
|
||||
*
|
||||
* @param repairOrder 维修工单
|
||||
* @return 维修工单集合
|
||||
*/
|
||||
public List<RepairOrder> selectRepairOrderList(RepairOrder repairOrder);
|
||||
|
||||
/**
|
||||
* 新增维修工单
|
||||
*
|
||||
* @param repairOrder 维修工单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRepairOrder(RepairOrder repairOrder);
|
||||
|
||||
/**
|
||||
* 修改维修工单
|
||||
*
|
||||
* @param repairOrder 维修工单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRepairOrder(RepairOrder repairOrder);
|
||||
|
||||
/**
|
||||
* 删除维修工单
|
||||
*
|
||||
* @param id 维修工单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRepairOrderById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除维修工单
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRepairOrderByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.Schedule;
|
||||
|
||||
/**
|
||||
* 调度计划管理Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface ScheduleMapper
|
||||
{
|
||||
/**
|
||||
* 查询调度计划管理
|
||||
*
|
||||
* @param scheduleId 调度计划管理主键
|
||||
* @return 调度计划管理
|
||||
*/
|
||||
public Schedule selectScheduleByScheduleId(Long scheduleId);
|
||||
|
||||
/**
|
||||
* 查询调度计划管理列表
|
||||
*
|
||||
* @param schedule 调度计划管理
|
||||
* @return 调度计划管理集合
|
||||
*/
|
||||
public List<Schedule> selectScheduleList(Schedule schedule);
|
||||
|
||||
/**
|
||||
* 新增调度计划管理
|
||||
*
|
||||
* @param schedule 调度计划管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSchedule(Schedule schedule);
|
||||
|
||||
/**
|
||||
* 修改调度计划管理
|
||||
*
|
||||
* @param schedule 调度计划管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSchedule(Schedule schedule);
|
||||
|
||||
/**
|
||||
* 删除调度计划管理
|
||||
*
|
||||
* @param scheduleId 调度计划管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleByScheduleId(Long scheduleId);
|
||||
|
||||
/**
|
||||
* 批量删除调度计划管理
|
||||
*
|
||||
* @param scheduleIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleByScheduleIds(Long[] scheduleIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.StandardInfo;
|
||||
|
||||
/**
|
||||
* 作业规范Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
public interface StandardInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询作业规范
|
||||
*
|
||||
* @param standardId 作业规范主键
|
||||
* @return 作业规范
|
||||
*/
|
||||
public StandardInfo selectStandardInfoByStandardId(Long standardId);
|
||||
|
||||
/**
|
||||
* 查询作业规范列表
|
||||
*
|
||||
* @param standardInfo 作业规范
|
||||
* @return 作业规范集合
|
||||
*/
|
||||
public List<StandardInfo> selectStandardInfoList(StandardInfo standardInfo);
|
||||
|
||||
/**
|
||||
* 新增作业规范
|
||||
*
|
||||
* @param standardInfo 作业规范
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStandardInfo(StandardInfo standardInfo);
|
||||
|
||||
/**
|
||||
* 修改作业规范
|
||||
*
|
||||
* @param standardInfo 作业规范
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStandardInfo(StandardInfo standardInfo);
|
||||
|
||||
/**
|
||||
* 删除作业规范
|
||||
*
|
||||
* @param standardId 作业规范主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStandardInfoByStandardId(Long standardId);
|
||||
|
||||
/**
|
||||
* 批量删除作业规范
|
||||
*
|
||||
* @param standardIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStandardInfoByStandardIds(Long[] standardIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.Duty;
|
||||
|
||||
/**
|
||||
* 值班管理Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface IDutyService
|
||||
{
|
||||
/**
|
||||
* 查询值班管理
|
||||
*
|
||||
* @param dutyId 值班管理主键
|
||||
* @return 值班管理
|
||||
*/
|
||||
public Duty selectDutyByDutyId(Long dutyId);
|
||||
|
||||
/**
|
||||
* 查询值班管理列表
|
||||
*
|
||||
* @param duty 值班管理
|
||||
* @return 值班管理集合
|
||||
*/
|
||||
public List<Duty> selectDutyList(Duty duty);
|
||||
|
||||
/**
|
||||
* 新增值班管理
|
||||
*
|
||||
* @param duty 值班管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDuty(Duty duty);
|
||||
|
||||
/**
|
||||
* 修改值班管理
|
||||
*
|
||||
* @param duty 值班管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDuty(Duty duty);
|
||||
|
||||
/**
|
||||
* 批量删除值班管理
|
||||
*
|
||||
* @param dutyIds 需要删除的值班管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDutyByDutyIds(Long[] dutyIds);
|
||||
|
||||
/**
|
||||
* 删除值班管理信息
|
||||
*
|
||||
* @param dutyId 值班管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDutyByDutyId(Long dutyId);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.ExampleReport;
|
||||
|
||||
/**
|
||||
* 例报管理Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface IExampleReportService
|
||||
{
|
||||
/**
|
||||
* 查询例报管理
|
||||
*
|
||||
* @param exampleReportId 例报管理主键
|
||||
* @return 例报管理
|
||||
*/
|
||||
public ExampleReport selectExampleReportByExampleReportId(Long exampleReportId);
|
||||
|
||||
/**
|
||||
* 查询例报管理列表
|
||||
*
|
||||
* @param exampleReport 例报管理
|
||||
* @return 例报管理集合
|
||||
*/
|
||||
public List<ExampleReport> selectExampleReportList(ExampleReport exampleReport);
|
||||
|
||||
/**
|
||||
* 新增例报管理
|
||||
*
|
||||
* @param exampleReport 例报管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertExampleReport(ExampleReport exampleReport);
|
||||
|
||||
/**
|
||||
* 修改例报管理
|
||||
*
|
||||
* @param exampleReport 例报管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateExampleReport(ExampleReport exampleReport);
|
||||
|
||||
/**
|
||||
* 批量删除例报管理
|
||||
*
|
||||
* @param exampleReportIds 需要删除的例报管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExampleReportByExampleReportIds(Long[] exampleReportIds);
|
||||
|
||||
/**
|
||||
* 删除例报管理信息
|
||||
*
|
||||
* @param exampleReportId 例报管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteExampleReportByExampleReportId(Long exampleReportId);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.InspectionPlan;
|
||||
|
||||
/**
|
||||
* 巡检计划Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface IInspectionPlanService
|
||||
{
|
||||
/**
|
||||
* 查询巡检计划
|
||||
*
|
||||
* @param id 巡检计划主键
|
||||
* @return 巡检计划
|
||||
*/
|
||||
public InspectionPlan selectInspectionPlanById(Long id);
|
||||
|
||||
/**
|
||||
* 查询巡检计划列表
|
||||
*
|
||||
* @param inspectionPlan 巡检计划
|
||||
* @return 巡检计划集合
|
||||
*/
|
||||
public List<InspectionPlan> selectInspectionPlanList(InspectionPlan inspectionPlan);
|
||||
|
||||
/**
|
||||
* 新增巡检计划
|
||||
*
|
||||
* @param inspectionPlan 巡检计划
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInspectionPlan(InspectionPlan inspectionPlan);
|
||||
|
||||
/**
|
||||
* 修改巡检计划
|
||||
*
|
||||
* @param inspectionPlan 巡检计划
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInspectionPlan(InspectionPlan inspectionPlan);
|
||||
|
||||
/**
|
||||
* 批量删除巡检计划
|
||||
*
|
||||
* @param ids 需要删除的巡检计划主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInspectionPlanByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除巡检计划信息
|
||||
*
|
||||
* @param id 巡检计划主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInspectionPlanById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.InspectionRecord;
|
||||
|
||||
/**
|
||||
* 巡检记录Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface IInspectionRecordService
|
||||
{
|
||||
/**
|
||||
* 查询巡检记录
|
||||
*
|
||||
* @param id 巡检记录主键
|
||||
* @return 巡检记录
|
||||
*/
|
||||
public InspectionRecord selectInspectionRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询巡检记录列表
|
||||
*
|
||||
* @param inspectionRecord 巡检记录
|
||||
* @return 巡检记录集合
|
||||
*/
|
||||
public List<InspectionRecord> selectInspectionRecordList(InspectionRecord inspectionRecord);
|
||||
|
||||
/**
|
||||
* 新增巡检记录
|
||||
*
|
||||
* @param inspectionRecord 巡检记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInspectionRecord(InspectionRecord inspectionRecord);
|
||||
|
||||
/**
|
||||
* 修改巡检记录
|
||||
*
|
||||
* @param inspectionRecord 巡检记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInspectionRecord(InspectionRecord inspectionRecord);
|
||||
|
||||
/**
|
||||
* 批量删除巡检记录
|
||||
*
|
||||
* @param ids 需要删除的巡检记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInspectionRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除巡检记录信息
|
||||
*
|
||||
* @param id 巡检记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInspectionRecordById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.PrePlan;
|
||||
|
||||
/**
|
||||
* 预案管理Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
public interface IPrePlanService
|
||||
{
|
||||
/**
|
||||
* 查询预案管理
|
||||
*
|
||||
* @param prePlanId 预案管理主键
|
||||
* @return 预案管理
|
||||
*/
|
||||
public PrePlan selectPrePlanByPrePlanId(Long prePlanId);
|
||||
|
||||
/**
|
||||
* 查询预案管理列表
|
||||
*
|
||||
* @param prePlan 预案管理
|
||||
* @return 预案管理集合
|
||||
*/
|
||||
public List<PrePlan> selectPrePlanList(PrePlan prePlan);
|
||||
|
||||
/**
|
||||
* 新增预案管理
|
||||
*
|
||||
* @param prePlan 预案管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPrePlan(PrePlan prePlan);
|
||||
|
||||
/**
|
||||
* 修改预案管理
|
||||
*
|
||||
* @param prePlan 预案管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePrePlan(PrePlan prePlan);
|
||||
|
||||
/**
|
||||
* 批量删除预案管理
|
||||
*
|
||||
* @param prePlanIds 需要删除的预案管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePrePlanByPrePlanIds(Long[] prePlanIds);
|
||||
|
||||
/**
|
||||
* 删除预案管理信息
|
||||
*
|
||||
* @param prePlanId 预案管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePrePlanByPrePlanId(Long prePlanId);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.ProcessInfo;
|
||||
|
||||
/**
|
||||
* 流程管理Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
public interface IProcessInfoService
|
||||
{
|
||||
/**
|
||||
* 查询流程管理
|
||||
*
|
||||
* @param processId 流程管理主键
|
||||
* @return 流程管理
|
||||
*/
|
||||
public ProcessInfo selectProcessInfoByProcessId(Long processId);
|
||||
|
||||
/**
|
||||
* 查询流程管理列表
|
||||
*
|
||||
* @param processInfo 流程管理
|
||||
* @return 流程管理集合
|
||||
*/
|
||||
public List<ProcessInfo> selectProcessInfoList(ProcessInfo processInfo);
|
||||
|
||||
/**
|
||||
* 新增流程管理
|
||||
*
|
||||
* @param processInfo 流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProcessInfo(ProcessInfo processInfo);
|
||||
|
||||
/**
|
||||
* 修改流程管理
|
||||
*
|
||||
* @param processInfo 流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProcessInfo(ProcessInfo processInfo);
|
||||
|
||||
/**
|
||||
* 批量删除流程管理
|
||||
*
|
||||
* @param processIds 需要删除的流程管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProcessInfoByProcessIds(Long[] processIds);
|
||||
|
||||
/**
|
||||
* 删除流程管理信息
|
||||
*
|
||||
* @param processId 流程管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProcessInfoByProcessId(Long processId);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.RegulationInfo;
|
||||
|
||||
/**
|
||||
* 制度管理Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
public interface IRegulationInfoService
|
||||
{
|
||||
/**
|
||||
* 查询制度管理
|
||||
*
|
||||
* @param regulationId 制度管理主键
|
||||
* @return 制度管理
|
||||
*/
|
||||
public RegulationInfo selectRegulationInfoByRegulationId(Long regulationId);
|
||||
|
||||
/**
|
||||
* 查询制度管理列表
|
||||
*
|
||||
* @param regulationInfo 制度管理
|
||||
* @return 制度管理集合
|
||||
*/
|
||||
public List<RegulationInfo> selectRegulationInfoList(RegulationInfo regulationInfo);
|
||||
|
||||
/**
|
||||
* 新增制度管理
|
||||
*
|
||||
* @param regulationInfo 制度管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRegulationInfo(RegulationInfo regulationInfo);
|
||||
|
||||
/**
|
||||
* 修改制度管理
|
||||
*
|
||||
* @param regulationInfo 制度管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRegulationInfo(RegulationInfo regulationInfo);
|
||||
|
||||
/**
|
||||
* 批量删除制度管理
|
||||
*
|
||||
* @param regulationIds 需要删除的制度管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRegulationInfoByRegulationIds(Long[] regulationIds);
|
||||
|
||||
/**
|
||||
* 删除制度管理信息
|
||||
*
|
||||
* @param regulationId 制度管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRegulationInfoByRegulationId(Long regulationId);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.RepairOrder;
|
||||
|
||||
/**
|
||||
* 维修工单Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface IRepairOrderService
|
||||
{
|
||||
/**
|
||||
* 查询维修工单
|
||||
*
|
||||
* @param id 维修工单主键
|
||||
* @return 维修工单
|
||||
*/
|
||||
public RepairOrder selectRepairOrderById(Long id);
|
||||
|
||||
/**
|
||||
* 查询维修工单列表
|
||||
*
|
||||
* @param repairOrder 维修工单
|
||||
* @return 维修工单集合
|
||||
*/
|
||||
public List<RepairOrder> selectRepairOrderList(RepairOrder repairOrder);
|
||||
|
||||
/**
|
||||
* 新增维修工单
|
||||
*
|
||||
* @param repairOrder 维修工单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertRepairOrder(RepairOrder repairOrder);
|
||||
|
||||
/**
|
||||
* 修改维修工单
|
||||
*
|
||||
* @param repairOrder 维修工单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateRepairOrder(RepairOrder repairOrder);
|
||||
|
||||
/**
|
||||
* 批量删除维修工单
|
||||
*
|
||||
* @param ids 需要删除的维修工单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRepairOrderByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除维修工单信息
|
||||
*
|
||||
* @param id 维修工单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteRepairOrderById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.Schedule;
|
||||
|
||||
/**
|
||||
* 调度计划管理Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
public interface IScheduleService
|
||||
{
|
||||
/**
|
||||
* 查询调度计划管理
|
||||
*
|
||||
* @param scheduleId 调度计划管理主键
|
||||
* @return 调度计划管理
|
||||
*/
|
||||
public Schedule selectScheduleByScheduleId(Long scheduleId);
|
||||
|
||||
/**
|
||||
* 查询调度计划管理列表
|
||||
*
|
||||
* @param schedule 调度计划管理
|
||||
* @return 调度计划管理集合
|
||||
*/
|
||||
public List<Schedule> selectScheduleList(Schedule schedule);
|
||||
|
||||
/**
|
||||
* 新增调度计划管理
|
||||
*
|
||||
* @param schedule 调度计划管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSchedule(Schedule schedule);
|
||||
|
||||
/**
|
||||
* 修改调度计划管理
|
||||
*
|
||||
* @param schedule 调度计划管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSchedule(Schedule schedule);
|
||||
|
||||
/**
|
||||
* 批量删除调度计划管理
|
||||
*
|
||||
* @param scheduleIds 需要删除的调度计划管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleByScheduleIds(Long[] scheduleIds);
|
||||
|
||||
/**
|
||||
* 删除调度计划管理信息
|
||||
*
|
||||
* @param scheduleId 调度计划管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScheduleByScheduleId(Long scheduleId);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.xinda.itsm.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.itsm.domain.StandardInfo;
|
||||
|
||||
/**
|
||||
* 作业规范Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
public interface IStandardInfoService
|
||||
{
|
||||
/**
|
||||
* 查询作业规范
|
||||
*
|
||||
* @param standardId 作业规范主键
|
||||
* @return 作业规范
|
||||
*/
|
||||
public StandardInfo selectStandardInfoByStandardId(Long standardId);
|
||||
|
||||
/**
|
||||
* 查询作业规范列表
|
||||
*
|
||||
* @param standardInfo 作业规范
|
||||
* @return 作业规范集合
|
||||
*/
|
||||
public List<StandardInfo> selectStandardInfoList(StandardInfo standardInfo);
|
||||
|
||||
/**
|
||||
* 新增作业规范
|
||||
*
|
||||
* @param standardInfo 作业规范
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStandardInfo(StandardInfo standardInfo);
|
||||
|
||||
/**
|
||||
* 修改作业规范
|
||||
*
|
||||
* @param standardInfo 作业规范
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStandardInfo(StandardInfo standardInfo);
|
||||
|
||||
/**
|
||||
* 批量删除作业规范
|
||||
*
|
||||
* @param standardIds 需要删除的作业规范主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStandardInfoByStandardIds(Long[] standardIds);
|
||||
|
||||
/**
|
||||
* 删除作业规范信息
|
||||
*
|
||||
* @param standardId 作业规范主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStandardInfoByStandardId(Long standardId);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.DutyMapper;
|
||||
import com.xinda.itsm.domain.Duty;
|
||||
import com.xinda.itsm.service.IDutyService;
|
||||
|
||||
/**
|
||||
* 值班管理Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@Service
|
||||
public class DutyServiceImpl implements IDutyService
|
||||
{
|
||||
@Autowired
|
||||
private DutyMapper dutyMapper;
|
||||
|
||||
/**
|
||||
* 查询值班管理
|
||||
*
|
||||
* @param dutyId 值班管理主键
|
||||
* @return 值班管理
|
||||
*/
|
||||
@Override
|
||||
public Duty selectDutyByDutyId(Long dutyId)
|
||||
{
|
||||
return dutyMapper.selectDutyByDutyId(dutyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询值班管理列表
|
||||
*
|
||||
* @param duty 值班管理
|
||||
* @return 值班管理
|
||||
*/
|
||||
@Override
|
||||
public List<Duty> selectDutyList(Duty duty)
|
||||
{
|
||||
return dutyMapper.selectDutyList(duty);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增值班管理
|
||||
*
|
||||
* @param duty 值班管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDuty(Duty duty)
|
||||
{
|
||||
duty.setCreateTime(DateUtils.getNowDate());
|
||||
return dutyMapper.insertDuty(duty);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改值班管理
|
||||
*
|
||||
* @param duty 值班管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDuty(Duty duty)
|
||||
{
|
||||
duty.setUpdateTime(DateUtils.getNowDate());
|
||||
return dutyMapper.updateDuty(duty);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除值班管理
|
||||
*
|
||||
* @param dutyIds 需要删除的值班管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDutyByDutyIds(Long[] dutyIds)
|
||||
{
|
||||
return dutyMapper.deleteDutyByDutyIds(dutyIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除值班管理信息
|
||||
*
|
||||
* @param dutyId 值班管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDutyByDutyId(Long dutyId)
|
||||
{
|
||||
return dutyMapper.deleteDutyByDutyId(dutyId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.ExampleReportMapper;
|
||||
import com.xinda.itsm.domain.ExampleReport;
|
||||
import com.xinda.itsm.service.IExampleReportService;
|
||||
|
||||
/**
|
||||
* 例报管理Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@Service
|
||||
public class ExampleReportServiceImpl implements IExampleReportService
|
||||
{
|
||||
@Autowired
|
||||
private ExampleReportMapper exampleReportMapper;
|
||||
|
||||
/**
|
||||
* 查询例报管理
|
||||
*
|
||||
* @param exampleReportId 例报管理主键
|
||||
* @return 例报管理
|
||||
*/
|
||||
@Override
|
||||
public ExampleReport selectExampleReportByExampleReportId(Long exampleReportId)
|
||||
{
|
||||
return exampleReportMapper.selectExampleReportByExampleReportId(exampleReportId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询例报管理列表
|
||||
*
|
||||
* @param exampleReport 例报管理
|
||||
* @return 例报管理
|
||||
*/
|
||||
@Override
|
||||
public List<ExampleReport> selectExampleReportList(ExampleReport exampleReport)
|
||||
{
|
||||
return exampleReportMapper.selectExampleReportList(exampleReport);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增例报管理
|
||||
*
|
||||
* @param exampleReport 例报管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertExampleReport(ExampleReport exampleReport)
|
||||
{
|
||||
exampleReport.setCreateTime(DateUtils.getNowDate());
|
||||
return exampleReportMapper.insertExampleReport(exampleReport);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改例报管理
|
||||
*
|
||||
* @param exampleReport 例报管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateExampleReport(ExampleReport exampleReport)
|
||||
{
|
||||
exampleReport.setUpdateTime(DateUtils.getNowDate());
|
||||
return exampleReportMapper.updateExampleReport(exampleReport);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除例报管理
|
||||
*
|
||||
* @param exampleReportIds 需要删除的例报管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteExampleReportByExampleReportIds(Long[] exampleReportIds)
|
||||
{
|
||||
return exampleReportMapper.deleteExampleReportByExampleReportIds(exampleReportIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除例报管理信息
|
||||
*
|
||||
* @param exampleReportId 例报管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteExampleReportByExampleReportId(Long exampleReportId)
|
||||
{
|
||||
return exampleReportMapper.deleteExampleReportByExampleReportId(exampleReportId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.InspectionPlanMapper;
|
||||
import com.xinda.itsm.domain.InspectionPlan;
|
||||
import com.xinda.itsm.service.IInspectionPlanService;
|
||||
|
||||
/**
|
||||
* 巡检计划Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@Service
|
||||
public class InspectionPlanServiceImpl implements IInspectionPlanService
|
||||
{
|
||||
@Autowired
|
||||
private InspectionPlanMapper inspectionPlanMapper;
|
||||
|
||||
/**
|
||||
* 查询巡检计划
|
||||
*
|
||||
* @param id 巡检计划主键
|
||||
* @return 巡检计划
|
||||
*/
|
||||
@Override
|
||||
public InspectionPlan selectInspectionPlanById(Long id)
|
||||
{
|
||||
return inspectionPlanMapper.selectInspectionPlanById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询巡检计划列表
|
||||
*
|
||||
* @param inspectionPlan 巡检计划
|
||||
* @return 巡检计划
|
||||
*/
|
||||
@Override
|
||||
public List<InspectionPlan> selectInspectionPlanList(InspectionPlan inspectionPlan)
|
||||
{
|
||||
return inspectionPlanMapper.selectInspectionPlanList(inspectionPlan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增巡检计划
|
||||
*
|
||||
* @param inspectionPlan 巡检计划
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertInspectionPlan(InspectionPlan inspectionPlan)
|
||||
{
|
||||
inspectionPlan.setCreateTime(DateUtils.getNowDate());
|
||||
return inspectionPlanMapper.insertInspectionPlan(inspectionPlan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改巡检计划
|
||||
*
|
||||
* @param inspectionPlan 巡检计划
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateInspectionPlan(InspectionPlan inspectionPlan)
|
||||
{
|
||||
inspectionPlan.setUpdateTime(DateUtils.getNowDate());
|
||||
return inspectionPlanMapper.updateInspectionPlan(inspectionPlan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除巡检计划
|
||||
*
|
||||
* @param ids 需要删除的巡检计划主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInspectionPlanByIds(Long[] ids)
|
||||
{
|
||||
return inspectionPlanMapper.deleteInspectionPlanByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除巡检计划信息
|
||||
*
|
||||
* @param id 巡检计划主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInspectionPlanById(Long id)
|
||||
{
|
||||
return inspectionPlanMapper.deleteInspectionPlanById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.InspectionRecordMapper;
|
||||
import com.xinda.itsm.domain.InspectionRecord;
|
||||
import com.xinda.itsm.service.IInspectionRecordService;
|
||||
|
||||
/**
|
||||
* 巡检记录Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@Service
|
||||
public class InspectionRecordServiceImpl implements IInspectionRecordService
|
||||
{
|
||||
@Autowired
|
||||
private InspectionRecordMapper inspectionRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询巡检记录
|
||||
*
|
||||
* @param id 巡检记录主键
|
||||
* @return 巡检记录
|
||||
*/
|
||||
@Override
|
||||
public InspectionRecord selectInspectionRecordById(Long id)
|
||||
{
|
||||
return inspectionRecordMapper.selectInspectionRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询巡检记录列表
|
||||
*
|
||||
* @param inspectionRecord 巡检记录
|
||||
* @return 巡检记录
|
||||
*/
|
||||
@Override
|
||||
public List<InspectionRecord> selectInspectionRecordList(InspectionRecord inspectionRecord)
|
||||
{
|
||||
return inspectionRecordMapper.selectInspectionRecordList(inspectionRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增巡检记录
|
||||
*
|
||||
* @param inspectionRecord 巡检记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertInspectionRecord(InspectionRecord inspectionRecord)
|
||||
{
|
||||
inspectionRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return inspectionRecordMapper.insertInspectionRecord(inspectionRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改巡检记录
|
||||
*
|
||||
* @param inspectionRecord 巡检记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateInspectionRecord(InspectionRecord inspectionRecord)
|
||||
{
|
||||
inspectionRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return inspectionRecordMapper.updateInspectionRecord(inspectionRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除巡检记录
|
||||
*
|
||||
* @param ids 需要删除的巡检记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInspectionRecordByIds(Long[] ids)
|
||||
{
|
||||
return inspectionRecordMapper.deleteInspectionRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除巡检记录信息
|
||||
*
|
||||
* @param id 巡检记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInspectionRecordById(Long id)
|
||||
{
|
||||
return inspectionRecordMapper.deleteInspectionRecordById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.PrePlanMapper;
|
||||
import com.xinda.itsm.domain.PrePlan;
|
||||
import com.xinda.itsm.service.IPrePlanService;
|
||||
|
||||
/**
|
||||
* 预案管理Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@Service
|
||||
public class PrePlanServiceImpl implements IPrePlanService
|
||||
{
|
||||
@Autowired
|
||||
private PrePlanMapper prePlanMapper;
|
||||
|
||||
/**
|
||||
* 查询预案管理
|
||||
*
|
||||
* @param prePlanId 预案管理主键
|
||||
* @return 预案管理
|
||||
*/
|
||||
@Override
|
||||
public PrePlan selectPrePlanByPrePlanId(Long prePlanId)
|
||||
{
|
||||
return prePlanMapper.selectPrePlanByPrePlanId(prePlanId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询预案管理列表
|
||||
*
|
||||
* @param prePlan 预案管理
|
||||
* @return 预案管理
|
||||
*/
|
||||
@Override
|
||||
public List<PrePlan> selectPrePlanList(PrePlan prePlan)
|
||||
{
|
||||
return prePlanMapper.selectPrePlanList(prePlan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增预案管理
|
||||
*
|
||||
* @param prePlan 预案管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPrePlan(PrePlan prePlan)
|
||||
{
|
||||
prePlan.setCreateTime(DateUtils.getNowDate());
|
||||
return prePlanMapper.insertPrePlan(prePlan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改预案管理
|
||||
*
|
||||
* @param prePlan 预案管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePrePlan(PrePlan prePlan)
|
||||
{
|
||||
prePlan.setUpdateTime(DateUtils.getNowDate());
|
||||
return prePlanMapper.updatePrePlan(prePlan);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除预案管理
|
||||
*
|
||||
* @param prePlanIds 需要删除的预案管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePrePlanByPrePlanIds(Long[] prePlanIds)
|
||||
{
|
||||
return prePlanMapper.deletePrePlanByPrePlanIds(prePlanIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除预案管理信息
|
||||
*
|
||||
* @param prePlanId 预案管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePrePlanByPrePlanId(Long prePlanId)
|
||||
{
|
||||
return prePlanMapper.deletePrePlanByPrePlanId(prePlanId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.ProcessInfoMapper;
|
||||
import com.xinda.itsm.domain.ProcessInfo;
|
||||
import com.xinda.itsm.service.IProcessInfoService;
|
||||
|
||||
/**
|
||||
* 流程管理Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@Service
|
||||
public class ProcessInfoServiceImpl implements IProcessInfoService
|
||||
{
|
||||
@Autowired
|
||||
private ProcessInfoMapper processInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询流程管理
|
||||
*
|
||||
* @param processId 流程管理主键
|
||||
* @return 流程管理
|
||||
*/
|
||||
@Override
|
||||
public ProcessInfo selectProcessInfoByProcessId(Long processId)
|
||||
{
|
||||
return processInfoMapper.selectProcessInfoByProcessId(processId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询流程管理列表
|
||||
*
|
||||
* @param processInfo 流程管理
|
||||
* @return 流程管理
|
||||
*/
|
||||
@Override
|
||||
public List<ProcessInfo> selectProcessInfoList(ProcessInfo processInfo)
|
||||
{
|
||||
return processInfoMapper.selectProcessInfoList(processInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增流程管理
|
||||
*
|
||||
* @param processInfo 流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertProcessInfo(ProcessInfo processInfo)
|
||||
{
|
||||
processInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return processInfoMapper.insertProcessInfo(processInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改流程管理
|
||||
*
|
||||
* @param processInfo 流程管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateProcessInfo(ProcessInfo processInfo)
|
||||
{
|
||||
processInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return processInfoMapper.updateProcessInfo(processInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除流程管理
|
||||
*
|
||||
* @param processIds 需要删除的流程管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProcessInfoByProcessIds(Long[] processIds)
|
||||
{
|
||||
return processInfoMapper.deleteProcessInfoByProcessIds(processIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除流程管理信息
|
||||
*
|
||||
* @param processId 流程管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProcessInfoByProcessId(Long processId)
|
||||
{
|
||||
return processInfoMapper.deleteProcessInfoByProcessId(processId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.RegulationInfoMapper;
|
||||
import com.xinda.itsm.domain.RegulationInfo;
|
||||
import com.xinda.itsm.service.IRegulationInfoService;
|
||||
|
||||
/**
|
||||
* 制度管理Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@Service
|
||||
public class RegulationInfoServiceImpl implements IRegulationInfoService
|
||||
{
|
||||
@Autowired
|
||||
private RegulationInfoMapper regulationInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询制度管理
|
||||
*
|
||||
* @param regulationId 制度管理主键
|
||||
* @return 制度管理
|
||||
*/
|
||||
@Override
|
||||
public RegulationInfo selectRegulationInfoByRegulationId(Long regulationId)
|
||||
{
|
||||
return regulationInfoMapper.selectRegulationInfoByRegulationId(regulationId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询制度管理列表
|
||||
*
|
||||
* @param regulationInfo 制度管理
|
||||
* @return 制度管理
|
||||
*/
|
||||
@Override
|
||||
public List<RegulationInfo> selectRegulationInfoList(RegulationInfo regulationInfo)
|
||||
{
|
||||
return regulationInfoMapper.selectRegulationInfoList(regulationInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增制度管理
|
||||
*
|
||||
* @param regulationInfo 制度管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRegulationInfo(RegulationInfo regulationInfo)
|
||||
{
|
||||
regulationInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return regulationInfoMapper.insertRegulationInfo(regulationInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改制度管理
|
||||
*
|
||||
* @param regulationInfo 制度管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRegulationInfo(RegulationInfo regulationInfo)
|
||||
{
|
||||
regulationInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return regulationInfoMapper.updateRegulationInfo(regulationInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除制度管理
|
||||
*
|
||||
* @param regulationIds 需要删除的制度管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRegulationInfoByRegulationIds(Long[] regulationIds)
|
||||
{
|
||||
return regulationInfoMapper.deleteRegulationInfoByRegulationIds(regulationIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除制度管理信息
|
||||
*
|
||||
* @param regulationId 制度管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRegulationInfoByRegulationId(Long regulationId)
|
||||
{
|
||||
return regulationInfoMapper.deleteRegulationInfoByRegulationId(regulationId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.RepairOrderMapper;
|
||||
import com.xinda.itsm.domain.RepairOrder;
|
||||
import com.xinda.itsm.service.IRepairOrderService;
|
||||
|
||||
/**
|
||||
* 维修工单Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@Service
|
||||
public class RepairOrderServiceImpl implements IRepairOrderService
|
||||
{
|
||||
@Autowired
|
||||
private RepairOrderMapper repairOrderMapper;
|
||||
|
||||
/**
|
||||
* 查询维修工单
|
||||
*
|
||||
* @param id 维修工单主键
|
||||
* @return 维修工单
|
||||
*/
|
||||
@Override
|
||||
public RepairOrder selectRepairOrderById(Long id)
|
||||
{
|
||||
return repairOrderMapper.selectRepairOrderById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询维修工单列表
|
||||
*
|
||||
* @param repairOrder 维修工单
|
||||
* @return 维修工单
|
||||
*/
|
||||
@Override
|
||||
public List<RepairOrder> selectRepairOrderList(RepairOrder repairOrder)
|
||||
{
|
||||
return repairOrderMapper.selectRepairOrderList(repairOrder);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增维修工单
|
||||
*
|
||||
* @param repairOrder 维修工单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRepairOrder(RepairOrder repairOrder)
|
||||
{
|
||||
repairOrder.setCreateTime(DateUtils.getNowDate());
|
||||
return repairOrderMapper.insertRepairOrder(repairOrder);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改维修工单
|
||||
*
|
||||
* @param repairOrder 维修工单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRepairOrder(RepairOrder repairOrder)
|
||||
{
|
||||
repairOrder.setUpdateTime(DateUtils.getNowDate());
|
||||
return repairOrderMapper.updateRepairOrder(repairOrder);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除维修工单
|
||||
*
|
||||
* @param ids 需要删除的维修工单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairOrderByIds(Long[] ids)
|
||||
{
|
||||
return repairOrderMapper.deleteRepairOrderByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除维修工单信息
|
||||
*
|
||||
* @param id 维修工单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairOrderById(Long id)
|
||||
{
|
||||
return repairOrderMapper.deleteRepairOrderById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.ScheduleMapper;
|
||||
import com.xinda.itsm.domain.Schedule;
|
||||
import com.xinda.itsm.service.IScheduleService;
|
||||
|
||||
/**
|
||||
* 调度计划管理Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-23
|
||||
*/
|
||||
@Service
|
||||
public class ScheduleServiceImpl implements IScheduleService
|
||||
{
|
||||
@Autowired
|
||||
private ScheduleMapper scheduleMapper;
|
||||
|
||||
/**
|
||||
* 查询调度计划管理
|
||||
*
|
||||
* @param scheduleId 调度计划管理主键
|
||||
* @return 调度计划管理
|
||||
*/
|
||||
@Override
|
||||
public Schedule selectScheduleByScheduleId(Long scheduleId)
|
||||
{
|
||||
return scheduleMapper.selectScheduleByScheduleId(scheduleId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调度计划管理列表
|
||||
*
|
||||
* @param schedule 调度计划管理
|
||||
* @return 调度计划管理
|
||||
*/
|
||||
@Override
|
||||
public List<Schedule> selectScheduleList(Schedule schedule)
|
||||
{
|
||||
return scheduleMapper.selectScheduleList(schedule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调度计划管理
|
||||
*
|
||||
* @param schedule 调度计划管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSchedule(Schedule schedule)
|
||||
{
|
||||
schedule.setCreateTime(DateUtils.getNowDate());
|
||||
return scheduleMapper.insertSchedule(schedule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改调度计划管理
|
||||
*
|
||||
* @param schedule 调度计划管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSchedule(Schedule schedule)
|
||||
{
|
||||
schedule.setUpdateTime(DateUtils.getNowDate());
|
||||
return scheduleMapper.updateSchedule(schedule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除调度计划管理
|
||||
*
|
||||
* @param scheduleIds 需要删除的调度计划管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScheduleByScheduleIds(Long[] scheduleIds)
|
||||
{
|
||||
return scheduleMapper.deleteScheduleByScheduleIds(scheduleIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调度计划管理信息
|
||||
*
|
||||
* @param scheduleId 调度计划管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScheduleByScheduleId(Long scheduleId)
|
||||
{
|
||||
return scheduleMapper.deleteScheduleByScheduleId(scheduleId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.xinda.itsm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinda.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinda.itsm.mapper.StandardInfoMapper;
|
||||
import com.xinda.itsm.domain.StandardInfo;
|
||||
import com.xinda.itsm.service.IStandardInfoService;
|
||||
|
||||
/**
|
||||
* 作业规范Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2025-04-27
|
||||
*/
|
||||
@Service
|
||||
public class StandardInfoServiceImpl implements IStandardInfoService
|
||||
{
|
||||
@Autowired
|
||||
private StandardInfoMapper standardInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询作业规范
|
||||
*
|
||||
* @param standardId 作业规范主键
|
||||
* @return 作业规范
|
||||
*/
|
||||
@Override
|
||||
public StandardInfo selectStandardInfoByStandardId(Long standardId)
|
||||
{
|
||||
return standardInfoMapper.selectStandardInfoByStandardId(standardId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询作业规范列表
|
||||
*
|
||||
* @param standardInfo 作业规范
|
||||
* @return 作业规范
|
||||
*/
|
||||
@Override
|
||||
public List<StandardInfo> selectStandardInfoList(StandardInfo standardInfo)
|
||||
{
|
||||
return standardInfoMapper.selectStandardInfoList(standardInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增作业规范
|
||||
*
|
||||
* @param standardInfo 作业规范
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStandardInfo(StandardInfo standardInfo)
|
||||
{
|
||||
standardInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return standardInfoMapper.insertStandardInfo(standardInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改作业规范
|
||||
*
|
||||
* @param standardInfo 作业规范
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStandardInfo(StandardInfo standardInfo)
|
||||
{
|
||||
standardInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return standardInfoMapper.updateStandardInfo(standardInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除作业规范
|
||||
*
|
||||
* @param standardIds 需要删除的作业规范主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStandardInfoByStandardIds(Long[] standardIds)
|
||||
{
|
||||
return standardInfoMapper.deleteStandardInfoByStandardIds(standardIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除作业规范信息
|
||||
*
|
||||
* @param standardId 作业规范主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStandardInfoByStandardId(Long standardId)
|
||||
{
|
||||
return standardInfoMapper.deleteStandardInfoByStandardId(standardId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user