feat:设备管理代码生成
This commit is contained in:
@@ -146,12 +146,29 @@ public interface ErrorCodeConstants {
|
||||
ErrorCode BUSINESS_SAMPLE_DISPATCH_DETAIL_NOT_EXISTS = new ErrorCode(1_032_100_000, "样品调拨明细不存在");
|
||||
|
||||
/*=================================resource 资源管理 1_032_150_000 ~ 1_032_199_999 ==================================*/
|
||||
// ----------设备管理----------
|
||||
ErrorCode DEVICE_INFOMATION_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备_设备信息不存在");
|
||||
ErrorCode DEVICE_PRODUCT_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备_设备大类不存在");
|
||||
ErrorCode DEVICE_MAINTAIN_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备维护数据不存在");
|
||||
ErrorCode DEVICE_MAINTAIN_ITEM_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备维护项不存在");
|
||||
|
||||
ErrorCode DEVICE_CONFIG_BUSINESS_ITEM_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备业务配置项不存在");
|
||||
ErrorCode DEVICE_PERIOD_CHECK_NOT_EXISTS = new ErrorCode(1_032_150_000, "期间核查数据不存在");
|
||||
|
||||
ErrorCode DEVICE_PERIOD_CHECK_PLAN_NOT_EXISTS = new ErrorCode(1_032_150_000, "期间核查计划不存在");
|
||||
ErrorCode DEVICE_REPAIR_APPLY_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备维修申请数据不存在");
|
||||
ErrorCode DEVICE_REPAIR_RESULT_DETAIL_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备维修结果明细不存在");
|
||||
ErrorCode DEVICE_REPAIR_DETAIL_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备维修明细不存在");
|
||||
ErrorCode DEVICE_CALIBRATION_PLAN_NOT_EXISTS = new ErrorCode(1_032_150_000, "检定校准计划不存在");
|
||||
ErrorCode DEVICE_CALIBRATION_NOT_EXISTS = new ErrorCode(1_032_150_000, "检定校准数据不存在");
|
||||
ErrorCode DEVICE_USE_RECORD_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备使用记录不存在");
|
||||
ErrorCode DEVICE_AFFILIATION_RELATIVITY_NOT_EXISTS = new ErrorCode(1_032_150_000, "附属设备关系不存在");
|
||||
ErrorCode DEVICE_APPLY_DETAIL_NOT_EXISTS = new ErrorCode(1_032_150_000, "设备申请数据不存在");
|
||||
|
||||
|
||||
// -------------物料试剂-------------
|
||||
ErrorCode MATERIAL_INFOMATION_NOT_EXISTS = new ErrorCode(1_032_150_000, "试剂耗材不存在");
|
||||
ErrorCode MATERIAL_PRODUCT_NOT_EXISTS = new ErrorCode(1_032_150_000, "试剂耗材大类不存在");
|
||||
|
||||
|
||||
ErrorCode MATERIAL_LIFECYCLE_DETAIL_NOT_EXISTS = new ErrorCode(1_032_150_000, "物料通用流程明细不存在");
|
||||
ErrorCode MATERIAL_LIFECYCLE_NOT_EXISTS = new ErrorCode(1_032_150_000, "物料通用流程不存在");
|
||||
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativityPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativityRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativitySaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceAffiliationRelativityDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceAffiliationRelativityService;
|
||||
|
||||
@Tag(name = "管理后台 - 附属设备关系")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-affiliation-relativity")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.deviceaffiliationrelativity")
|
||||
public class DeviceAffiliationRelativityController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceAffiliationRelativityController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceAffiliationRelativityService deviceAffiliationRelativityService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建附属设备关系")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-affiliation-relativity:create')")
|
||||
public CommonResult<DeviceAffiliationRelativityRespVO> createDeviceAffiliationRelativity(@Valid @RequestBody DeviceAffiliationRelativitySaveReqVO createReqVO) {
|
||||
return success(deviceAffiliationRelativityService.createDeviceAffiliationRelativity(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新附属设备关系")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-affiliation-relativity:update')")
|
||||
public CommonResult<Boolean> updateDeviceAffiliationRelativity(@Valid @RequestBody DeviceAffiliationRelativitySaveReqVO updateReqVO) {
|
||||
deviceAffiliationRelativityService.updateDeviceAffiliationRelativity(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除附属设备关系")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-affiliation-relativity:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceAffiliationRelativity(@RequestParam("id") Long id) {
|
||||
deviceAffiliationRelativityService.deleteDeviceAffiliationRelativity(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除附属设备关系")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-affiliation-relativity:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceAffiliationRelativityList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceAffiliationRelativityService.deleteDeviceAffiliationRelativityListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得附属设备关系")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-affiliation-relativity:query')")
|
||||
public CommonResult<DeviceAffiliationRelativityRespVO> getDeviceAffiliationRelativity(@RequestParam("id") Long id) {
|
||||
DeviceAffiliationRelativityDO deviceAffiliationRelativity = deviceAffiliationRelativityService.getDeviceAffiliationRelativity(id);
|
||||
return success(BeanUtils.toBean(deviceAffiliationRelativity, DeviceAffiliationRelativityRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得附属设备关系分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-affiliation-relativity:query')")
|
||||
public CommonResult<PageResult<DeviceAffiliationRelativityRespVO>> getDeviceAffiliationRelativityPage(@Valid DeviceAffiliationRelativityPageReqVO pageReqVO) {
|
||||
PageResult<DeviceAffiliationRelativityDO> pageResult = deviceAffiliationRelativityService.getDeviceAffiliationRelativityPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceAffiliationRelativityRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出附属设备关系 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-affiliation-relativity:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceAffiliationRelativityExcel(@Valid DeviceAffiliationRelativityPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceAffiliationRelativityDO> list = deviceAffiliationRelativityService.getDeviceAffiliationRelativityPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "附属设备关系.xls", "数据", DeviceAffiliationRelativityRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceAffiliationRelativityRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceApplyDetailDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceApplyDetailService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备通用流程明细")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-apply-detail")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.deviceapplydetail")
|
||||
public class DeviceApplyDetailController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceApplyDetailController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceApplyDetailService deviceApplyDetailService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备通用流程明细")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-apply-detail:create')")
|
||||
public CommonResult<DeviceApplyDetailRespVO> createDeviceApplyDetail(@Valid @RequestBody DeviceApplyDetailSaveReqVO createReqVO) {
|
||||
return success(deviceApplyDetailService.createDeviceApplyDetail(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备通用流程明细")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-apply-detail:update')")
|
||||
public CommonResult<Boolean> updateDeviceApplyDetail(@Valid @RequestBody DeviceApplyDetailSaveReqVO updateReqVO) {
|
||||
deviceApplyDetailService.updateDeviceApplyDetail(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备通用流程明细")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-apply-detail:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceApplyDetail(@RequestParam("id") Long id) {
|
||||
deviceApplyDetailService.deleteDeviceApplyDetail(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备通用流程明细")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-apply-detail:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceApplyDetailList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceApplyDetailService.deleteDeviceApplyDetailListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备通用流程明细")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-apply-detail:query')")
|
||||
public CommonResult<DeviceApplyDetailRespVO> getDeviceApplyDetail(@RequestParam("id") Long id) {
|
||||
DeviceApplyDetailDO deviceApplyDetail = deviceApplyDetailService.getDeviceApplyDetail(id);
|
||||
return success(BeanUtils.toBean(deviceApplyDetail, DeviceApplyDetailRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备通用流程明细分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-apply-detail:query')")
|
||||
public CommonResult<PageResult<DeviceApplyDetailRespVO>> getDeviceApplyDetailPage(@Valid DeviceApplyDetailPageReqVO pageReqVO) {
|
||||
PageResult<DeviceApplyDetailDO> pageResult = deviceApplyDetailService.getDeviceApplyDetailPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceApplyDetailRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备通用流程明细 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-apply-detail:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceApplyDetailExcel(@Valid DeviceApplyDetailPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceApplyDetailDO> list = deviceApplyDetailService.getDeviceApplyDetailPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备通用流程明细.xls", "数据", DeviceApplyDetailRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceApplyDetailRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceCalibrationDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceCalibrationService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备-检定校准")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-calibration")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.devicecalibration")
|
||||
public class DeviceCalibrationController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceCalibrationController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceCalibrationService deviceCalibrationService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备-检定校准")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration:create')")
|
||||
public CommonResult<DeviceCalibrationRespVO> createDeviceCalibration(@Valid @RequestBody DeviceCalibrationSaveReqVO createReqVO) {
|
||||
return success(deviceCalibrationService.createDeviceCalibration(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备-检定校准")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration:update')")
|
||||
public CommonResult<Boolean> updateDeviceCalibration(@Valid @RequestBody DeviceCalibrationSaveReqVO updateReqVO) {
|
||||
deviceCalibrationService.updateDeviceCalibration(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备-检定校准")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceCalibration(@RequestParam("id") Long id) {
|
||||
deviceCalibrationService.deleteDeviceCalibration(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备-检定校准")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceCalibrationList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceCalibrationService.deleteDeviceCalibrationListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备-检定校准")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration:query')")
|
||||
public CommonResult<DeviceCalibrationRespVO> getDeviceCalibration(@RequestParam("id") Long id) {
|
||||
DeviceCalibrationDO deviceCalibration = deviceCalibrationService.getDeviceCalibration(id);
|
||||
return success(BeanUtils.toBean(deviceCalibration, DeviceCalibrationRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备-检定校准分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration:query')")
|
||||
public CommonResult<PageResult<DeviceCalibrationRespVO>> getDeviceCalibrationPage(@Valid DeviceCalibrationPageReqVO pageReqVO) {
|
||||
PageResult<DeviceCalibrationDO> pageResult = deviceCalibrationService.getDeviceCalibrationPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceCalibrationRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备-检定校准 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceCalibrationExcel(@Valid DeviceCalibrationPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceCalibrationDO> list = deviceCalibrationService.getDeviceCalibrationPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备-检定校准.xls", "数据", DeviceCalibrationRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceCalibrationRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceCalibrationPlanDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceCalibrationPlanService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备-检定校准计划")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-calibration-plan")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.devicecalibrationplan")
|
||||
public class DeviceCalibrationPlanController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceCalibrationPlanController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceCalibrationPlanService deviceCalibrationPlanService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备-检定校准计划")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration-plan:create')")
|
||||
public CommonResult<DeviceCalibrationPlanRespVO> createDeviceCalibrationPlan(@Valid @RequestBody DeviceCalibrationPlanSaveReqVO createReqVO) {
|
||||
return success(deviceCalibrationPlanService.createDeviceCalibrationPlan(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备-检定校准计划")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration-plan:update')")
|
||||
public CommonResult<Boolean> updateDeviceCalibrationPlan(@Valid @RequestBody DeviceCalibrationPlanSaveReqVO updateReqVO) {
|
||||
deviceCalibrationPlanService.updateDeviceCalibrationPlan(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备-检定校准计划")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration-plan:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceCalibrationPlan(@RequestParam("id") Long id) {
|
||||
deviceCalibrationPlanService.deleteDeviceCalibrationPlan(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备-检定校准计划")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration-plan:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceCalibrationPlanList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceCalibrationPlanService.deleteDeviceCalibrationPlanListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备-检定校准计划")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration-plan:query')")
|
||||
public CommonResult<DeviceCalibrationPlanRespVO> getDeviceCalibrationPlan(@RequestParam("id") Long id) {
|
||||
DeviceCalibrationPlanDO deviceCalibrationPlan = deviceCalibrationPlanService.getDeviceCalibrationPlan(id);
|
||||
return success(BeanUtils.toBean(deviceCalibrationPlan, DeviceCalibrationPlanRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备-检定校准计划分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration-plan:query')")
|
||||
public CommonResult<PageResult<DeviceCalibrationPlanRespVO>> getDeviceCalibrationPlanPage(@Valid DeviceCalibrationPlanPageReqVO pageReqVO) {
|
||||
PageResult<DeviceCalibrationPlanDO> pageResult = deviceCalibrationPlanService.getDeviceCalibrationPlanPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceCalibrationPlanRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备-检定校准计划 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-calibration-plan:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceCalibrationPlanExcel(@Valid DeviceCalibrationPlanPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceCalibrationPlanDO> list = deviceCalibrationPlanService.getDeviceCalibrationPlanPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备-检定校准计划.xls", "数据", DeviceCalibrationPlanRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceCalibrationPlanRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceConfigBusinessItemDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceConfigBusinessItemService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备-检查项目配置")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-config-business-item")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.deviceconfigbusinessitem")
|
||||
public class DeviceConfigBusinessItemController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceConfigBusinessItemController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceConfigBusinessItemService deviceConfigBusinessItemService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备-检查项目配置")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-item:create')")
|
||||
public CommonResult<DeviceConfigBusinessItemRespVO> createDeviceConfigBusinessItem(@Valid @RequestBody DeviceConfigBusinessItemSaveReqVO createReqVO) {
|
||||
return success(deviceConfigBusinessItemService.createDeviceConfigBusinessItem(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备-检查项目配置")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-item:update')")
|
||||
public CommonResult<Boolean> updateDeviceConfigBusinessItem(@Valid @RequestBody DeviceConfigBusinessItemSaveReqVO updateReqVO) {
|
||||
deviceConfigBusinessItemService.updateDeviceConfigBusinessItem(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备-检查项目配置")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-item:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceConfigBusinessItem(@RequestParam("id") Long id) {
|
||||
deviceConfigBusinessItemService.deleteDeviceConfigBusinessItem(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备-检查项目配置")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-item:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceConfigBusinessItemList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceConfigBusinessItemService.deleteDeviceConfigBusinessItemListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备-检查项目配置")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-item:query')")
|
||||
public CommonResult<DeviceConfigBusinessItemRespVO> getDeviceConfigBusinessItem(@RequestParam("id") Long id) {
|
||||
DeviceConfigBusinessItemDO deviceConfigBusinessItem = deviceConfigBusinessItemService.getDeviceConfigBusinessItem(id);
|
||||
return success(BeanUtils.toBean(deviceConfigBusinessItem, DeviceConfigBusinessItemRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备-检查项目配置分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-item:query')")
|
||||
public CommonResult<PageResult<DeviceConfigBusinessItemRespVO>> getDeviceConfigBusinessItemPage(@Valid DeviceConfigBusinessItemPageReqVO pageReqVO) {
|
||||
PageResult<DeviceConfigBusinessItemDO> pageResult = deviceConfigBusinessItemService.getDeviceConfigBusinessItemPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceConfigBusinessItemRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备-检查项目配置 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-config-business-item:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceConfigBusinessItemExcel(@Valid DeviceConfigBusinessItemPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceConfigBusinessItemDO> list = deviceConfigBusinessItemService.getDeviceConfigBusinessItemPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备-检查项目配置.xls", "数据", DeviceConfigBusinessItemRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceConfigBusinessItemRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceMaintainService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备-点检、保养记录")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-maintain")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.devicemaintain")
|
||||
public class DeviceMaintainController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceMaintainController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceMaintainService deviceMaintainService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备-点检、保养记录")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain:create')")
|
||||
public CommonResult<DeviceMaintainRespVO> createDeviceMaintain(@Valid @RequestBody DeviceMaintainSaveReqVO createReqVO) {
|
||||
return success(deviceMaintainService.createDeviceMaintain(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备-点检、保养记录")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain:update')")
|
||||
public CommonResult<Boolean> updateDeviceMaintain(@Valid @RequestBody DeviceMaintainSaveReqVO updateReqVO) {
|
||||
deviceMaintainService.updateDeviceMaintain(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备-点检、保养记录")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceMaintain(@RequestParam("id") Long id) {
|
||||
deviceMaintainService.deleteDeviceMaintain(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备-点检、保养记录")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceMaintainList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceMaintainService.deleteDeviceMaintainListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备-点检、保养记录")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain:query')")
|
||||
public CommonResult<DeviceMaintainRespVO> getDeviceMaintain(@RequestParam("id") Long id) {
|
||||
DeviceMaintainDO deviceMaintain = deviceMaintainService.getDeviceMaintain(id);
|
||||
return success(BeanUtils.toBean(deviceMaintain, DeviceMaintainRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备-点检、保养记录分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain:query')")
|
||||
public CommonResult<PageResult<DeviceMaintainRespVO>> getDeviceMaintainPage(@Valid DeviceMaintainPageReqVO pageReqVO) {
|
||||
PageResult<DeviceMaintainDO> pageResult = deviceMaintainService.getDeviceMaintainPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceMaintainRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备-点检、保养记录 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceMaintainExcel(@Valid DeviceMaintainPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceMaintainDO> list = deviceMaintainService.getDeviceMaintainPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备-点检、保养记录.xls", "数据", DeviceMaintainRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceMaintainRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainItemDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceMaintainItemService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备-保养分项")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-maintain-item")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.devicemaintainitem")
|
||||
public class DeviceMaintainItemController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceMaintainItemController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceMaintainItemService deviceMaintainItemService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备-保养分项")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain-item:create')")
|
||||
public CommonResult<DeviceMaintainItemRespVO> createDeviceMaintainItem(@Valid @RequestBody DeviceMaintainItemSaveReqVO createReqVO) {
|
||||
return success(deviceMaintainItemService.createDeviceMaintainItem(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备-保养分项")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain-item:update')")
|
||||
public CommonResult<Boolean> updateDeviceMaintainItem(@Valid @RequestBody DeviceMaintainItemSaveReqVO updateReqVO) {
|
||||
deviceMaintainItemService.updateDeviceMaintainItem(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备-保养分项")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain-item:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceMaintainItem(@RequestParam("id") Long id) {
|
||||
deviceMaintainItemService.deleteDeviceMaintainItem(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备-保养分项")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain-item:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceMaintainItemList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceMaintainItemService.deleteDeviceMaintainItemListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备-保养分项")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain-item:query')")
|
||||
public CommonResult<DeviceMaintainItemRespVO> getDeviceMaintainItem(@RequestParam("id") Long id) {
|
||||
DeviceMaintainItemDO deviceMaintainItem = deviceMaintainItemService.getDeviceMaintainItem(id);
|
||||
return success(BeanUtils.toBean(deviceMaintainItem, DeviceMaintainItemRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备-保养分项分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain-item:query')")
|
||||
public CommonResult<PageResult<DeviceMaintainItemRespVO>> getDeviceMaintainItemPage(@Valid DeviceMaintainItemPageReqVO pageReqVO) {
|
||||
PageResult<DeviceMaintainItemDO> pageResult = deviceMaintainItemService.getDeviceMaintainItemPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceMaintainItemRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备-保养分项 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-maintain-item:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceMaintainItemExcel(@Valid DeviceMaintainItemPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceMaintainItemDO> list = deviceMaintainItemService.getDeviceMaintainItemPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备-保养分项.xls", "数据", DeviceMaintainItemRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceMaintainItemRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DevicePeriodCheckDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DevicePeriodCheckService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备-期间核查")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-period-check")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.deviceperiodcheck")
|
||||
public class DevicePeriodCheckController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DevicePeriodCheckController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DevicePeriodCheckService devicePeriodCheckService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备-期间核查")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:create')")
|
||||
public CommonResult<DevicePeriodCheckRespVO> createDevicePeriodCheck(@Valid @RequestBody DevicePeriodCheckSaveReqVO createReqVO) {
|
||||
return success(devicePeriodCheckService.createDevicePeriodCheck(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备-期间核查")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:update')")
|
||||
public CommonResult<Boolean> updateDevicePeriodCheck(@Valid @RequestBody DevicePeriodCheckSaveReqVO updateReqVO) {
|
||||
devicePeriodCheckService.updateDevicePeriodCheck(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备-期间核查")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:delete')")
|
||||
public CommonResult<Boolean> deleteDevicePeriodCheck(@RequestParam("id") Long id) {
|
||||
devicePeriodCheckService.deleteDevicePeriodCheck(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备-期间核查")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:delete')")
|
||||
public CommonResult<Boolean> deleteDevicePeriodCheckList(@RequestBody BatchDeleteReqVO req) {
|
||||
devicePeriodCheckService.deleteDevicePeriodCheckListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备-期间核查")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:query')")
|
||||
public CommonResult<DevicePeriodCheckRespVO> getDevicePeriodCheck(@RequestParam("id") Long id) {
|
||||
DevicePeriodCheckDO devicePeriodCheck = devicePeriodCheckService.getDevicePeriodCheck(id);
|
||||
return success(BeanUtils.toBean(devicePeriodCheck, DevicePeriodCheckRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备-期间核查分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:query')")
|
||||
public CommonResult<PageResult<DevicePeriodCheckRespVO>> getDevicePeriodCheckPage(@Valid DevicePeriodCheckPageReqVO pageReqVO) {
|
||||
PageResult<DevicePeriodCheckDO> pageResult = devicePeriodCheckService.getDevicePeriodCheckPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DevicePeriodCheckRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备-期间核查 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDevicePeriodCheckExcel(@Valid DevicePeriodCheckPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DevicePeriodCheckDO> list = devicePeriodCheckService.getDevicePeriodCheckPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备-期间核查.xls", "数据", DevicePeriodCheckRespVO.class,
|
||||
BeanUtils.toBean(list, DevicePeriodCheckRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPlanPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPlanRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPlanSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DevicePeriodCheckPlanDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DevicePeriodCheckPlanService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备-期间核查计划")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-period-check-plan")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.deviceperiodcheckplan")
|
||||
public class DevicePeriodCheckPlanController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DevicePeriodCheckPlanController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DevicePeriodCheckPlanService devicePeriodCheckPlanService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备-期间核查计划")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:create')")
|
||||
public CommonResult<DevicePeriodCheckPlanRespVO> createDevicePeriodCheckPlan(@Valid @RequestBody DevicePeriodCheckPlanSaveReqVO createReqVO) {
|
||||
return success(devicePeriodCheckPlanService.createDevicePeriodCheckPlan(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备-期间核查计划")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:update')")
|
||||
public CommonResult<Boolean> updateDevicePeriodCheckPlan(@Valid @RequestBody DevicePeriodCheckPlanSaveReqVO updateReqVO) {
|
||||
devicePeriodCheckPlanService.updateDevicePeriodCheckPlan(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备-期间核查计划")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:delete')")
|
||||
public CommonResult<Boolean> deleteDevicePeriodCheckPlan(@RequestParam("id") Long id) {
|
||||
devicePeriodCheckPlanService.deleteDevicePeriodCheckPlan(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备-期间核查计划")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:delete')")
|
||||
public CommonResult<Boolean> deleteDevicePeriodCheckPlanList(@RequestBody BatchDeleteReqVO req) {
|
||||
devicePeriodCheckPlanService.deleteDevicePeriodCheckPlanListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备-期间核查计划")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:query')")
|
||||
public CommonResult<DevicePeriodCheckPlanRespVO> getDevicePeriodCheckPlan(@RequestParam("id") Long id) {
|
||||
DevicePeriodCheckPlanDO devicePeriodCheckPlan = devicePeriodCheckPlanService.getDevicePeriodCheckPlan(id);
|
||||
return success(BeanUtils.toBean(devicePeriodCheckPlan, DevicePeriodCheckPlanRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备-期间核查计划分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:query')")
|
||||
public CommonResult<PageResult<DevicePeriodCheckPlanRespVO>> getDevicePeriodCheckPlanPage(@Valid DevicePeriodCheckPlanPageReqVO pageReqVO) {
|
||||
PageResult<DevicePeriodCheckPlanDO> pageResult = devicePeriodCheckPlanService.getDevicePeriodCheckPlanPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DevicePeriodCheckPlanRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备-期间核查计划 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-period-check-plan:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDevicePeriodCheckPlanExcel(@Valid DevicePeriodCheckPlanPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DevicePeriodCheckPlanDO> list = devicePeriodCheckPlanService.getDevicePeriodCheckPlanPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备-期间核查计划.xls", "数据", DevicePeriodCheckPlanRespVO.class,
|
||||
BeanUtils.toBean(list, DevicePeriodCheckPlanRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairApplyPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairApplyRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairApplySaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceRepairApplyDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceRepairApplyService;
|
||||
|
||||
@Tag(name = "管理后台 - 维修申请")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-repair-apply")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.devicerepairapply")
|
||||
public class DeviceRepairApplyController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceRepairApplyController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceRepairApplyService deviceRepairApplyService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建维修申请")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-apply:create')")
|
||||
public CommonResult<DeviceRepairApplyRespVO> createDeviceRepairApply(@Valid @RequestBody DeviceRepairApplySaveReqVO createReqVO) {
|
||||
return success(deviceRepairApplyService.createDeviceRepairApply(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新维修申请")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-apply:update')")
|
||||
public CommonResult<Boolean> updateDeviceRepairApply(@Valid @RequestBody DeviceRepairApplySaveReqVO updateReqVO) {
|
||||
deviceRepairApplyService.updateDeviceRepairApply(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除维修申请")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-apply:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceRepairApply(@RequestParam("id") Long id) {
|
||||
deviceRepairApplyService.deleteDeviceRepairApply(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除维修申请")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-apply:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceRepairApplyList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceRepairApplyService.deleteDeviceRepairApplyListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得维修申请")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-apply:query')")
|
||||
public CommonResult<DeviceRepairApplyRespVO> getDeviceRepairApply(@RequestParam("id") Long id) {
|
||||
DeviceRepairApplyDO deviceRepairApply = deviceRepairApplyService.getDeviceRepairApply(id);
|
||||
return success(BeanUtils.toBean(deviceRepairApply, DeviceRepairApplyRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得维修申请分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-apply:query')")
|
||||
public CommonResult<PageResult<DeviceRepairApplyRespVO>> getDeviceRepairApplyPage(@Valid DeviceRepairApplyPageReqVO pageReqVO) {
|
||||
PageResult<DeviceRepairApplyDO> pageResult = deviceRepairApplyService.getDeviceRepairApplyPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceRepairApplyRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出维修申请 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-apply:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceRepairApplyExcel(@Valid DeviceRepairApplyPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceRepairApplyDO> list = deviceRepairApplyService.getDeviceRepairApplyPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "维修申请.xls", "数据", DeviceRepairApplyRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceRepairApplyRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairAtPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairAtRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairAtSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceRepairAtDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceRepairAtService;
|
||||
|
||||
@Tag(name = "管理后台 - 故障与处理关系")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-repair-at")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.devicerepairat")
|
||||
public class DeviceRepairAtController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceRepairAtController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceRepairAtService deviceRepairAtService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建故障与处理关系")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-at:create')")
|
||||
public CommonResult<DeviceRepairAtRespVO> createDeviceRepairAt(@Valid @RequestBody DeviceRepairAtSaveReqVO createReqVO) {
|
||||
return success(deviceRepairAtService.createDeviceRepairAt(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新故障与处理关系")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-at:update')")
|
||||
public CommonResult<Boolean> updateDeviceRepairAt(@Valid @RequestBody DeviceRepairAtSaveReqVO updateReqVO) {
|
||||
deviceRepairAtService.updateDeviceRepairAt(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除故障与处理关系")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-at:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceRepairAt(@RequestParam("id") Long id) {
|
||||
deviceRepairAtService.deleteDeviceRepairAt(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除故障与处理关系")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-at:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceRepairAtList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceRepairAtService.deleteDeviceRepairAtListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得故障与处理关系")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-at:query')")
|
||||
public CommonResult<DeviceRepairAtRespVO> getDeviceRepairAt(@RequestParam("id") Long id) {
|
||||
DeviceRepairAtDO deviceRepairAt = deviceRepairAtService.getDeviceRepairAt(id);
|
||||
return success(BeanUtils.toBean(deviceRepairAt, DeviceRepairAtRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得故障与处理关系分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-at:query')")
|
||||
public CommonResult<PageResult<DeviceRepairAtRespVO>> getDeviceRepairAtPage(@Valid DeviceRepairAtPageReqVO pageReqVO) {
|
||||
PageResult<DeviceRepairAtDO> pageResult = deviceRepairAtService.getDeviceRepairAtPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceRepairAtRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出故障与处理关系 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-at:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceRepairAtExcel(@Valid DeviceRepairAtPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceRepairAtDO> list = deviceRepairAtService.getDeviceRepairAtPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "故障与处理关系.xls", "数据", DeviceRepairAtRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceRepairAtRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairDetailPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairDetailRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairDetailSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceRepairDetailDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceRepairDetailService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备维修明细")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-repair-detail")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.devicerepairdetail")
|
||||
public class DeviceRepairDetailController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceRepairDetailController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceRepairDetailService deviceRepairDetailService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备维修明细")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-detail:create')")
|
||||
public CommonResult<DeviceRepairDetailRespVO> createDeviceRepairDetail(@Valid @RequestBody DeviceRepairDetailSaveReqVO createReqVO) {
|
||||
return success(deviceRepairDetailService.createDeviceRepairDetail(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备维修明细")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-detail:update')")
|
||||
public CommonResult<Boolean> updateDeviceRepairDetail(@Valid @RequestBody DeviceRepairDetailSaveReqVO updateReqVO) {
|
||||
deviceRepairDetailService.updateDeviceRepairDetail(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备维修明细")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-detail:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceRepairDetail(@RequestParam("id") Long id) {
|
||||
deviceRepairDetailService.deleteDeviceRepairDetail(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备维修明细")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-detail:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceRepairDetailList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceRepairDetailService.deleteDeviceRepairDetailListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备维修明细")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-detail:query')")
|
||||
public CommonResult<DeviceRepairDetailRespVO> getDeviceRepairDetail(@RequestParam("id") Long id) {
|
||||
DeviceRepairDetailDO deviceRepairDetail = deviceRepairDetailService.getDeviceRepairDetail(id);
|
||||
return success(BeanUtils.toBean(deviceRepairDetail, DeviceRepairDetailRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备维修明细分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-detail:query')")
|
||||
public CommonResult<PageResult<DeviceRepairDetailRespVO>> getDeviceRepairDetailPage(@Valid DeviceRepairDetailPageReqVO pageReqVO) {
|
||||
PageResult<DeviceRepairDetailDO> pageResult = deviceRepairDetailService.getDeviceRepairDetailPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceRepairDetailRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备维修明细 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-detail:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceRepairDetailExcel(@Valid DeviceRepairDetailPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceRepairDetailDO> list = deviceRepairDetailService.getDeviceRepairDetailPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备维修明细.xls", "数据", DeviceRepairDetailRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceRepairDetailRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairResultDetailPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairResultDetailRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairResultDetailSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceRepairResultDetailDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceRepairResultDetailService;
|
||||
|
||||
@Tag(name = "管理后台 - 故障处理明细")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-repair-result-detail")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.devicerepairresultdetail")
|
||||
public class DeviceRepairResultDetailController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceRepairResultDetailController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceRepairResultDetailService deviceRepairResultDetailService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建故障处理明细")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-result-detail:create')")
|
||||
public CommonResult<DeviceRepairResultDetailRespVO> createDeviceRepairResultDetail(@Valid @RequestBody DeviceRepairResultDetailSaveReqVO createReqVO) {
|
||||
return success(deviceRepairResultDetailService.createDeviceRepairResultDetail(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新故障处理明细")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-result-detail:update')")
|
||||
public CommonResult<Boolean> updateDeviceRepairResultDetail(@Valid @RequestBody DeviceRepairResultDetailSaveReqVO updateReqVO) {
|
||||
deviceRepairResultDetailService.updateDeviceRepairResultDetail(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除故障处理明细")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-result-detail:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceRepairResultDetail(@RequestParam("id") Long id) {
|
||||
deviceRepairResultDetailService.deleteDeviceRepairResultDetail(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除故障处理明细")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-result-detail:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceRepairResultDetailList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceRepairResultDetailService.deleteDeviceRepairResultDetailListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得故障处理明细")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-result-detail:query')")
|
||||
public CommonResult<DeviceRepairResultDetailRespVO> getDeviceRepairResultDetail(@RequestParam("id") Long id) {
|
||||
DeviceRepairResultDetailDO deviceRepairResultDetail = deviceRepairResultDetailService.getDeviceRepairResultDetail(id);
|
||||
return success(BeanUtils.toBean(deviceRepairResultDetail, DeviceRepairResultDetailRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得故障处理明细分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-result-detail:query')")
|
||||
public CommonResult<PageResult<DeviceRepairResultDetailRespVO>> getDeviceRepairResultDetailPage(@Valid DeviceRepairResultDetailPageReqVO pageReqVO) {
|
||||
PageResult<DeviceRepairResultDetailDO> pageResult = deviceRepairResultDetailService.getDeviceRepairResultDetailPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceRepairResultDetailRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出故障处理明细 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-repair-result-detail:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceRepairResultDetailExcel(@Valid DeviceRepairResultDetailPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceRepairResultDetailDO> list = deviceRepairResultDetailService.getDeviceRepairResultDetailPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "故障处理明细.xls", "数据", DeviceRepairResultDetailRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceRepairResultDetailRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.admin;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceUseRecordPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceUseRecordRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceUseRecordSaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceUseRecordDO;
|
||||
import com.zt.plat.module.qms.resource.device.service.DeviceUseRecordService;
|
||||
|
||||
@Tag(name = "管理后台 - 设备-使用记录")
|
||||
@RestController
|
||||
@RequestMapping("/qms/device-use-record")
|
||||
@Validated
|
||||
@FileUploadController(source = "qms.deviceuserecord")
|
||||
public class DeviceUseRecordController extends AbstractFileUploadController implements BusinessControllerMarker{
|
||||
|
||||
static {
|
||||
FileUploadController annotation = DeviceUseRecordController.class.getAnnotation(FileUploadController.class);
|
||||
if (annotation != null) {
|
||||
setFileUploadInfo(annotation);
|
||||
}
|
||||
}
|
||||
|
||||
@Resource
|
||||
private DeviceUseRecordService deviceUseRecordService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建设备-使用记录")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-use-record:create')")
|
||||
public CommonResult<DeviceUseRecordRespVO> createDeviceUseRecord(@Valid @RequestBody DeviceUseRecordSaveReqVO createReqVO) {
|
||||
return success(deviceUseRecordService.createDeviceUseRecord(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新设备-使用记录")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-use-record:update')")
|
||||
public CommonResult<Boolean> updateDeviceUseRecord(@Valid @RequestBody DeviceUseRecordSaveReqVO updateReqVO) {
|
||||
deviceUseRecordService.updateDeviceUseRecord(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除设备-使用记录")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-use-record:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceUseRecord(@RequestParam("id") Long id) {
|
||||
deviceUseRecordService.deleteDeviceUseRecord(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除设备-使用记录")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-use-record:delete')")
|
||||
public CommonResult<Boolean> deleteDeviceUseRecordList(@RequestBody BatchDeleteReqVO req) {
|
||||
deviceUseRecordService.deleteDeviceUseRecordListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得设备-使用记录")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-use-record:query')")
|
||||
public CommonResult<DeviceUseRecordRespVO> getDeviceUseRecord(@RequestParam("id") Long id) {
|
||||
DeviceUseRecordDO deviceUseRecord = deviceUseRecordService.getDeviceUseRecord(id);
|
||||
return success(BeanUtils.toBean(deviceUseRecord, DeviceUseRecordRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得设备-使用记录分页")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-use-record:query')")
|
||||
public CommonResult<PageResult<DeviceUseRecordRespVO>> getDeviceUseRecordPage(@Valid DeviceUseRecordPageReqVO pageReqVO) {
|
||||
PageResult<DeviceUseRecordDO> pageResult = deviceUseRecordService.getDeviceUseRecordPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, DeviceUseRecordRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出设备-使用记录 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('qms:device-use-record:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportDeviceUseRecordExcel(@Valid DeviceUseRecordPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<DeviceUseRecordDO> list = deviceUseRecordService.getDeviceUseRecordPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "设备-使用记录.xls", "数据", DeviceUseRecordRespVO.class,
|
||||
BeanUtils.toBean(list, DeviceUseRecordRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 附属设备关系分页 Request VO")
|
||||
@Data
|
||||
public class DeviceAffiliationRelativityPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "主设备id", example = "20920")
|
||||
private Long parentProductId;
|
||||
|
||||
@Schema(description = "子设备id", example = "28766")
|
||||
private Long childDeviceId;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
private Integer sortNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 附属设备关系 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceAffiliationRelativityRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30536")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "主设备id", example = "20920")
|
||||
@ExcelProperty("主设备id")
|
||||
private Long parentProductId;
|
||||
|
||||
@Schema(description = "子设备id", example = "28766")
|
||||
@ExcelProperty("子设备id")
|
||||
private Long childDeviceId;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
@ExcelProperty("排序号")
|
||||
private Integer sortNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 附属设备关系新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceAffiliationRelativitySaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30536")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "主设备id", example = "20920")
|
||||
private Long parentProductId;
|
||||
|
||||
@Schema(description = "子设备id", example = "28766")
|
||||
private Long childDeviceId;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
private Integer sortNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备通用流程明细分页 Request VO")
|
||||
@Data
|
||||
public class DeviceApplyDetailPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "父ID", example = "12485")
|
||||
private Long applyId;
|
||||
|
||||
@Schema(description = "设备id", example = "140")
|
||||
private Long deviceInfomationId;
|
||||
|
||||
@Schema(description = "设备借用明细id", example = "16899")
|
||||
private Long deviceBorrowDetailId;
|
||||
|
||||
@Schema(description = "表单数据,表单数据")
|
||||
private String formData;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备通用流程明细 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceApplyDetailRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17120")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "父ID", example = "12485")
|
||||
@ExcelProperty("父ID")
|
||||
private Long applyId;
|
||||
|
||||
@Schema(description = "设备id", example = "140")
|
||||
@ExcelProperty("设备id")
|
||||
private Long deviceInfomationId;
|
||||
|
||||
@Schema(description = "设备借用明细id", example = "16899")
|
||||
@ExcelProperty("设备借用明细id")
|
||||
private Long deviceBorrowDetailId;
|
||||
|
||||
@Schema(description = "表单数据,表单数据")
|
||||
@ExcelProperty("表单数据,表单数据")
|
||||
private String formData;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备通用流程明细新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceApplyDetailSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17120")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "父ID", example = "12485")
|
||||
private Long applyId;
|
||||
|
||||
@Schema(description = "设备id", example = "140")
|
||||
private Long deviceInfomationId;
|
||||
|
||||
@Schema(description = "设备借用明细id", example = "16899")
|
||||
private Long deviceBorrowDetailId;
|
||||
|
||||
@Schema(description = "表单数据,表单数据")
|
||||
private String formData;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-检定校准分页 Request VO")
|
||||
@Data
|
||||
public class DeviceCalibrationPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "检定校准计划id", example = "22068")
|
||||
private Long planId;
|
||||
|
||||
@Schema(description = "有效标识")
|
||||
private String effectiveFlag;
|
||||
|
||||
@Schema(description = "设备id", example = "21116")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "供应商名称", example = "赵六")
|
||||
private String supplierName;
|
||||
|
||||
@Schema(description = "供应商ID", example = "24250")
|
||||
private Long supplierId;
|
||||
|
||||
@Schema(description = "校准点/范围")
|
||||
private String specification;
|
||||
|
||||
@Schema(description = "计划检定校准日期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] planCheckDate;
|
||||
|
||||
@Schema(description = "上次检定校准日期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] lastCheckDate;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "类型:检定|校准", example = "2")
|
||||
private String checkType;
|
||||
|
||||
@Schema(description = "检定校准日期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] checkDate;
|
||||
|
||||
@Schema(description = "检定校准单位")
|
||||
private String agent;
|
||||
|
||||
@Schema(description = "证书编号")
|
||||
private String certificateCode;
|
||||
|
||||
@Schema(description = "有效期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] validityDate;
|
||||
|
||||
@Schema(description = "确认情况(理由)")
|
||||
private String checkContent;
|
||||
|
||||
@Schema(description = "确认结果")
|
||||
private String checkResult;
|
||||
|
||||
@Schema(description = "检定校准状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "24905")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "作废状态")
|
||||
private Integer cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-检定校准计划分页 Request VO")
|
||||
@Data
|
||||
public class DeviceCalibrationPlanPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "汇总计划id", example = "11537")
|
||||
private Long productId;
|
||||
|
||||
@Schema(description = "年度")
|
||||
private String checkYear;
|
||||
|
||||
@Schema(description = "申请人", example = "赵六")
|
||||
private String applyUserName;
|
||||
|
||||
@Schema(description = "流程实例id", example = "24442")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "申请标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "班组提交标识:1-已提交")
|
||||
private Integer basicSubmitFlag;
|
||||
|
||||
@Schema(description = "退回意见")
|
||||
private String rollbackRemark;
|
||||
|
||||
@Schema(description = "数据类型:班组/汇总", example = "1")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "作废标识:0-有效;1-作废")
|
||||
private String cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-检定校准计划 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceCalibrationPlanRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4957")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "汇总计划id", example = "11537")
|
||||
@ExcelProperty("汇总计划id")
|
||||
private Long productId;
|
||||
|
||||
@Schema(description = "年度")
|
||||
@ExcelProperty("年度")
|
||||
private String checkYear;
|
||||
|
||||
@Schema(description = "申请人", example = "赵六")
|
||||
@ExcelProperty("申请人")
|
||||
private String applyUserName;
|
||||
|
||||
@Schema(description = "流程实例id", example = "24442")
|
||||
@ExcelProperty("流程实例id")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
@ExcelProperty("审批状态")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "申请标题")
|
||||
@ExcelProperty("申请标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "班组提交标识:1-已提交")
|
||||
@ExcelProperty("班组提交标识:1-已提交")
|
||||
private Integer basicSubmitFlag;
|
||||
|
||||
@Schema(description = "退回意见")
|
||||
@ExcelProperty("退回意见")
|
||||
private String rollbackRemark;
|
||||
|
||||
@Schema(description = "数据类型:班组/汇总", example = "1")
|
||||
@ExcelProperty("数据类型:班组/汇总")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "作废标识:0-有效;1-作废")
|
||||
@ExcelProperty("作废标识:0-有效;1-作废")
|
||||
private String cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-检定校准计划新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceCalibrationPlanSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4957")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "汇总计划id", example = "11537")
|
||||
private Long productId;
|
||||
|
||||
@Schema(description = "年度")
|
||||
private String checkYear;
|
||||
|
||||
@Schema(description = "申请人", example = "赵六")
|
||||
private String applyUserName;
|
||||
|
||||
@Schema(description = "流程实例id", example = "24442")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "申请标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "班组提交标识:1-已提交")
|
||||
private Integer basicSubmitFlag;
|
||||
|
||||
@Schema(description = "退回意见")
|
||||
private String rollbackRemark;
|
||||
|
||||
@Schema(description = "数据类型:班组/汇总", example = "1")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "作废标识:0-有效;1-作废")
|
||||
private String cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-检定校准 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceCalibrationRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "26716")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检定校准计划id", example = "22068")
|
||||
@ExcelProperty("检定校准计划id")
|
||||
private Long planId;
|
||||
|
||||
@Schema(description = "有效标识")
|
||||
@ExcelProperty("有效标识")
|
||||
private String effectiveFlag;
|
||||
|
||||
@Schema(description = "设备id", example = "21116")
|
||||
@ExcelProperty("设备id")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "供应商名称", example = "赵六")
|
||||
@ExcelProperty("供应商名称")
|
||||
private Long supplierName;
|
||||
|
||||
@Schema(description = "供应商ID", example = "24250")
|
||||
@ExcelProperty("供应商ID")
|
||||
private Long supplierId;
|
||||
|
||||
@Schema(description = "校准点/范围")
|
||||
@ExcelProperty("校准点/范围")
|
||||
private String specification;
|
||||
|
||||
@Schema(description = "计划检定校准日期")
|
||||
@ExcelProperty("计划检定校准日期")
|
||||
private LocalDateTime planCheckDate;
|
||||
|
||||
@Schema(description = "上次检定校准日期")
|
||||
@ExcelProperty("上次检定校准日期")
|
||||
private LocalDateTime lastCheckDate;
|
||||
|
||||
@Schema(description = "频次")
|
||||
@ExcelProperty("频次")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "类型:检定|校准", example = "2")
|
||||
@ExcelProperty("类型:检定|校准")
|
||||
private String checkType;
|
||||
|
||||
@Schema(description = "检定校准日期")
|
||||
@ExcelProperty("检定校准日期")
|
||||
private LocalDateTime checkDate;
|
||||
|
||||
@Schema(description = "检定校准单位")
|
||||
@ExcelProperty("检定校准单位")
|
||||
private String agent;
|
||||
|
||||
@Schema(description = "证书编号")
|
||||
@ExcelProperty("证书编号")
|
||||
private String certificateCode;
|
||||
|
||||
@Schema(description = "有效期")
|
||||
@ExcelProperty("有效期")
|
||||
private LocalDateTime validityDate;
|
||||
|
||||
@Schema(description = "确认情况(理由)")
|
||||
@ExcelProperty("确认情况(理由)")
|
||||
private String checkContent;
|
||||
|
||||
@Schema(description = "确认结果")
|
||||
@ExcelProperty("确认结果")
|
||||
private String checkResult;
|
||||
|
||||
@Schema(description = "检定校准状态", example = "2")
|
||||
@ExcelProperty("检定校准状态")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "24905")
|
||||
@ExcelProperty("流程实例id")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "作废状态")
|
||||
@ExcelProperty("作废状态")
|
||||
private Integer cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-检定校准新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceCalibrationSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "26716")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检定校准计划id", example = "22068")
|
||||
private Long planId;
|
||||
|
||||
@Schema(description = "有效标识")
|
||||
private String effectiveFlag;
|
||||
|
||||
@Schema(description = "设备id", example = "21116")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "供应商名称", example = "赵六")
|
||||
private Long supplierName;
|
||||
|
||||
@Schema(description = "供应商ID", example = "24250")
|
||||
private Long supplierId;
|
||||
|
||||
@Schema(description = "校准点/范围")
|
||||
private String specification;
|
||||
|
||||
@Schema(description = "计划检定校准日期")
|
||||
private LocalDateTime planCheckDate;
|
||||
|
||||
@Schema(description = "上次检定校准日期")
|
||||
private LocalDateTime lastCheckDate;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "类型:检定|校准", example = "2")
|
||||
private String checkType;
|
||||
|
||||
@Schema(description = "检定校准日期")
|
||||
private LocalDateTime checkDate;
|
||||
|
||||
@Schema(description = "检定校准单位")
|
||||
private String agent;
|
||||
|
||||
@Schema(description = "证书编号")
|
||||
private String certificateCode;
|
||||
|
||||
@Schema(description = "有效期")
|
||||
private LocalDateTime validityDate;
|
||||
|
||||
@Schema(description = "确认情况(理由)")
|
||||
private String checkContent;
|
||||
|
||||
@Schema(description = "确认结果")
|
||||
private String checkResult;
|
||||
|
||||
@Schema(description = "检定校准状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "24905")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "作废状态")
|
||||
private Integer cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-检查项目配置分页 Request VO")
|
||||
@Data
|
||||
public class DeviceConfigBusinessItemPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "业务规则id", example = "25405")
|
||||
private Long ruleId;
|
||||
|
||||
@Schema(description = "业务键")
|
||||
private String itemKey;
|
||||
|
||||
@Schema(description = "项目名称", example = "张三")
|
||||
private String itemName;
|
||||
|
||||
@Schema(description = "频次类型", example = "1")
|
||||
private String frequencyType;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequency;
|
||||
|
||||
@Schema(description = "检查标准")
|
||||
private String standard;
|
||||
|
||||
@Schema(description = "检查方法")
|
||||
private String itemMethod;
|
||||
|
||||
@Schema(description = "频次说明")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "责任人")
|
||||
private String dutyRemark;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
private Integer orderNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-检查项目配置 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceConfigBusinessItemRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31814")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "业务规则id", example = "25405")
|
||||
@ExcelProperty("业务规则id")
|
||||
private Long ruleId;
|
||||
|
||||
@Schema(description = "业务键")
|
||||
@ExcelProperty("业务键")
|
||||
private String itemKey;
|
||||
|
||||
@Schema(description = "项目名称", example = "张三")
|
||||
@ExcelProperty("项目名称")
|
||||
private String itemName;
|
||||
|
||||
@Schema(description = "频次类型", example = "1")
|
||||
@ExcelProperty("频次类型")
|
||||
private String frequencyType;
|
||||
|
||||
@Schema(description = "频次")
|
||||
@ExcelProperty("频次")
|
||||
private String frequency;
|
||||
|
||||
@Schema(description = "检查标准")
|
||||
@ExcelProperty("检查标准")
|
||||
private String standard;
|
||||
|
||||
@Schema(description = "检查方法")
|
||||
@ExcelProperty("检查方法")
|
||||
private String itemMethod;
|
||||
|
||||
@Schema(description = "频次说明")
|
||||
@ExcelProperty("频次说明")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "责任人")
|
||||
@ExcelProperty("责任人")
|
||||
private String dutyRemark;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
@ExcelProperty("排序号")
|
||||
private Integer orderNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-检查项目配置新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceConfigBusinessItemSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31814")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "业务规则id", example = "25405")
|
||||
private Long ruleId;
|
||||
|
||||
@Schema(description = "业务键")
|
||||
private String itemKey;
|
||||
|
||||
@Schema(description = "项目名称", example = "张三")
|
||||
private String itemName;
|
||||
|
||||
@Schema(description = "频次类型", example = "1")
|
||||
private String frequencyType;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequency;
|
||||
|
||||
@Schema(description = "检查标准")
|
||||
private String standard;
|
||||
|
||||
@Schema(description = "检查方法")
|
||||
private String itemMethod;
|
||||
|
||||
@Schema(description = "频次说明")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "责任人")
|
||||
private String dutyRemark;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
private Integer orderNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-保养分项分页 Request VO")
|
||||
@Data
|
||||
public class DeviceMaintainItemPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "父ID", example = "23462")
|
||||
private Long parentId;
|
||||
|
||||
@Schema(description = "项id", example = "19985")
|
||||
private Long checkItemId;
|
||||
|
||||
@Schema(description = "保养情况、异常情况")
|
||||
private String checkResult;
|
||||
|
||||
@Schema(description = "处理结果")
|
||||
private String conclusion;
|
||||
|
||||
@Schema(description = "执行说明")
|
||||
private String checkRemark;
|
||||
|
||||
@Schema(description = "执行日期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] checkDate;
|
||||
|
||||
@Schema(description = "执行人", example = "王五")
|
||||
private String checkUserName;
|
||||
|
||||
@Schema(description = "执行人id", example = "25621")
|
||||
private Long checkUserId;
|
||||
|
||||
@Schema(description = "业务键,预留字段")
|
||||
private String itemKey;
|
||||
|
||||
@Schema(description = "项目名称", example = "ZT")
|
||||
private String itemName;
|
||||
|
||||
@Schema(description = "频次类型", example = "1")
|
||||
private String frequencyType;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequency;
|
||||
|
||||
@Schema(description = "所属周期开始日期")
|
||||
private LocalDateTime frequencyItemStart;
|
||||
|
||||
@Schema(description = "所属周期截止日期")
|
||||
private LocalDateTime frequencyItemEnd;
|
||||
|
||||
@Schema(description = "检查标准")
|
||||
private String standard;
|
||||
|
||||
@Schema(description = "检查方法")
|
||||
private String itemMethod;
|
||||
|
||||
@Schema(description = "频次说明")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "责任人")
|
||||
private String dutyRemark;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
private Integer periodNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-保养分项 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceMaintainItemRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11836")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "父ID", example = "23462")
|
||||
@ExcelProperty("父ID")
|
||||
private Long parentId;
|
||||
|
||||
@Schema(description = "项id", example = "19985")
|
||||
@ExcelProperty("项id")
|
||||
private Long checkItemId;
|
||||
|
||||
@Schema(description = "保养情况、异常情况")
|
||||
@ExcelProperty("保养情况、异常情况")
|
||||
private String checkResult;
|
||||
|
||||
@Schema(description = "处理结果")
|
||||
@ExcelProperty("处理结果")
|
||||
private String conclusion;
|
||||
|
||||
@Schema(description = "执行说明")
|
||||
@ExcelProperty("执行说明")
|
||||
private String checkRemark;
|
||||
|
||||
@Schema(description = "执行日期")
|
||||
@ExcelProperty("执行日期")
|
||||
private LocalDateTime checkDate;
|
||||
|
||||
@Schema(description = "执行人", example = "王五")
|
||||
@ExcelProperty("执行人")
|
||||
private String checkUserName;
|
||||
|
||||
@Schema(description = "执行人id", example = "25621")
|
||||
@ExcelProperty("执行人id")
|
||||
private Long checkUserId;
|
||||
|
||||
@Schema(description = "业务键,预留字段")
|
||||
@ExcelProperty("业务键,预留字段")
|
||||
private String itemKey;
|
||||
|
||||
@Schema(description = "项目名称", example = "ZT")
|
||||
@ExcelProperty("项目名称")
|
||||
private String itemName;
|
||||
|
||||
@Schema(description = "频次类型", example = "1")
|
||||
@ExcelProperty("频次类型")
|
||||
private String frequencyType;
|
||||
|
||||
@Schema(description = "频次")
|
||||
@ExcelProperty("频次")
|
||||
private String frequency;
|
||||
|
||||
@Schema(description = "所属周期开始日期")
|
||||
@ExcelProperty("所属周期开始日期")
|
||||
private LocalDateTime frequencyItemStart;
|
||||
|
||||
@Schema(description = "所属周期截止日期")
|
||||
@ExcelProperty("所属周期截止日期")
|
||||
private LocalDateTime frequencyItemEnd;
|
||||
|
||||
@Schema(description = "检查标准")
|
||||
@ExcelProperty("检查标准")
|
||||
private String standard;
|
||||
|
||||
@Schema(description = "检查方法")
|
||||
@ExcelProperty("检查方法")
|
||||
private String itemMethod;
|
||||
|
||||
@Schema(description = "频次说明")
|
||||
@ExcelProperty("频次说明")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "责任人")
|
||||
@ExcelProperty("责任人")
|
||||
private String dutyRemark;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
@ExcelProperty("排序号")
|
||||
private Integer periodNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-保养分项新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceMaintainItemSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11836")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "父ID", example = "23462")
|
||||
private Long parentId;
|
||||
|
||||
@Schema(description = "项id", example = "19985")
|
||||
private Long checkItemId;
|
||||
|
||||
@Schema(description = "保养情况、异常情况")
|
||||
private String checkResult;
|
||||
|
||||
@Schema(description = "处理结果")
|
||||
private String conclusion;
|
||||
|
||||
@Schema(description = "执行说明")
|
||||
private String checkRemark;
|
||||
|
||||
@Schema(description = "执行日期")
|
||||
private LocalDateTime checkDate;
|
||||
|
||||
@Schema(description = "执行人", example = "王五")
|
||||
private String checkUserName;
|
||||
|
||||
@Schema(description = "执行人id", example = "25621")
|
||||
private Long checkUserId;
|
||||
|
||||
@Schema(description = "业务键,预留字段")
|
||||
private String itemKey;
|
||||
|
||||
@Schema(description = "项目名称", example = "ZT")
|
||||
private String itemName;
|
||||
|
||||
@Schema(description = "频次类型", example = "1")
|
||||
private String frequencyType;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequency;
|
||||
|
||||
@Schema(description = "所属周期开始日期")
|
||||
private LocalDateTime frequencyItemStart;
|
||||
|
||||
@Schema(description = "所属周期截止日期")
|
||||
private LocalDateTime frequencyItemEnd;
|
||||
|
||||
@Schema(description = "检查标准")
|
||||
private String standard;
|
||||
|
||||
@Schema(description = "检查方法")
|
||||
private String itemMethod;
|
||||
|
||||
@Schema(description = "频次说明")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "责任人")
|
||||
private String dutyRemark;
|
||||
|
||||
@Schema(description = "排序号")
|
||||
private Integer periodNo;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-点检、保养记录分页 Request VO")
|
||||
@Data
|
||||
public class DeviceMaintainPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "数据类型", example = "2")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "业务配置id", example = "5423")
|
||||
private Long ruleId;
|
||||
|
||||
@Schema(description = "设备id", example = "32060")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "保养日期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] checkDate;
|
||||
|
||||
@Schema(description = "保养内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "保养人", example = "30355")
|
||||
private Long checkUserId;
|
||||
|
||||
@Schema(description = "保养人", example = "王五")
|
||||
private String checkUserName;
|
||||
|
||||
@Schema(description = "频次类型", example = "1")
|
||||
private String frequencyType;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequency;
|
||||
|
||||
@Schema(description = "频次说明")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "所属周期开始日期")
|
||||
private LocalDateTime frequencyTimeStart;
|
||||
|
||||
@Schema(description = "所属周期截止日期")
|
||||
private LocalDateTime frequencyTimeEnd;
|
||||
|
||||
@Schema(description = "提交标识")
|
||||
private String submitFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-点检、保养记录 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceMaintainRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "6321")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "数据类型", example = "2")
|
||||
@ExcelProperty("数据类型")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "业务配置id", example = "5423")
|
||||
@ExcelProperty("业务配置id")
|
||||
private Long ruleId;
|
||||
|
||||
@Schema(description = "设备id", example = "32060")
|
||||
@ExcelProperty("设备id")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "保养日期")
|
||||
@ExcelProperty("保养日期")
|
||||
private LocalDateTime checkDate;
|
||||
|
||||
@Schema(description = "保养内容")
|
||||
@ExcelProperty("保养内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "保养人", example = "30355")
|
||||
@ExcelProperty("保养人")
|
||||
private Long checkUserId;
|
||||
|
||||
@Schema(description = "保养人", example = "王五")
|
||||
@ExcelProperty("保养人")
|
||||
private String checkUserName;
|
||||
|
||||
@Schema(description = "频次类型", example = "1")
|
||||
@ExcelProperty("频次类型")
|
||||
private String frequencyType;
|
||||
|
||||
@Schema(description = "频次")
|
||||
@ExcelProperty("频次")
|
||||
private String frequency;
|
||||
|
||||
@Schema(description = "频次说明")
|
||||
@ExcelProperty("频次说明")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "所属周期开始日期")
|
||||
@ExcelProperty("所属周期开始日期")
|
||||
private LocalDateTime frequencyTimeStart;
|
||||
|
||||
@Schema(description = "所属周期截止日期")
|
||||
@ExcelProperty("所属周期截止日期")
|
||||
private LocalDateTime frequencyTimeEnd;
|
||||
|
||||
@Schema(description = "提交标识")
|
||||
@ExcelProperty("提交标识")
|
||||
private String submitFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-点检、保养记录新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceMaintainSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "6321")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "数据类型", example = "2")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "业务配置id", example = "5423")
|
||||
private Long ruleId;
|
||||
|
||||
@Schema(description = "设备id", example = "32060")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "保养日期")
|
||||
private LocalDateTime checkDate;
|
||||
|
||||
@Schema(description = "保养内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "保养人", example = "30355")
|
||||
private Long checkUserId;
|
||||
|
||||
@Schema(description = "保养人", example = "王五")
|
||||
private String checkUserName;
|
||||
|
||||
@Schema(description = "频次类型", example = "1")
|
||||
private String frequencyType;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequency;
|
||||
|
||||
@Schema(description = "频次说明")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "所属周期开始日期")
|
||||
private LocalDateTime frequencyTimeStart;
|
||||
|
||||
@Schema(description = "所属周期截止日期")
|
||||
private LocalDateTime frequencyTimeEnd;
|
||||
|
||||
@Schema(description = "提交标识")
|
||||
private String submitFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-期间核查分页 Request VO")
|
||||
@Data
|
||||
public class DevicePeriodCheckPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "期间核查计划id", example = "21407")
|
||||
private Long planId;
|
||||
|
||||
@Schema(description = "有效标识")
|
||||
private String effectiveFlag;
|
||||
|
||||
@Schema(description = "设备ID", example = "31026")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "期间核查执行人")
|
||||
private String checkPersonRemark;
|
||||
|
||||
@Schema(description = "核查人姓名", example = "张三")
|
||||
private String checkPersonName;
|
||||
|
||||
@Schema(description = "核查人id", example = "29695")
|
||||
private Long checkPersonId;
|
||||
|
||||
@Schema(description = "复核人姓名", example = "赵六")
|
||||
private String recheckPersonName;
|
||||
|
||||
@Schema(description = "复核人id", example = "10898")
|
||||
private Long recheckPersonId;
|
||||
|
||||
@Schema(description = "核查方法")
|
||||
private String checkAccording;
|
||||
|
||||
@Schema(description = "核查方法描述")
|
||||
private String checkAccordingRemark;
|
||||
|
||||
@Schema(description = "核查记录")
|
||||
private String checkContent;
|
||||
|
||||
@Schema(description = "核查结论")
|
||||
private String checkResult;
|
||||
|
||||
@Schema(description = "核查备注")
|
||||
private String checkRemark;
|
||||
|
||||
@Schema(description = "实际检查日期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] checkDate;
|
||||
|
||||
@Schema(description = "上次检查日期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] lastCheckDate;
|
||||
|
||||
@Schema(description = "计划检查日期-开始")
|
||||
private LocalDateTime planCheckDateStart;
|
||||
|
||||
@Schema(description = "计划检查日期-截止")
|
||||
private LocalDateTime planCheckDateEnd;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "31647")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-期间核查计划分页 Request VO")
|
||||
@Data
|
||||
public class DevicePeriodCheckPlanPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "汇总计划id", example = "25393")
|
||||
private Long parentId;
|
||||
|
||||
@Schema(description = "核查年度")
|
||||
private String checkYear;
|
||||
|
||||
@Schema(description = "申请人", example = "王五")
|
||||
private String applyUserName;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "27595")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "申请标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "班组提交标识,0-未提交;1-已提交")
|
||||
private String basicSubmitFlag;
|
||||
|
||||
@Schema(description = "退回意见")
|
||||
private String rollbackRemark;
|
||||
|
||||
@Schema(description = "数据类型,班组/汇总", example = "1")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "作废标识:0-有效;1-作废")
|
||||
private String cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-期间核查计划 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DevicePeriodCheckPlanRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25737")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "汇总计划id", example = "25393")
|
||||
@ExcelProperty("汇总计划id")
|
||||
private Long parentId;
|
||||
|
||||
@Schema(description = "核查年度")
|
||||
@ExcelProperty("核查年度")
|
||||
private String checkYear;
|
||||
|
||||
@Schema(description = "申请人", example = "王五")
|
||||
@ExcelProperty("申请人")
|
||||
private String applyUserName;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
@ExcelProperty("审批状态")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "27595")
|
||||
@ExcelProperty("流程实例id")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "申请标题")
|
||||
@ExcelProperty("申请标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "班组提交标识,0-未提交;1-已提交")
|
||||
@ExcelProperty("班组提交标识,0-未提交;1-已提交")
|
||||
private String basicSubmitFlag;
|
||||
|
||||
@Schema(description = "退回意见")
|
||||
@ExcelProperty("退回意见")
|
||||
private String rollbackRemark;
|
||||
|
||||
@Schema(description = "数据类型,班组/汇总", example = "1")
|
||||
@ExcelProperty("数据类型,班组/汇总")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "作废标识:0-有效;1-作废")
|
||||
@ExcelProperty("作废标识:0-有效;1-作废")
|
||||
private String cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-期间核查计划新增/修改 Request VO")
|
||||
@Data
|
||||
public class DevicePeriodCheckPlanSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25737")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "汇总计划id", example = "25393")
|
||||
private Long parentId;
|
||||
|
||||
@Schema(description = "核查年度")
|
||||
private String checkYear;
|
||||
|
||||
@Schema(description = "申请人", example = "王五")
|
||||
private String applyUserName;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "27595")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "申请标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "班组提交标识,0-未提交;1-已提交")
|
||||
private String basicSubmitFlag;
|
||||
|
||||
@Schema(description = "退回意见")
|
||||
private String rollbackRemark;
|
||||
|
||||
@Schema(description = "数据类型,班组/汇总", example = "1")
|
||||
private String dataType;
|
||||
|
||||
@Schema(description = "作废标识:0-有效;1-作废")
|
||||
private String cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-期间核查 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DevicePeriodCheckRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27613")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "期间核查计划id", example = "21407")
|
||||
@ExcelProperty("期间核查计划id")
|
||||
private Long planId;
|
||||
|
||||
@Schema(description = "有效标识")
|
||||
@ExcelProperty("有效标识")
|
||||
private String effectiveFlag;
|
||||
|
||||
@Schema(description = "设备ID", example = "31026")
|
||||
@ExcelProperty("设备ID")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "期间核查执行人")
|
||||
@ExcelProperty("期间核查执行人")
|
||||
private String checkPersonRemark;
|
||||
|
||||
@Schema(description = "核查人姓名", example = "张三")
|
||||
@ExcelProperty("核查人姓名")
|
||||
private String checkPersonName;
|
||||
|
||||
@Schema(description = "核查人id", example = "29695")
|
||||
@ExcelProperty("核查人id")
|
||||
private Long checkPersonId;
|
||||
|
||||
@Schema(description = "复核人姓名", example = "赵六")
|
||||
@ExcelProperty("复核人姓名")
|
||||
private String recheckPersonName;
|
||||
|
||||
@Schema(description = "复核人id", example = "10898")
|
||||
@ExcelProperty("复核人id")
|
||||
private Long recheckPersonId;
|
||||
|
||||
@Schema(description = "核查方法")
|
||||
@ExcelProperty("核查方法")
|
||||
private String checkAccording;
|
||||
|
||||
@Schema(description = "核查方法描述")
|
||||
@ExcelProperty("核查方法描述")
|
||||
private String checkAccordingRemark;
|
||||
|
||||
@Schema(description = "核查记录")
|
||||
@ExcelProperty("核查记录")
|
||||
private String checkContent;
|
||||
|
||||
@Schema(description = "核查结论")
|
||||
@ExcelProperty("核查结论")
|
||||
private String checkResult;
|
||||
|
||||
@Schema(description = "核查备注")
|
||||
@ExcelProperty("核查备注")
|
||||
private String checkRemark;
|
||||
|
||||
@Schema(description = "实际检查日期")
|
||||
@ExcelProperty("实际检查日期")
|
||||
private LocalDateTime checkDate;
|
||||
|
||||
@Schema(description = "上次检查日期")
|
||||
@ExcelProperty("上次检查日期")
|
||||
private LocalDateTime lastCheckDate;
|
||||
|
||||
@Schema(description = "计划检查日期-开始")
|
||||
@ExcelProperty("计划检查日期-开始")
|
||||
private LocalDateTime planCheckDateStart;
|
||||
|
||||
@Schema(description = "计划检查日期-截止")
|
||||
@ExcelProperty("计划检查日期-截止")
|
||||
private LocalDateTime planCheckDateEnd;
|
||||
|
||||
@Schema(description = "频次")
|
||||
@ExcelProperty("频次")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
@ExcelProperty("审批状态")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "31647")
|
||||
@ExcelProperty("流程实例id")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-期间核查新增/修改 Request VO")
|
||||
@Data
|
||||
public class DevicePeriodCheckSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27613")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "期间核查计划id", example = "21407")
|
||||
private Long planId;
|
||||
|
||||
@Schema(description = "有效标识")
|
||||
private String effectiveFlag;
|
||||
|
||||
@Schema(description = "设备ID", example = "31026")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "期间核查执行人")
|
||||
private String checkPersonRemark;
|
||||
|
||||
@Schema(description = "核查人姓名", example = "张三")
|
||||
private String checkPersonName;
|
||||
|
||||
@Schema(description = "核查人id", example = "29695")
|
||||
private Long checkPersonId;
|
||||
|
||||
@Schema(description = "复核人姓名", example = "赵六")
|
||||
private String recheckPersonName;
|
||||
|
||||
@Schema(description = "复核人id", example = "10898")
|
||||
private Long recheckPersonId;
|
||||
|
||||
@Schema(description = "核查方法")
|
||||
private String checkAccording;
|
||||
|
||||
@Schema(description = "核查方法描述")
|
||||
private String checkAccordingRemark;
|
||||
|
||||
@Schema(description = "核查记录")
|
||||
private String checkContent;
|
||||
|
||||
@Schema(description = "核查结论")
|
||||
private String checkResult;
|
||||
|
||||
@Schema(description = "核查备注")
|
||||
private String checkRemark;
|
||||
|
||||
@Schema(description = "实际检查日期")
|
||||
private LocalDateTime checkDate;
|
||||
|
||||
@Schema(description = "上次检查日期")
|
||||
private LocalDateTime lastCheckDate;
|
||||
|
||||
@Schema(description = "计划检查日期-开始")
|
||||
private LocalDateTime planCheckDateStart;
|
||||
|
||||
@Schema(description = "计划检查日期-截止")
|
||||
private LocalDateTime planCheckDateEnd;
|
||||
|
||||
@Schema(description = "频次")
|
||||
private String frequencyRemark;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "31647")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 维修申请分页 Request VO")
|
||||
@Data
|
||||
public class DeviceRepairApplyPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "设备id", example = "16749")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "使用地点")
|
||||
private String devicePosition;
|
||||
|
||||
@Schema(description = "申请人", example = "赵六")
|
||||
private String applyUserName;
|
||||
|
||||
@Schema(description = "申请时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] applyTime;
|
||||
|
||||
@Schema(description = "申请标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "26349")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "故障描述/故障现象")
|
||||
private String faultDescription;
|
||||
|
||||
@Schema(description = "处置意见")
|
||||
private String conclusion;
|
||||
|
||||
@Schema(description = "是否维修")
|
||||
private String repairFlag;
|
||||
|
||||
@Schema(description = "故障分析")
|
||||
private String repairAnalysis;
|
||||
|
||||
@Schema(description = "处理方案")
|
||||
private String repairSolution;
|
||||
|
||||
@Schema(description = "维修方式", example = "2")
|
||||
private String repairType;
|
||||
|
||||
@Schema(description = "作废标识")
|
||||
private String cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 维修申请 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceRepairApplyRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26714")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "设备id", example = "16749")
|
||||
@ExcelProperty("设备id")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "使用地点")
|
||||
@ExcelProperty("使用地点")
|
||||
private String devicePosition;
|
||||
|
||||
@Schema(description = "申请人", example = "赵六")
|
||||
@ExcelProperty("申请人")
|
||||
private String applyUserName;
|
||||
|
||||
@Schema(description = "申请时间")
|
||||
@ExcelProperty("申请时间")
|
||||
private LocalDateTime applyTime;
|
||||
|
||||
@Schema(description = "申请标题")
|
||||
@ExcelProperty("申请标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
@ExcelProperty("审批状态")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "26349")
|
||||
@ExcelProperty("流程实例id")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "故障描述/故障现象")
|
||||
@ExcelProperty("故障描述/故障现象")
|
||||
private String faultDescription;
|
||||
|
||||
@Schema(description = "处置意见")
|
||||
@ExcelProperty("处置意见")
|
||||
private String conclusion;
|
||||
|
||||
@Schema(description = "是否维修")
|
||||
@ExcelProperty("是否维修")
|
||||
private String repairFlag;
|
||||
|
||||
@Schema(description = "故障分析")
|
||||
@ExcelProperty("故障分析")
|
||||
private String repairAnalysis;
|
||||
|
||||
@Schema(description = "处理方案")
|
||||
@ExcelProperty("处理方案")
|
||||
private String repairSolution;
|
||||
|
||||
@Schema(description = "维修方式", example = "2")
|
||||
@ExcelProperty("维修方式")
|
||||
private String repairType;
|
||||
|
||||
@Schema(description = "作废标识")
|
||||
@ExcelProperty("作废标识")
|
||||
private String cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 维修申请新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceRepairApplySaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26714")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "设备id", example = "16749")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "使用地点")
|
||||
private String devicePosition;
|
||||
|
||||
@Schema(description = "申请人", example = "赵六")
|
||||
private String applyUserName;
|
||||
|
||||
@Schema(description = "申请时间")
|
||||
private LocalDateTime applyTime;
|
||||
|
||||
@Schema(description = "申请标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "审批状态", example = "2")
|
||||
private String flowStatus;
|
||||
|
||||
@Schema(description = "流程实例id", example = "26349")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "故障描述/故障现象")
|
||||
private String faultDescription;
|
||||
|
||||
@Schema(description = "处置意见")
|
||||
private String conclusion;
|
||||
|
||||
@Schema(description = "是否维修")
|
||||
private String repairFlag;
|
||||
|
||||
@Schema(description = "故障分析")
|
||||
private String repairAnalysis;
|
||||
|
||||
@Schema(description = "处理方案")
|
||||
private String repairSolution;
|
||||
|
||||
@Schema(description = "维修方式", example = "2")
|
||||
private String repairType;
|
||||
|
||||
@Schema(description = "作废标识")
|
||||
private String cancelFlag;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 故障与处理关系分页 Request VO")
|
||||
@Data
|
||||
public class DeviceRepairAtPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "故障说明明细id", example = "1967")
|
||||
private Long repairDetailId;
|
||||
|
||||
@Schema(description = "故障处理明细id", example = "14276")
|
||||
private Long resultDetailId;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 故障与处理关系 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceRepairAtRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20425")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "故障说明明细id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1967")
|
||||
@ExcelProperty("故障说明明细id")
|
||||
private Long repairDetailId;
|
||||
|
||||
@Schema(description = "故障处理明细id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14276")
|
||||
@ExcelProperty("故障处理明细id")
|
||||
private Long resultDetailId;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 故障与处理关系新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceRepairAtSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20425")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "故障说明明细id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1967")
|
||||
@NotNull(message = "故障说明明细id不能为空")
|
||||
private Long repairDetailId;
|
||||
|
||||
@Schema(description = "故障处理明细id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14276")
|
||||
@NotNull(message = "故障处理明细id不能为空")
|
||||
private Long resultDetailId;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备维修明细分页 Request VO")
|
||||
@Data
|
||||
public class DeviceRepairDetailPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "维修申请id", example = "16105")
|
||||
private Long repairId;
|
||||
|
||||
@Schema(description = "故障说明")
|
||||
private String faultContent;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备维修明细 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceRepairDetailRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14417")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "维修申请id", example = "16105")
|
||||
@ExcelProperty("维修申请id")
|
||||
private Long repairId;
|
||||
|
||||
@Schema(description = "故障说明")
|
||||
@ExcelProperty("故障说明")
|
||||
private String faultContent;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备维修明细新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceRepairDetailSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14417")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "维修申请id", example = "16105")
|
||||
private Long repairId;
|
||||
|
||||
@Schema(description = "故障说明")
|
||||
private String faultContent;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 故障处理明细分页 Request VO")
|
||||
@Data
|
||||
public class DeviceRepairResultDetailPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "解决说明")
|
||||
private String solutionContent;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 故障处理明细 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceRepairResultDetailRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9148")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "解决说明")
|
||||
@ExcelProperty("解决说明")
|
||||
private String solutionContent;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 故障处理明细新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceRepairResultDetailSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9148")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "解决说明")
|
||||
private String solutionContent;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-使用记录分页 Request VO")
|
||||
@Data
|
||||
public class DeviceUseRecordPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "设备id", example = "5771")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "使用人", example = "王五")
|
||||
private String userName;
|
||||
|
||||
@Schema(description = "使用人id", example = "11450")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "开始使用时间")
|
||||
private LocalDateTime useTimeStart;
|
||||
|
||||
@Schema(description = "结束使用时间")
|
||||
private LocalDateTime useTimeEnd;
|
||||
|
||||
@Schema(description = "使用记录")
|
||||
private String useRemark;
|
||||
|
||||
@Schema(description = "使用前状态")
|
||||
private String stateBefore;
|
||||
|
||||
@Schema(description = "使用中状态(正常/异常)")
|
||||
private String stateRun;
|
||||
|
||||
@Schema(description = "使用后状态")
|
||||
private String stateAfter;
|
||||
|
||||
@Schema(description = "温度")
|
||||
private String temperature;
|
||||
|
||||
@Schema(description = "湿度")
|
||||
private String humidity;
|
||||
|
||||
@Schema(description = "数据来源,PC|PAD|PDA")
|
||||
private String dataSource;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-使用记录 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceUseRecordRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17384")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "设备id", example = "5771")
|
||||
@ExcelProperty("设备id")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "使用人", example = "王五")
|
||||
@ExcelProperty("使用人")
|
||||
private String userName;
|
||||
|
||||
@Schema(description = "使用人id", example = "11450")
|
||||
@ExcelProperty("使用人id")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "开始使用时间")
|
||||
@ExcelProperty("开始使用时间")
|
||||
private LocalDateTime useTimeStart;
|
||||
|
||||
@Schema(description = "结束使用时间")
|
||||
@ExcelProperty("结束使用时间")
|
||||
private LocalDateTime useTimeEnd;
|
||||
|
||||
@Schema(description = "使用记录")
|
||||
@ExcelProperty("使用记录")
|
||||
private String useRemark;
|
||||
|
||||
@Schema(description = "使用前状态")
|
||||
@ExcelProperty("使用前状态")
|
||||
private String stateBefore;
|
||||
|
||||
@Schema(description = "使用中状态(正常/异常)")
|
||||
@ExcelProperty("使用中状态(正常/异常)")
|
||||
private String stateRun;
|
||||
|
||||
@Schema(description = "使用后状态")
|
||||
@ExcelProperty("使用后状态")
|
||||
private String stateAfter;
|
||||
|
||||
@Schema(description = "温度")
|
||||
@ExcelProperty("温度")
|
||||
private String temperature;
|
||||
|
||||
@Schema(description = "湿度")
|
||||
@ExcelProperty("湿度")
|
||||
private String humidity;
|
||||
|
||||
@Schema(description = "数据来源,PC|PAD|PDA")
|
||||
@ExcelProperty("数据来源,PC|PAD|PDA")
|
||||
private String dataSource;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
@ExcelProperty("所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.zt.plat.module.qms.resource.device.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 设备-使用记录新增/修改 Request VO")
|
||||
@Data
|
||||
public class DeviceUseRecordSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17384")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "设备id", example = "5771")
|
||||
private Long deviceId;
|
||||
|
||||
@Schema(description = "使用人", example = "王五")
|
||||
private String userName;
|
||||
|
||||
@Schema(description = "使用人id", example = "11450")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "开始使用时间")
|
||||
private LocalDateTime useTimeStart;
|
||||
|
||||
@Schema(description = "结束使用时间")
|
||||
private LocalDateTime useTimeEnd;
|
||||
|
||||
@Schema(description = "使用记录")
|
||||
private String useRemark;
|
||||
|
||||
@Schema(description = "使用前状态")
|
||||
private String stateBefore;
|
||||
|
||||
@Schema(description = "使用中状态(正常/异常)")
|
||||
private String stateRun;
|
||||
|
||||
@Schema(description = "使用后状态")
|
||||
private String stateAfter;
|
||||
|
||||
@Schema(description = "温度")
|
||||
private String temperature;
|
||||
|
||||
@Schema(description = "湿度")
|
||||
private String humidity;
|
||||
|
||||
@Schema(description = "数据来源,PC|PAD|PDA")
|
||||
private String dataSource;
|
||||
|
||||
@Schema(description = "所属部门")
|
||||
private String systemDepartmentCode;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 附属设备关系 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_aff_rel")
|
||||
@KeySequence("t_dev_aff_rel_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceAffiliationRelativityDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 主设备id
|
||||
*/
|
||||
@TableField("PRN_PDT_ID")
|
||||
private Long parentProductId;
|
||||
/**
|
||||
* 子设备id
|
||||
*/
|
||||
@TableField("CHD_DEV_ID")
|
||||
private Long childDeviceId;
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
@TableField("SRT_NO")
|
||||
private Integer sortNo;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备通用流程明细 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_apl_dtl")
|
||||
@KeySequence("t_dev_apl_dtl_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceApplyDetailDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
@TableField("APL_ID")
|
||||
private Long applyId;
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
@TableField("DEV_INF_ID")
|
||||
private Long deviceInfomationId;
|
||||
/**
|
||||
* 设备借用明细id
|
||||
*/
|
||||
@TableField("DEV_BRW_DTL_ID")
|
||||
private Long deviceBorrowDetailId;
|
||||
/**
|
||||
* 表单数据,表单数据
|
||||
*/
|
||||
@TableField("FORM_DAT")
|
||||
private String formData;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备-检定校准 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_clb")
|
||||
@KeySequence("t_dev_clb_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceCalibrationDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 检定校准计划id
|
||||
*/
|
||||
@TableField("PLN_ID")
|
||||
private Long planId;
|
||||
/**
|
||||
* 有效标识
|
||||
*/
|
||||
@TableField("EFCT_FLG")
|
||||
private String effectiveFlag;
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
@TableField("DEV_ID")
|
||||
private Long deviceId;
|
||||
/**
|
||||
* 供应商名称
|
||||
*/
|
||||
@TableField("SPLR_NAME")
|
||||
private Long supplierName;
|
||||
/**
|
||||
* 供应商ID
|
||||
*/
|
||||
@TableField("SPLR_ID")
|
||||
private Long supplierId;
|
||||
/**
|
||||
* 校准点/范围
|
||||
*/
|
||||
@TableField("SPEC")
|
||||
private String specification;
|
||||
/**
|
||||
* 计划检定校准日期
|
||||
*/
|
||||
@TableField("PLN_CHK_DT")
|
||||
private LocalDateTime planCheckDate;
|
||||
/**
|
||||
* 上次检定校准日期
|
||||
*/
|
||||
@TableField("LST_CHK_DT")
|
||||
private LocalDateTime lastCheckDate;
|
||||
/**
|
||||
* 频次
|
||||
*/
|
||||
@TableField("FREQ_RMK")
|
||||
private String frequencyRemark;
|
||||
/**
|
||||
* 类型:检定|校准
|
||||
*/
|
||||
@TableField("CHK_TP")
|
||||
private String checkType;
|
||||
/**
|
||||
* 检定校准日期
|
||||
*/
|
||||
@TableField("CHK_DT")
|
||||
private LocalDateTime checkDate;
|
||||
/**
|
||||
* 检定校准单位
|
||||
*/
|
||||
@TableField("AGT")
|
||||
private String agent;
|
||||
/**
|
||||
* 证书编号
|
||||
*/
|
||||
@TableField("CRTF_CD")
|
||||
private String certificateCode;
|
||||
/**
|
||||
* 有效期
|
||||
*/
|
||||
@TableField("VDTY_DT")
|
||||
private LocalDateTime validityDate;
|
||||
/**
|
||||
* 确认情况(理由)
|
||||
*/
|
||||
@TableField("CHK_CNTT")
|
||||
private String checkContent;
|
||||
/**
|
||||
* 确认结果
|
||||
*/
|
||||
@TableField("CHK_RSLT")
|
||||
private String checkResult;
|
||||
/**
|
||||
* 检定校准状态
|
||||
*/
|
||||
@TableField("FLW_STS")
|
||||
private String flowStatus;
|
||||
/**
|
||||
* 流程实例id
|
||||
*/
|
||||
@TableField("FLW_INSC_ID")
|
||||
private String flowInstanceId;
|
||||
/**
|
||||
* 作废状态
|
||||
*/
|
||||
@TableField("CNL_FLG")
|
||||
private Integer cancelFlag;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备-检定校准计划 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_clb_pln")
|
||||
@KeySequence("t_dev_clb_pln_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceCalibrationPlanDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 汇总计划id
|
||||
*/
|
||||
@TableField("PDT_ID")
|
||||
private Long productId;
|
||||
/**
|
||||
* 年度
|
||||
*/
|
||||
@TableField("CHK_YR")
|
||||
private String checkYear;
|
||||
/**
|
||||
* 申请人
|
||||
*/
|
||||
@TableField("APL_USER_NAME")
|
||||
private String applyUserName;
|
||||
/**
|
||||
* 流程实例id
|
||||
*/
|
||||
@TableField("FLW_INSC_ID")
|
||||
private String flowInstanceId;
|
||||
/**
|
||||
* 审批状态
|
||||
*/
|
||||
@TableField("FLW_STS")
|
||||
private String flowStatus;
|
||||
/**
|
||||
* 申请标题
|
||||
*/
|
||||
@TableField("TTL")
|
||||
private String title;
|
||||
/**
|
||||
* 班组提交标识:1-已提交
|
||||
*/
|
||||
@TableField("BSC_SBM_FLG")
|
||||
private Integer basicSubmitFlag;
|
||||
/**
|
||||
* 退回意见
|
||||
*/
|
||||
@TableField("RLBK_RMK")
|
||||
private String rollbackRemark;
|
||||
/**
|
||||
* 数据类型:班组/汇总
|
||||
*/
|
||||
@TableField("DAT_TP")
|
||||
private String dataType;
|
||||
/**
|
||||
* 作废标识:0-有效;1-作废
|
||||
*/
|
||||
@TableField("CNL_FLG")
|
||||
private String cancelFlag;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备-检查项目配置 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_cfg_bsn_itm")
|
||||
@KeySequence("t_dev_cfg_bsn_itm_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceConfigBusinessItemDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 业务规则id
|
||||
*/
|
||||
@TableField("RUL_ID")
|
||||
private Long ruleId;
|
||||
/**
|
||||
* 业务键
|
||||
*/
|
||||
@TableField("ITM_KY")
|
||||
private String itemKey;
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
@TableField("ITM_NAME")
|
||||
private String itemName;
|
||||
/**
|
||||
* 频次类型
|
||||
*/
|
||||
@TableField("FREQ_TP")
|
||||
private String frequencyType;
|
||||
/**
|
||||
* 频次
|
||||
*/
|
||||
@TableField("FREQ")
|
||||
private String frequency;
|
||||
/**
|
||||
* 检查标准
|
||||
*/
|
||||
@TableField("STD")
|
||||
private String standard;
|
||||
/**
|
||||
* 检查方法
|
||||
*/
|
||||
@TableField("ITM_MTHD")
|
||||
private String itemMethod;
|
||||
/**
|
||||
* 频次说明
|
||||
*/
|
||||
@TableField("FREQ_RMK")
|
||||
private String frequencyRemark;
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
@TableField("DUTY_RMK")
|
||||
private String dutyRemark;
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
@TableField("ORD_NO")
|
||||
private Integer orderNo;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备-点检、保养记录 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_matn")
|
||||
@KeySequence("t_dev_matn_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceMaintainDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 数据类型
|
||||
*/
|
||||
@TableField("DAT_TP")
|
||||
private String dataType;
|
||||
/**
|
||||
* 业务配置id
|
||||
*/
|
||||
@TableField("RUL_ID")
|
||||
private Long ruleId;
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
@TableField("DEV_ID")
|
||||
private Long deviceId;
|
||||
/**
|
||||
* 保养日期
|
||||
*/
|
||||
@TableField("CHK_DT")
|
||||
private LocalDateTime checkDate;
|
||||
/**
|
||||
* 保养内容
|
||||
*/
|
||||
@TableField("CNTT")
|
||||
private String content;
|
||||
/**
|
||||
* 保养人
|
||||
*/
|
||||
@TableField("CHK_USER_ID")
|
||||
private Long checkUserId;
|
||||
/**
|
||||
* 保养人
|
||||
*/
|
||||
@TableField("CHK_USER_NAME")
|
||||
private String checkUserName;
|
||||
/**
|
||||
* 频次类型
|
||||
*/
|
||||
@TableField("FREQ_TP")
|
||||
private String frequencyType;
|
||||
/**
|
||||
* 频次
|
||||
*/
|
||||
@TableField("FREQ")
|
||||
private String frequency;
|
||||
/**
|
||||
* 频次说明
|
||||
*/
|
||||
@TableField("FREQ_RMK")
|
||||
private String frequencyRemark;
|
||||
/**
|
||||
* 所属周期开始日期
|
||||
*/
|
||||
@TableField("FREQ_TM_STRT")
|
||||
private LocalDateTime frequencyTimeStart;
|
||||
/**
|
||||
* 所属周期截止日期
|
||||
*/
|
||||
@TableField("FREQ_TM_END")
|
||||
private LocalDateTime frequencyTimeEnd;
|
||||
/**
|
||||
* 提交标识
|
||||
*/
|
||||
@TableField("SBM_FLG")
|
||||
private String submitFlag;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备-保养分项 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_matn_itm")
|
||||
@KeySequence("t_dev_matn_itm_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceMaintainItemDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
@TableField("PRN_ID")
|
||||
private Long parentId;
|
||||
/**
|
||||
* 项id
|
||||
*/
|
||||
@TableField("CHK_ITM_ID")
|
||||
private Long checkItemId;
|
||||
/**
|
||||
* 保养情况、异常情况
|
||||
*/
|
||||
@TableField("CHK_RSLT")
|
||||
private String checkResult;
|
||||
/**
|
||||
* 处理结果
|
||||
*/
|
||||
@TableField("CNCL")
|
||||
private String conclusion;
|
||||
/**
|
||||
* 执行说明
|
||||
*/
|
||||
@TableField("CHK_RMK")
|
||||
private String checkRemark;
|
||||
/**
|
||||
* 执行日期
|
||||
*/
|
||||
@TableField("CHK_DT")
|
||||
private LocalDateTime checkDate;
|
||||
/**
|
||||
* 执行人
|
||||
*/
|
||||
@TableField("CHK_USER_NAME")
|
||||
private String checkUserName;
|
||||
/**
|
||||
* 执行人id
|
||||
*/
|
||||
@TableField("CHK_USER_ID")
|
||||
private Long checkUserId;
|
||||
/**
|
||||
* 业务键,预留字段
|
||||
*/
|
||||
@TableField("ITM_KY")
|
||||
private String itemKey;
|
||||
/**
|
||||
* 项目名称
|
||||
*/
|
||||
@TableField("ITM_NAME")
|
||||
private String itemName;
|
||||
/**
|
||||
* 频次类型
|
||||
*/
|
||||
@TableField("FREQ_TP")
|
||||
private String frequencyType;
|
||||
/**
|
||||
* 频次
|
||||
*/
|
||||
@TableField("FREQ")
|
||||
private String frequency;
|
||||
/**
|
||||
* 所属周期开始日期
|
||||
*/
|
||||
@TableField("FREQ_ITM_STRT")
|
||||
private LocalDateTime frequencyItemStart;
|
||||
/**
|
||||
* 所属周期截止日期
|
||||
*/
|
||||
@TableField("FREQ_ITM_END")
|
||||
private LocalDateTime frequencyItemEnd;
|
||||
/**
|
||||
* 检查标准
|
||||
*/
|
||||
@TableField("STD")
|
||||
private String standard;
|
||||
/**
|
||||
* 检查方法
|
||||
*/
|
||||
@TableField("ITM_MTHD")
|
||||
private String itemMethod;
|
||||
/**
|
||||
* 频次说明
|
||||
*/
|
||||
@TableField("FREQ_RMK")
|
||||
private String frequencyRemark;
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
@TableField("DUTY_RMK")
|
||||
private String dutyRemark;
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
@TableField("PRD_NO")
|
||||
private Integer periodNo;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备-期间核查 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_prd_chk")
|
||||
@KeySequence("t_dev_prd_chk_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DevicePeriodCheckDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 期间核查计划id
|
||||
*/
|
||||
@TableField("PLN_ID")
|
||||
private Long planId;
|
||||
/**
|
||||
* 有效标识
|
||||
*/
|
||||
@TableField("EFCT_FLG")
|
||||
private String effectiveFlag;
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
@TableField("DEV_ID")
|
||||
private Long deviceId;
|
||||
/**
|
||||
* 期间核查执行人
|
||||
*/
|
||||
@TableField("CHK_PSN_RMK")
|
||||
private String checkPersonRemark;
|
||||
/**
|
||||
* 核查人姓名
|
||||
*/
|
||||
@TableField("CHK_PSN_NAME")
|
||||
private String checkPersonName;
|
||||
/**
|
||||
* 核查人id
|
||||
*/
|
||||
@TableField("CHK_PSN_ID")
|
||||
private Long checkPersonId;
|
||||
/**
|
||||
* 复核人姓名
|
||||
*/
|
||||
@TableField("RCHK_PSN_NAME")
|
||||
private String recheckPersonName;
|
||||
/**
|
||||
* 复核人id
|
||||
*/
|
||||
@TableField("RCHK_PSN_ID")
|
||||
private Long recheckPersonId;
|
||||
/**
|
||||
* 核查方法
|
||||
*/
|
||||
@TableField("CHK_ACRD")
|
||||
private String checkAccording;
|
||||
/**
|
||||
* 核查方法描述
|
||||
*/
|
||||
@TableField("CHK_ACRD_RMK")
|
||||
private String checkAccordingRemark;
|
||||
/**
|
||||
* 核查记录
|
||||
*/
|
||||
@TableField("CHK_CNTT")
|
||||
private String checkContent;
|
||||
/**
|
||||
* 核查结论
|
||||
*/
|
||||
@TableField("CHK_RSLT")
|
||||
private String checkResult;
|
||||
/**
|
||||
* 核查备注
|
||||
*/
|
||||
@TableField("CHK_RMK")
|
||||
private String checkRemark;
|
||||
/**
|
||||
* 实际检查日期
|
||||
*/
|
||||
@TableField("CHK_DT")
|
||||
private LocalDateTime checkDate;
|
||||
/**
|
||||
* 上次检查日期
|
||||
*/
|
||||
@TableField("LST_CHK_DT")
|
||||
private LocalDateTime lastCheckDate;
|
||||
/**
|
||||
* 计划检查日期-开始
|
||||
*/
|
||||
@TableField("PLN_CHK_DT_STRT")
|
||||
private LocalDateTime planCheckDateStart;
|
||||
/**
|
||||
* 计划检查日期-截止
|
||||
*/
|
||||
@TableField("PLN_CHK_DT_END")
|
||||
private LocalDateTime planCheckDateEnd;
|
||||
/**
|
||||
* 频次
|
||||
*/
|
||||
@TableField("FREQ_RMK")
|
||||
private String frequencyRemark;
|
||||
/**
|
||||
* 审批状态
|
||||
*/
|
||||
@TableField("FLW_STS")
|
||||
private String flowStatus;
|
||||
/**
|
||||
* 流程实例id
|
||||
*/
|
||||
@TableField("FLW_INSC_ID")
|
||||
private String flowInstanceId;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备-期间核查计划 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_prd_chk_pln")
|
||||
@KeySequence("t_dev_prd_chk_pln_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DevicePeriodCheckPlanDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 汇总计划id
|
||||
*/
|
||||
@TableField("PRN_ID")
|
||||
private Long parentId;
|
||||
/**
|
||||
* 核查年度
|
||||
*/
|
||||
@TableField("CHK_YR")
|
||||
private String checkYear;
|
||||
/**
|
||||
* 申请人
|
||||
*/
|
||||
@TableField("APL_USER_NAME")
|
||||
private String applyUserName;
|
||||
/**
|
||||
* 审批状态
|
||||
*/
|
||||
@TableField("FLW_STS")
|
||||
private String flowStatus;
|
||||
/**
|
||||
* 流程实例id
|
||||
*/
|
||||
@TableField("FLW_INSC_ID")
|
||||
private String flowInstanceId;
|
||||
/**
|
||||
* 申请标题
|
||||
*/
|
||||
@TableField("TTL")
|
||||
private String title;
|
||||
/**
|
||||
* 班组提交标识,0-未提交;1-已提交
|
||||
*/
|
||||
@TableField("BSC_SBM_FLG")
|
||||
private String basicSubmitFlag;
|
||||
/**
|
||||
* 退回意见
|
||||
*/
|
||||
@TableField("RLBK_RMK")
|
||||
private String rollbackRemark;
|
||||
/**
|
||||
* 数据类型,班组/汇总
|
||||
*/
|
||||
@TableField("DAT_TP")
|
||||
private String dataType;
|
||||
/**
|
||||
* 作废标识:0-有效;1-作废
|
||||
*/
|
||||
@TableField("CNL_FLG")
|
||||
private String cancelFlag;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 维修申请 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_rpr_apl")
|
||||
@KeySequence("t_dev_rpr_apl_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceRepairApplyDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
@TableField("DEV_ID")
|
||||
private Long deviceId;
|
||||
/**
|
||||
* 使用地点
|
||||
*/
|
||||
@TableField("DEV_POS")
|
||||
private String devicePosition;
|
||||
/**
|
||||
* 申请人
|
||||
*/
|
||||
@TableField("APL_USER_NAME")
|
||||
private String applyUserName;
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
@TableField("APL_TM")
|
||||
private LocalDateTime applyTime;
|
||||
/**
|
||||
* 申请标题
|
||||
*/
|
||||
@TableField("TTL")
|
||||
private String title;
|
||||
/**
|
||||
* 审批状态
|
||||
*/
|
||||
@TableField("FLW_STS")
|
||||
private String flowStatus;
|
||||
/**
|
||||
* 流程实例id
|
||||
*/
|
||||
@TableField("FLW_INSC_ID")
|
||||
private String flowInstanceId;
|
||||
/**
|
||||
* 故障描述/故障现象
|
||||
*/
|
||||
@TableField("FLT_DSP")
|
||||
private String faultDescription;
|
||||
/**
|
||||
* 处置意见
|
||||
*/
|
||||
@TableField("CNCL")
|
||||
private String conclusion;
|
||||
/**
|
||||
* 是否维修
|
||||
*/
|
||||
@TableField("RPR_FLG")
|
||||
private String repairFlag;
|
||||
/**
|
||||
* 故障分析
|
||||
*/
|
||||
@TableField("RPR_ANL")
|
||||
private String repairAnalysis;
|
||||
/**
|
||||
* 处理方案
|
||||
*/
|
||||
@TableField("RPR_SOL")
|
||||
private String repairSolution;
|
||||
/**
|
||||
* 维修方式
|
||||
*/
|
||||
@TableField("RPR_TP")
|
||||
private String repairType;
|
||||
/**
|
||||
* 作废标识
|
||||
*/
|
||||
@TableField("CNL_FLG")
|
||||
private String cancelFlag;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 故障与处理关系 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_rpr_at")
|
||||
@KeySequence("t_dev_rpr_at_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceRepairAtDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 故障说明明细id
|
||||
*/
|
||||
@TableField("RPR_DTL_ID")
|
||||
private Long repairDetailId;
|
||||
/**
|
||||
* 故障处理明细id
|
||||
*/
|
||||
@TableField("RSLT_DTL_ID")
|
||||
private Long resultDetailId;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备维修明细 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_rpr_dtl")
|
||||
@KeySequence("t_dev_rpr_dtl_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceRepairDetailDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 维修申请id
|
||||
*/
|
||||
@TableField("RPR_ID")
|
||||
private Long repairId;
|
||||
/**
|
||||
* 故障说明
|
||||
*/
|
||||
@TableField("FLT_CNTT")
|
||||
private String faultContent;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 故障处理明细 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_rpr_rslt_dtl")
|
||||
@KeySequence("t_dev_rpr_rslt_dtl_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceRepairResultDetailDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 解决说明
|
||||
*/
|
||||
@TableField("SOL_CNTT")
|
||||
private String solutionContent;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.dataobject;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
/**
|
||||
* 设备-使用记录 DO
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@TableName("t_dev_use_rcd")
|
||||
@KeySequence("t_dev_use_rcd_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class DeviceUseRecordDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
@TableField("DEV_ID")
|
||||
private Long deviceId;
|
||||
/**
|
||||
* 使用人
|
||||
*/
|
||||
@TableField("USER_NAME")
|
||||
private String userName;
|
||||
/**
|
||||
* 使用人id
|
||||
*/
|
||||
@TableField("USER_ID")
|
||||
private Long userId;
|
||||
/**
|
||||
* 开始使用时间
|
||||
*/
|
||||
@TableField("USE_TM_STRT")
|
||||
private LocalDateTime useTimeStart;
|
||||
/**
|
||||
* 结束使用时间
|
||||
*/
|
||||
@TableField("USE_TM_END")
|
||||
private LocalDateTime useTimeEnd;
|
||||
/**
|
||||
* 使用记录
|
||||
*/
|
||||
@TableField("USE_RMK")
|
||||
private String useRemark;
|
||||
/**
|
||||
* 使用前状态
|
||||
*/
|
||||
@TableField("STA_BFR")
|
||||
private String stateBefore;
|
||||
/**
|
||||
* 使用中状态(正常/异常)
|
||||
*/
|
||||
@TableField("STA_RN")
|
||||
private String stateRun;
|
||||
/**
|
||||
* 使用后状态
|
||||
*/
|
||||
@TableField("STA_AFT")
|
||||
private String stateAfter;
|
||||
/**
|
||||
* 温度
|
||||
*/
|
||||
@TableField("TMP")
|
||||
private String temperature;
|
||||
/**
|
||||
* 湿度
|
||||
*/
|
||||
@TableField("HMD")
|
||||
private String humidity;
|
||||
/**
|
||||
* 数据来源,PC|PAD|PDA
|
||||
*/
|
||||
@TableField("DAT_SRC")
|
||||
private String dataSource;
|
||||
/**
|
||||
* 所属部门
|
||||
*/
|
||||
@TableField("SYS_DEPT_CD")
|
||||
private String systemDepartmentCode;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceAffiliationRelativityDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativityPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 附属设备关系 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceAffiliationRelativityMapper extends BaseMapperX<DeviceAffiliationRelativityDO> {
|
||||
|
||||
default PageResult<DeviceAffiliationRelativityDO> selectPage(DeviceAffiliationRelativityPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceAffiliationRelativityDO>()
|
||||
.eqIfPresent(DeviceAffiliationRelativityDO::getParentProductId, reqVO.getParentProductId())
|
||||
.eqIfPresent(DeviceAffiliationRelativityDO::getChildDeviceId, reqVO.getChildDeviceId())
|
||||
.eqIfPresent(DeviceAffiliationRelativityDO::getSortNo, reqVO.getSortNo())
|
||||
.eqIfPresent(DeviceAffiliationRelativityDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceAffiliationRelativityDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceAffiliationRelativityDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceAffiliationRelativityDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceApplyDetailDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备通用流程明细 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceApplyDetailMapper extends BaseMapperX<DeviceApplyDetailDO> {
|
||||
|
||||
default PageResult<DeviceApplyDetailDO> selectPage(DeviceApplyDetailPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceApplyDetailDO>()
|
||||
.eqIfPresent(DeviceApplyDetailDO::getApplyId, reqVO.getApplyId())
|
||||
.eqIfPresent(DeviceApplyDetailDO::getDeviceInfomationId, reqVO.getDeviceInfomationId())
|
||||
.eqIfPresent(DeviceApplyDetailDO::getDeviceBorrowDetailId, reqVO.getDeviceBorrowDetailId())
|
||||
.eqIfPresent(DeviceApplyDetailDO::getFormData, reqVO.getFormData())
|
||||
.eqIfPresent(DeviceApplyDetailDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceApplyDetailDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceApplyDetailDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceApplyDetailDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceCalibrationDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备-检定校准 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceCalibrationMapper extends BaseMapperX<DeviceCalibrationDO> {
|
||||
|
||||
default PageResult<DeviceCalibrationDO> selectPage(DeviceCalibrationPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceCalibrationDO>()
|
||||
.eqIfPresent(DeviceCalibrationDO::getPlanId, reqVO.getPlanId())
|
||||
.eqIfPresent(DeviceCalibrationDO::getEffectiveFlag, reqVO.getEffectiveFlag())
|
||||
.eqIfPresent(DeviceCalibrationDO::getDeviceId, reqVO.getDeviceId())
|
||||
.likeIfPresent(DeviceCalibrationDO::getSupplierName, reqVO.getSupplierName())
|
||||
.eqIfPresent(DeviceCalibrationDO::getSupplierId, reqVO.getSupplierId())
|
||||
.eqIfPresent(DeviceCalibrationDO::getSpecification, reqVO.getSpecification())
|
||||
.betweenIfPresent(DeviceCalibrationDO::getPlanCheckDate, reqVO.getPlanCheckDate())
|
||||
.betweenIfPresent(DeviceCalibrationDO::getLastCheckDate, reqVO.getLastCheckDate())
|
||||
.eqIfPresent(DeviceCalibrationDO::getFrequencyRemark, reqVO.getFrequencyRemark())
|
||||
.eqIfPresent(DeviceCalibrationDO::getCheckType, reqVO.getCheckType())
|
||||
.betweenIfPresent(DeviceCalibrationDO::getCheckDate, reqVO.getCheckDate())
|
||||
.eqIfPresent(DeviceCalibrationDO::getAgent, reqVO.getAgent())
|
||||
.eqIfPresent(DeviceCalibrationDO::getCertificateCode, reqVO.getCertificateCode())
|
||||
.betweenIfPresent(DeviceCalibrationDO::getValidityDate, reqVO.getValidityDate())
|
||||
.eqIfPresent(DeviceCalibrationDO::getCheckContent, reqVO.getCheckContent())
|
||||
.eqIfPresent(DeviceCalibrationDO::getCheckResult, reqVO.getCheckResult())
|
||||
.eqIfPresent(DeviceCalibrationDO::getFlowStatus, reqVO.getFlowStatus())
|
||||
.eqIfPresent(DeviceCalibrationDO::getFlowInstanceId, reqVO.getFlowInstanceId())
|
||||
.eqIfPresent(DeviceCalibrationDO::getCancelFlag, reqVO.getCancelFlag())
|
||||
.eqIfPresent(DeviceCalibrationDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceCalibrationDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceCalibrationDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceCalibrationDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceCalibrationPlanDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备-检定校准计划 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceCalibrationPlanMapper extends BaseMapperX<DeviceCalibrationPlanDO> {
|
||||
|
||||
default PageResult<DeviceCalibrationPlanDO> selectPage(DeviceCalibrationPlanPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceCalibrationPlanDO>()
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getProductId, reqVO.getProductId())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getCheckYear, reqVO.getCheckYear())
|
||||
.likeIfPresent(DeviceCalibrationPlanDO::getApplyUserName, reqVO.getApplyUserName())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getFlowInstanceId, reqVO.getFlowInstanceId())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getFlowStatus, reqVO.getFlowStatus())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getTitle, reqVO.getTitle())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getBasicSubmitFlag, reqVO.getBasicSubmitFlag())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getRollbackRemark, reqVO.getRollbackRemark())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getCancelFlag, reqVO.getCancelFlag())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceCalibrationPlanDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceCalibrationPlanDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceCalibrationPlanDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceConfigBusinessItemDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备-检查项目配置 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceConfigBusinessItemMapper extends BaseMapperX<DeviceConfigBusinessItemDO> {
|
||||
|
||||
default PageResult<DeviceConfigBusinessItemDO> selectPage(DeviceConfigBusinessItemPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceConfigBusinessItemDO>()
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getRuleId, reqVO.getRuleId())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getItemKey, reqVO.getItemKey())
|
||||
.likeIfPresent(DeviceConfigBusinessItemDO::getItemName, reqVO.getItemName())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getFrequencyType, reqVO.getFrequencyType())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getFrequency, reqVO.getFrequency())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getStandard, reqVO.getStandard())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getItemMethod, reqVO.getItemMethod())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getFrequencyRemark, reqVO.getFrequencyRemark())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getDutyRemark, reqVO.getDutyRemark())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getOrderNo, reqVO.getOrderNo())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceConfigBusinessItemDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceConfigBusinessItemDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceConfigBusinessItemDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainItemDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备-保养分项 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceMaintainItemMapper extends BaseMapperX<DeviceMaintainItemDO> {
|
||||
|
||||
default PageResult<DeviceMaintainItemDO> selectPage(DeviceMaintainItemPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceMaintainItemDO>()
|
||||
.eqIfPresent(DeviceMaintainItemDO::getParentId, reqVO.getParentId())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getCheckItemId, reqVO.getCheckItemId())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getCheckResult, reqVO.getCheckResult())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getConclusion, reqVO.getConclusion())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getCheckRemark, reqVO.getCheckRemark())
|
||||
.betweenIfPresent(DeviceMaintainItemDO::getCheckDate, reqVO.getCheckDate())
|
||||
.likeIfPresent(DeviceMaintainItemDO::getCheckUserName, reqVO.getCheckUserName())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getCheckUserId, reqVO.getCheckUserId())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getItemKey, reqVO.getItemKey())
|
||||
.likeIfPresent(DeviceMaintainItemDO::getItemName, reqVO.getItemName())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getFrequencyType, reqVO.getFrequencyType())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getFrequency, reqVO.getFrequency())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getFrequencyItemStart, reqVO.getFrequencyItemStart())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getFrequencyItemEnd, reqVO.getFrequencyItemEnd())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getStandard, reqVO.getStandard())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getItemMethod, reqVO.getItemMethod())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getFrequencyRemark, reqVO.getFrequencyRemark())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getDutyRemark, reqVO.getDutyRemark())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getPeriodNo, reqVO.getPeriodNo())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceMaintainItemDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceMaintainItemDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceMaintainItemDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备-点检、保养记录 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceMaintainMapper extends BaseMapperX<DeviceMaintainDO> {
|
||||
|
||||
default PageResult<DeviceMaintainDO> selectPage(DeviceMaintainPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceMaintainDO>()
|
||||
.eqIfPresent(DeviceMaintainDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(DeviceMaintainDO::getRuleId, reqVO.getRuleId())
|
||||
.eqIfPresent(DeviceMaintainDO::getDeviceId, reqVO.getDeviceId())
|
||||
.betweenIfPresent(DeviceMaintainDO::getCheckDate, reqVO.getCheckDate())
|
||||
.eqIfPresent(DeviceMaintainDO::getContent, reqVO.getContent())
|
||||
.eqIfPresent(DeviceMaintainDO::getCheckUserId, reqVO.getCheckUserId())
|
||||
.likeIfPresent(DeviceMaintainDO::getCheckUserName, reqVO.getCheckUserName())
|
||||
.eqIfPresent(DeviceMaintainDO::getFrequencyType, reqVO.getFrequencyType())
|
||||
.eqIfPresent(DeviceMaintainDO::getFrequency, reqVO.getFrequency())
|
||||
.eqIfPresent(DeviceMaintainDO::getFrequencyRemark, reqVO.getFrequencyRemark())
|
||||
.eqIfPresent(DeviceMaintainDO::getFrequencyTimeStart, reqVO.getFrequencyTimeStart())
|
||||
.eqIfPresent(DeviceMaintainDO::getFrequencyTimeEnd, reqVO.getFrequencyTimeEnd())
|
||||
.eqIfPresent(DeviceMaintainDO::getSubmitFlag, reqVO.getSubmitFlag())
|
||||
.eqIfPresent(DeviceMaintainDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceMaintainDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceMaintainDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceMaintainDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DevicePeriodCheckDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备-期间核查 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DevicePeriodCheckMapper extends BaseMapperX<DevicePeriodCheckDO> {
|
||||
|
||||
default PageResult<DevicePeriodCheckDO> selectPage(DevicePeriodCheckPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DevicePeriodCheckDO>()
|
||||
.eqIfPresent(DevicePeriodCheckDO::getPlanId, reqVO.getPlanId())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getEffectiveFlag, reqVO.getEffectiveFlag())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getDeviceId, reqVO.getDeviceId())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getCheckPersonRemark, reqVO.getCheckPersonRemark())
|
||||
.likeIfPresent(DevicePeriodCheckDO::getCheckPersonName, reqVO.getCheckPersonName())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getCheckPersonId, reqVO.getCheckPersonId())
|
||||
.likeIfPresent(DevicePeriodCheckDO::getRecheckPersonName, reqVO.getRecheckPersonName())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getRecheckPersonId, reqVO.getRecheckPersonId())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getCheckAccording, reqVO.getCheckAccording())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getCheckAccordingRemark, reqVO.getCheckAccordingRemark())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getCheckContent, reqVO.getCheckContent())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getCheckResult, reqVO.getCheckResult())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getCheckRemark, reqVO.getCheckRemark())
|
||||
.betweenIfPresent(DevicePeriodCheckDO::getCheckDate, reqVO.getCheckDate())
|
||||
.betweenIfPresent(DevicePeriodCheckDO::getLastCheckDate, reqVO.getLastCheckDate())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getPlanCheckDateStart, reqVO.getPlanCheckDateStart())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getPlanCheckDateEnd, reqVO.getPlanCheckDateEnd())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getFrequencyRemark, reqVO.getFrequencyRemark())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getFlowStatus, reqVO.getFlowStatus())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getFlowInstanceId, reqVO.getFlowInstanceId())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DevicePeriodCheckDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DevicePeriodCheckDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DevicePeriodCheckDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DevicePeriodCheckPlanDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPlanPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备-期间核查计划 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DevicePeriodCheckPlanMapper extends BaseMapperX<DevicePeriodCheckPlanDO> {
|
||||
|
||||
default PageResult<DevicePeriodCheckPlanDO> selectPage(DevicePeriodCheckPlanPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DevicePeriodCheckPlanDO>()
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getParentId, reqVO.getParentId())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getCheckYear, reqVO.getCheckYear())
|
||||
.likeIfPresent(DevicePeriodCheckPlanDO::getApplyUserName, reqVO.getApplyUserName())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getFlowStatus, reqVO.getFlowStatus())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getFlowInstanceId, reqVO.getFlowInstanceId())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getTitle, reqVO.getTitle())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getBasicSubmitFlag, reqVO.getBasicSubmitFlag())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getRollbackRemark, reqVO.getRollbackRemark())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getDataType, reqVO.getDataType())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getCancelFlag, reqVO.getCancelFlag())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DevicePeriodCheckPlanDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DevicePeriodCheckPlanDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DevicePeriodCheckPlanDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceRepairApplyDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairApplyPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 维修申请 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceRepairApplyMapper extends BaseMapperX<DeviceRepairApplyDO> {
|
||||
|
||||
default PageResult<DeviceRepairApplyDO> selectPage(DeviceRepairApplyPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceRepairApplyDO>()
|
||||
.eqIfPresent(DeviceRepairApplyDO::getDeviceId, reqVO.getDeviceId())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getDevicePosition, reqVO.getDevicePosition())
|
||||
.likeIfPresent(DeviceRepairApplyDO::getApplyUserName, reqVO.getApplyUserName())
|
||||
.betweenIfPresent(DeviceRepairApplyDO::getApplyTime, reqVO.getApplyTime())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getTitle, reqVO.getTitle())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getFlowStatus, reqVO.getFlowStatus())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getFlowInstanceId, reqVO.getFlowInstanceId())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getFaultDescription, reqVO.getFaultDescription())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getConclusion, reqVO.getConclusion())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getRepairFlag, reqVO.getRepairFlag())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getRepairAnalysis, reqVO.getRepairAnalysis())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getRepairSolution, reqVO.getRepairSolution())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getRepairType, reqVO.getRepairType())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getCancelFlag, reqVO.getCancelFlag())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceRepairApplyDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceRepairApplyDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceRepairApplyDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceRepairAtDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairAtPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 故障与处理关系 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceRepairAtMapper extends BaseMapperX<DeviceRepairAtDO> {
|
||||
|
||||
default PageResult<DeviceRepairAtDO> selectPage(DeviceRepairAtPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceRepairAtDO>()
|
||||
.eqIfPresent(DeviceRepairAtDO::getRepairDetailId, reqVO.getRepairDetailId())
|
||||
.eqIfPresent(DeviceRepairAtDO::getResultDetailId, reqVO.getResultDetailId())
|
||||
.eqIfPresent(DeviceRepairAtDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceRepairAtDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceRepairAtDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceRepairAtDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceRepairDetailDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairDetailPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备维修明细 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceRepairDetailMapper extends BaseMapperX<DeviceRepairDetailDO> {
|
||||
|
||||
default PageResult<DeviceRepairDetailDO> selectPage(DeviceRepairDetailPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceRepairDetailDO>()
|
||||
.eqIfPresent(DeviceRepairDetailDO::getRepairId, reqVO.getRepairId())
|
||||
.eqIfPresent(DeviceRepairDetailDO::getFaultContent, reqVO.getFaultContent())
|
||||
.eqIfPresent(DeviceRepairDetailDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceRepairDetailDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceRepairDetailDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceRepairDetailDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceRepairResultDetailDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceRepairResultDetailPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 故障处理明细 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceRepairResultDetailMapper extends BaseMapperX<DeviceRepairResultDetailDO> {
|
||||
|
||||
default PageResult<DeviceRepairResultDetailDO> selectPage(DeviceRepairResultDetailPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceRepairResultDetailDO>()
|
||||
.eqIfPresent(DeviceRepairResultDetailDO::getSolutionContent, reqVO.getSolutionContent())
|
||||
.eqIfPresent(DeviceRepairResultDetailDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceRepairResultDetailDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceRepairResultDetailDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceRepairResultDetailDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.zt.plat.module.qms.resource.device.dal.mapper;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceUseRecordDO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceUseRecordPageReqVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 设备-使用记录 Mapper
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Mapper
|
||||
public interface DeviceUseRecordMapper extends BaseMapperX<DeviceUseRecordDO> {
|
||||
|
||||
default PageResult<DeviceUseRecordDO> selectPage(DeviceUseRecordPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceUseRecordDO>()
|
||||
.eqIfPresent(DeviceUseRecordDO::getDeviceId, reqVO.getDeviceId())
|
||||
.likeIfPresent(DeviceUseRecordDO::getUserName, reqVO.getUserName())
|
||||
.eqIfPresent(DeviceUseRecordDO::getUserId, reqVO.getUserId())
|
||||
.eqIfPresent(DeviceUseRecordDO::getUseTimeStart, reqVO.getUseTimeStart())
|
||||
.eqIfPresent(DeviceUseRecordDO::getUseTimeEnd, reqVO.getUseTimeEnd())
|
||||
.eqIfPresent(DeviceUseRecordDO::getUseRemark, reqVO.getUseRemark())
|
||||
.eqIfPresent(DeviceUseRecordDO::getStateBefore, reqVO.getStateBefore())
|
||||
.eqIfPresent(DeviceUseRecordDO::getStateRun, reqVO.getStateRun())
|
||||
.eqIfPresent(DeviceUseRecordDO::getStateAfter, reqVO.getStateAfter())
|
||||
.eqIfPresent(DeviceUseRecordDO::getTemperature, reqVO.getTemperature())
|
||||
.eqIfPresent(DeviceUseRecordDO::getHumidity, reqVO.getHumidity())
|
||||
.eqIfPresent(DeviceUseRecordDO::getDataSource, reqVO.getDataSource())
|
||||
.eqIfPresent(DeviceUseRecordDO::getSystemDepartmentCode, reqVO.getSystemDepartmentCode())
|
||||
.eqIfPresent(DeviceUseRecordDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(DeviceUseRecordDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(DeviceUseRecordDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativityPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativityRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativitySaveReqVO;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceAffiliationRelativityDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
* 附属设备关系 Service 接口
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
public interface DeviceAffiliationRelativityService {
|
||||
|
||||
/**
|
||||
* 创建附属设备关系
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
DeviceAffiliationRelativityRespVO createDeviceAffiliationRelativity(@Valid DeviceAffiliationRelativitySaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新附属设备关系
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateDeviceAffiliationRelativity(@Valid DeviceAffiliationRelativitySaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除附属设备关系
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteDeviceAffiliationRelativity(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除附属设备关系
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteDeviceAffiliationRelativityListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得附属设备关系
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 附属设备关系
|
||||
*/
|
||||
DeviceAffiliationRelativityDO getDeviceAffiliationRelativity(Long id);
|
||||
|
||||
/**
|
||||
* 获得附属设备关系分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 附属设备关系分页
|
||||
*/
|
||||
PageResult<DeviceAffiliationRelativityDO> getDeviceAffiliationRelativityPage(DeviceAffiliationRelativityPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativityPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativityRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceAffiliationRelativitySaveReqVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceAffiliationRelativityDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.mapper.DeviceAffiliationRelativityMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.DEVICE_AFFILIATION_RELATIVITY_NOT_EXISTS;
|
||||
|
||||
/**
|
||||
* 附属设备关系 Service 实现类
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class DeviceAffiliationRelativityServiceImpl implements DeviceAffiliationRelativityService {
|
||||
|
||||
@Resource
|
||||
private DeviceAffiliationRelativityMapper deviceAffiliationRelativityMapper;
|
||||
|
||||
@Override
|
||||
public DeviceAffiliationRelativityRespVO createDeviceAffiliationRelativity(DeviceAffiliationRelativitySaveReqVO createReqVO) {
|
||||
// 插入
|
||||
DeviceAffiliationRelativityDO deviceAffiliationRelativity = BeanUtils.toBean(createReqVO, DeviceAffiliationRelativityDO.class);
|
||||
deviceAffiliationRelativityMapper.insert(deviceAffiliationRelativity);
|
||||
// 返回
|
||||
return BeanUtils.toBean(deviceAffiliationRelativity, DeviceAffiliationRelativityRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDeviceAffiliationRelativity(DeviceAffiliationRelativitySaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateDeviceAffiliationRelativityExists(updateReqVO.getId());
|
||||
// 更新
|
||||
DeviceAffiliationRelativityDO updateObj = BeanUtils.toBean(updateReqVO, DeviceAffiliationRelativityDO.class);
|
||||
deviceAffiliationRelativityMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceAffiliationRelativity(Long id) {
|
||||
// 校验存在
|
||||
validateDeviceAffiliationRelativityExists(id);
|
||||
// 删除
|
||||
deviceAffiliationRelativityMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceAffiliationRelativityListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateDeviceAffiliationRelativityExists(ids);
|
||||
// 删除
|
||||
deviceAffiliationRelativityMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateDeviceAffiliationRelativityExists(List<Long> ids) {
|
||||
List<DeviceAffiliationRelativityDO> list = deviceAffiliationRelativityMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(DEVICE_AFFILIATION_RELATIVITY_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateDeviceAffiliationRelativityExists(Long id) {
|
||||
if (deviceAffiliationRelativityMapper.selectById(id) == null) {
|
||||
throw exception(DEVICE_AFFILIATION_RELATIVITY_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeviceAffiliationRelativityDO getDeviceAffiliationRelativity(Long id) {
|
||||
return deviceAffiliationRelativityMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<DeviceAffiliationRelativityDO> getDeviceAffiliationRelativityPage(DeviceAffiliationRelativityPageReqVO pageReqVO) {
|
||||
return deviceAffiliationRelativityMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailSaveReqVO;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceApplyDetailDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
* 设备通用流程明细 Service 接口
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
public interface DeviceApplyDetailService {
|
||||
|
||||
/**
|
||||
* 创建设备通用流程明细
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
DeviceApplyDetailRespVO createDeviceApplyDetail(@Valid DeviceApplyDetailSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新设备通用流程明细
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateDeviceApplyDetail(@Valid DeviceApplyDetailSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除设备通用流程明细
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteDeviceApplyDetail(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备通用流程明细
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteDeviceApplyDetailListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得设备通用流程明细
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 设备通用流程明细
|
||||
*/
|
||||
DeviceApplyDetailDO getDeviceApplyDetail(Long id);
|
||||
|
||||
/**
|
||||
* 获得设备通用流程明细分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 设备通用流程明细分页
|
||||
*/
|
||||
PageResult<DeviceApplyDetailDO> getDeviceApplyDetailPage(DeviceApplyDetailPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceApplyDetailSaveReqVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceApplyDetailDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.mapper.DeviceApplyDetailMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.DEVICE_APPLY_DETAIL_NOT_EXISTS;
|
||||
|
||||
/**
|
||||
* 设备通用流程明细 Service 实现类
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class DeviceApplyDetailServiceImpl implements DeviceApplyDetailService {
|
||||
|
||||
@Resource
|
||||
private DeviceApplyDetailMapper deviceApplyDetailMapper;
|
||||
|
||||
@Override
|
||||
public DeviceApplyDetailRespVO createDeviceApplyDetail(DeviceApplyDetailSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
DeviceApplyDetailDO deviceApplyDetail = BeanUtils.toBean(createReqVO, DeviceApplyDetailDO.class);
|
||||
deviceApplyDetailMapper.insert(deviceApplyDetail);
|
||||
// 返回
|
||||
return BeanUtils.toBean(deviceApplyDetail, DeviceApplyDetailRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDeviceApplyDetail(DeviceApplyDetailSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateDeviceApplyDetailExists(updateReqVO.getId());
|
||||
// 更新
|
||||
DeviceApplyDetailDO updateObj = BeanUtils.toBean(updateReqVO, DeviceApplyDetailDO.class);
|
||||
deviceApplyDetailMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceApplyDetail(Long id) {
|
||||
// 校验存在
|
||||
validateDeviceApplyDetailExists(id);
|
||||
// 删除
|
||||
deviceApplyDetailMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceApplyDetailListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateDeviceApplyDetailExists(ids);
|
||||
// 删除
|
||||
deviceApplyDetailMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateDeviceApplyDetailExists(List<Long> ids) {
|
||||
List<DeviceApplyDetailDO> list = deviceApplyDetailMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(DEVICE_APPLY_DETAIL_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateDeviceApplyDetailExists(Long id) {
|
||||
if (deviceApplyDetailMapper.selectById(id) == null) {
|
||||
throw exception(DEVICE_APPLY_DETAIL_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeviceApplyDetailDO getDeviceApplyDetail(Long id) {
|
||||
return deviceApplyDetailMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<DeviceApplyDetailDO> getDeviceApplyDetailPage(DeviceApplyDetailPageReqVO pageReqVO) {
|
||||
return deviceApplyDetailMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanSaveReqVO;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceCalibrationPlanDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
* 设备-检定校准计划 Service 接口
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
public interface DeviceCalibrationPlanService {
|
||||
|
||||
/**
|
||||
* 创建设备-检定校准计划
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
DeviceCalibrationPlanRespVO createDeviceCalibrationPlan(@Valid DeviceCalibrationPlanSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新设备-检定校准计划
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateDeviceCalibrationPlan(@Valid DeviceCalibrationPlanSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除设备-检定校准计划
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteDeviceCalibrationPlan(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备-检定校准计划
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteDeviceCalibrationPlanListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得设备-检定校准计划
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 设备-检定校准计划
|
||||
*/
|
||||
DeviceCalibrationPlanDO getDeviceCalibrationPlan(Long id);
|
||||
|
||||
/**
|
||||
* 获得设备-检定校准计划分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 设备-检定校准计划分页
|
||||
*/
|
||||
PageResult<DeviceCalibrationPlanDO> getDeviceCalibrationPlanPage(DeviceCalibrationPlanPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPlanSaveReqVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceCalibrationPlanDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.mapper.DeviceCalibrationPlanMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.DEVICE_CALIBRATION_PLAN_NOT_EXISTS;
|
||||
|
||||
/**
|
||||
* 设备-检定校准计划 Service 实现类
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class DeviceCalibrationPlanServiceImpl implements DeviceCalibrationPlanService {
|
||||
|
||||
@Resource
|
||||
private DeviceCalibrationPlanMapper deviceCalibrationPlanMapper;
|
||||
|
||||
@Override
|
||||
public DeviceCalibrationPlanRespVO createDeviceCalibrationPlan(DeviceCalibrationPlanSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
DeviceCalibrationPlanDO deviceCalibrationPlan = BeanUtils.toBean(createReqVO, DeviceCalibrationPlanDO.class);
|
||||
deviceCalibrationPlanMapper.insert(deviceCalibrationPlan);
|
||||
// 返回
|
||||
return BeanUtils.toBean(deviceCalibrationPlan, DeviceCalibrationPlanRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDeviceCalibrationPlan(DeviceCalibrationPlanSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateDeviceCalibrationPlanExists(updateReqVO.getId());
|
||||
// 更新
|
||||
DeviceCalibrationPlanDO updateObj = BeanUtils.toBean(updateReqVO, DeviceCalibrationPlanDO.class);
|
||||
deviceCalibrationPlanMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceCalibrationPlan(Long id) {
|
||||
// 校验存在
|
||||
validateDeviceCalibrationPlanExists(id);
|
||||
// 删除
|
||||
deviceCalibrationPlanMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceCalibrationPlanListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateDeviceCalibrationPlanExists(ids);
|
||||
// 删除
|
||||
deviceCalibrationPlanMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateDeviceCalibrationPlanExists(List<Long> ids) {
|
||||
List<DeviceCalibrationPlanDO> list = deviceCalibrationPlanMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(DEVICE_CALIBRATION_PLAN_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateDeviceCalibrationPlanExists(Long id) {
|
||||
if (deviceCalibrationPlanMapper.selectById(id) == null) {
|
||||
throw exception(DEVICE_CALIBRATION_PLAN_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeviceCalibrationPlanDO getDeviceCalibrationPlan(Long id) {
|
||||
return deviceCalibrationPlanMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<DeviceCalibrationPlanDO> getDeviceCalibrationPlanPage(DeviceCalibrationPlanPageReqVO pageReqVO) {
|
||||
return deviceCalibrationPlanMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationSaveReqVO;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceCalibrationDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
* 设备-检定校准 Service 接口
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
public interface DeviceCalibrationService {
|
||||
|
||||
/**
|
||||
* 创建设备-检定校准
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
DeviceCalibrationRespVO createDeviceCalibration(@Valid DeviceCalibrationSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新设备-检定校准
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateDeviceCalibration(@Valid DeviceCalibrationSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除设备-检定校准
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteDeviceCalibration(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备-检定校准
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteDeviceCalibrationListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得设备-检定校准
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 设备-检定校准
|
||||
*/
|
||||
DeviceCalibrationDO getDeviceCalibration(Long id);
|
||||
|
||||
/**
|
||||
* 获得设备-检定校准分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 设备-检定校准分页
|
||||
*/
|
||||
PageResult<DeviceCalibrationDO> getDeviceCalibrationPage(DeviceCalibrationPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceCalibrationSaveReqVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceCalibrationDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.mapper.DeviceCalibrationMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.DEVICE_CALIBRATION_NOT_EXISTS;
|
||||
|
||||
/**
|
||||
* 设备-检定校准 Service 实现类
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class DeviceCalibrationServiceImpl implements DeviceCalibrationService {
|
||||
|
||||
@Resource
|
||||
private DeviceCalibrationMapper deviceCalibrationMapper;
|
||||
|
||||
@Override
|
||||
public DeviceCalibrationRespVO createDeviceCalibration(DeviceCalibrationSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
DeviceCalibrationDO deviceCalibration = BeanUtils.toBean(createReqVO, DeviceCalibrationDO.class);
|
||||
deviceCalibrationMapper.insert(deviceCalibration);
|
||||
// 返回
|
||||
return BeanUtils.toBean(deviceCalibration, DeviceCalibrationRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDeviceCalibration(DeviceCalibrationSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateDeviceCalibrationExists(updateReqVO.getId());
|
||||
// 更新
|
||||
DeviceCalibrationDO updateObj = BeanUtils.toBean(updateReqVO, DeviceCalibrationDO.class);
|
||||
deviceCalibrationMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceCalibration(Long id) {
|
||||
// 校验存在
|
||||
validateDeviceCalibrationExists(id);
|
||||
// 删除
|
||||
deviceCalibrationMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceCalibrationListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateDeviceCalibrationExists(ids);
|
||||
// 删除
|
||||
deviceCalibrationMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateDeviceCalibrationExists(List<Long> ids) {
|
||||
List<DeviceCalibrationDO> list = deviceCalibrationMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(DEVICE_CALIBRATION_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateDeviceCalibrationExists(Long id) {
|
||||
if (deviceCalibrationMapper.selectById(id) == null) {
|
||||
throw exception(DEVICE_CALIBRATION_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeviceCalibrationDO getDeviceCalibration(Long id) {
|
||||
return deviceCalibrationMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<DeviceCalibrationDO> getDeviceCalibrationPage(DeviceCalibrationPageReqVO pageReqVO) {
|
||||
return deviceCalibrationMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemSaveReqVO;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceConfigBusinessItemDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
* 设备-检查项目配置 Service 接口
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
public interface DeviceConfigBusinessItemService {
|
||||
|
||||
/**
|
||||
* 创建设备-检查项目配置
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
DeviceConfigBusinessItemRespVO createDeviceConfigBusinessItem(@Valid DeviceConfigBusinessItemSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新设备-检查项目配置
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateDeviceConfigBusinessItem(@Valid DeviceConfigBusinessItemSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除设备-检查项目配置
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteDeviceConfigBusinessItem(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备-检查项目配置
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteDeviceConfigBusinessItemListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得设备-检查项目配置
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 设备-检查项目配置
|
||||
*/
|
||||
DeviceConfigBusinessItemDO getDeviceConfigBusinessItem(Long id);
|
||||
|
||||
/**
|
||||
* 获得设备-检查项目配置分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 设备-检查项目配置分页
|
||||
*/
|
||||
PageResult<DeviceConfigBusinessItemDO> getDeviceConfigBusinessItemPage(DeviceConfigBusinessItemPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceConfigBusinessItemSaveReqVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceConfigBusinessItemDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.mapper.DeviceConfigBusinessItemMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.DEVICE_CONFIG_BUSINESS_ITEM_NOT_EXISTS;
|
||||
|
||||
/**
|
||||
* 设备-检查项目配置 Service 实现类
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class DeviceConfigBusinessItemServiceImpl implements DeviceConfigBusinessItemService {
|
||||
|
||||
@Resource
|
||||
private DeviceConfigBusinessItemMapper deviceConfigBusinessItemMapper;
|
||||
|
||||
@Override
|
||||
public DeviceConfigBusinessItemRespVO createDeviceConfigBusinessItem(DeviceConfigBusinessItemSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
DeviceConfigBusinessItemDO deviceConfigBusinessItem = BeanUtils.toBean(createReqVO, DeviceConfigBusinessItemDO.class);
|
||||
deviceConfigBusinessItemMapper.insert(deviceConfigBusinessItem);
|
||||
// 返回
|
||||
return BeanUtils.toBean(deviceConfigBusinessItem, DeviceConfigBusinessItemRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDeviceConfigBusinessItem(DeviceConfigBusinessItemSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateDeviceConfigBusinessItemExists(updateReqVO.getId());
|
||||
// 更新
|
||||
DeviceConfigBusinessItemDO updateObj = BeanUtils.toBean(updateReqVO, DeviceConfigBusinessItemDO.class);
|
||||
deviceConfigBusinessItemMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceConfigBusinessItem(Long id) {
|
||||
// 校验存在
|
||||
validateDeviceConfigBusinessItemExists(id);
|
||||
// 删除
|
||||
deviceConfigBusinessItemMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceConfigBusinessItemListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateDeviceConfigBusinessItemExists(ids);
|
||||
// 删除
|
||||
deviceConfigBusinessItemMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateDeviceConfigBusinessItemExists(List<Long> ids) {
|
||||
List<DeviceConfigBusinessItemDO> list = deviceConfigBusinessItemMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(DEVICE_CONFIG_BUSINESS_ITEM_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateDeviceConfigBusinessItemExists(Long id) {
|
||||
if (deviceConfigBusinessItemMapper.selectById(id) == null) {
|
||||
throw exception(DEVICE_CONFIG_BUSINESS_ITEM_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeviceConfigBusinessItemDO getDeviceConfigBusinessItem(Long id) {
|
||||
return deviceConfigBusinessItemMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<DeviceConfigBusinessItemDO> getDeviceConfigBusinessItemPage(DeviceConfigBusinessItemPageReqVO pageReqVO) {
|
||||
return deviceConfigBusinessItemMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemSaveReqVO;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainItemDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
* 设备-保养分项 Service 接口
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
public interface DeviceMaintainItemService {
|
||||
|
||||
/**
|
||||
* 创建设备-保养分项
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
DeviceMaintainItemRespVO createDeviceMaintainItem(@Valid DeviceMaintainItemSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新设备-保养分项
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateDeviceMaintainItem(@Valid DeviceMaintainItemSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除设备-保养分项
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteDeviceMaintainItem(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备-保养分项
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteDeviceMaintainItemListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得设备-保养分项
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 设备-保养分项
|
||||
*/
|
||||
DeviceMaintainItemDO getDeviceMaintainItem(Long id);
|
||||
|
||||
/**
|
||||
* 获得设备-保养分项分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 设备-保养分项分页
|
||||
*/
|
||||
PageResult<DeviceMaintainItemDO> getDeviceMaintainItemPage(DeviceMaintainItemPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainItemSaveReqVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainItemDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.mapper.DeviceMaintainItemMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.DEVICE_MAINTAIN_ITEM_NOT_EXISTS;
|
||||
|
||||
/**
|
||||
* 设备-保养分项 Service 实现类
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class DeviceMaintainItemServiceImpl implements DeviceMaintainItemService {
|
||||
|
||||
@Resource
|
||||
private DeviceMaintainItemMapper deviceMaintainItemMapper;
|
||||
|
||||
@Override
|
||||
public DeviceMaintainItemRespVO createDeviceMaintainItem(DeviceMaintainItemSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
DeviceMaintainItemDO deviceMaintainItem = BeanUtils.toBean(createReqVO, DeviceMaintainItemDO.class);
|
||||
deviceMaintainItemMapper.insert(deviceMaintainItem);
|
||||
// 返回
|
||||
return BeanUtils.toBean(deviceMaintainItem, DeviceMaintainItemRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDeviceMaintainItem(DeviceMaintainItemSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateDeviceMaintainItemExists(updateReqVO.getId());
|
||||
// 更新
|
||||
DeviceMaintainItemDO updateObj = BeanUtils.toBean(updateReqVO, DeviceMaintainItemDO.class);
|
||||
deviceMaintainItemMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceMaintainItem(Long id) {
|
||||
// 校验存在
|
||||
validateDeviceMaintainItemExists(id);
|
||||
// 删除
|
||||
deviceMaintainItemMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceMaintainItemListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateDeviceMaintainItemExists(ids);
|
||||
// 删除
|
||||
deviceMaintainItemMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateDeviceMaintainItemExists(List<Long> ids) {
|
||||
List<DeviceMaintainItemDO> list = deviceMaintainItemMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(DEVICE_MAINTAIN_ITEM_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateDeviceMaintainItemExists(Long id) {
|
||||
if (deviceMaintainItemMapper.selectById(id) == null) {
|
||||
throw exception(DEVICE_MAINTAIN_ITEM_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeviceMaintainItemDO getDeviceMaintainItem(Long id) {
|
||||
return deviceMaintainItemMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<DeviceMaintainItemDO> getDeviceMaintainItemPage(DeviceMaintainItemPageReqVO pageReqVO) {
|
||||
return deviceMaintainItemMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainSaveReqVO;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
* 设备-点检、保养记录 Service 接口
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
public interface DeviceMaintainService {
|
||||
|
||||
/**
|
||||
* 创建设备-点检、保养记录
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
DeviceMaintainRespVO createDeviceMaintain(@Valid DeviceMaintainSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新设备-点检、保养记录
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateDeviceMaintain(@Valid DeviceMaintainSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除设备-点检、保养记录
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteDeviceMaintain(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备-点检、保养记录
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteDeviceMaintainListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得设备-点检、保养记录
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 设备-点检、保养记录
|
||||
*/
|
||||
DeviceMaintainDO getDeviceMaintain(Long id);
|
||||
|
||||
/**
|
||||
* 获得设备-点检、保养记录分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 设备-点检、保养记录分页
|
||||
*/
|
||||
PageResult<DeviceMaintainDO> getDeviceMaintainPage(DeviceMaintainPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DeviceMaintainSaveReqVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DeviceMaintainDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.dal.mapper.DeviceMaintainMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.module.qms.enums.ErrorCodeConstants.DEVICE_MAINTAIN_NOT_EXISTS;
|
||||
|
||||
/**
|
||||
* 设备-点检、保养记录 Service 实现类
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class DeviceMaintainServiceImpl implements DeviceMaintainService {
|
||||
|
||||
@Resource
|
||||
private DeviceMaintainMapper deviceMaintainMapper;
|
||||
|
||||
@Override
|
||||
public DeviceMaintainRespVO createDeviceMaintain(DeviceMaintainSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
DeviceMaintainDO deviceMaintain = BeanUtils.toBean(createReqVO, DeviceMaintainDO.class);
|
||||
deviceMaintainMapper.insert(deviceMaintain);
|
||||
// 返回
|
||||
return BeanUtils.toBean(deviceMaintain, DeviceMaintainRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDeviceMaintain(DeviceMaintainSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateDeviceMaintainExists(updateReqVO.getId());
|
||||
// 更新
|
||||
DeviceMaintainDO updateObj = BeanUtils.toBean(updateReqVO, DeviceMaintainDO.class);
|
||||
deviceMaintainMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceMaintain(Long id) {
|
||||
// 校验存在
|
||||
validateDeviceMaintainExists(id);
|
||||
// 删除
|
||||
deviceMaintainMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDeviceMaintainListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateDeviceMaintainExists(ids);
|
||||
// 删除
|
||||
deviceMaintainMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateDeviceMaintainExists(List<Long> ids) {
|
||||
List<DeviceMaintainDO> list = deviceMaintainMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(DEVICE_MAINTAIN_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateDeviceMaintainExists(Long id) {
|
||||
if (deviceMaintainMapper.selectById(id) == null) {
|
||||
throw exception(DEVICE_MAINTAIN_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeviceMaintainDO getDeviceMaintain(Long id) {
|
||||
return deviceMaintainMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<DeviceMaintainDO> getDeviceMaintainPage(DeviceMaintainPageReqVO pageReqVO) {
|
||||
return deviceMaintainMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zt.plat.module.qms.resource.device.service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPlanPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPlanRespVO;
|
||||
import com.zt.plat.module.qms.resource.device.controller.vo.DevicePeriodCheckPlanSaveReqVO;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.qms.resource.device.dal.dataobject.DevicePeriodCheckPlanDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
* 设备-期间核查计划 Service 接口
|
||||
*
|
||||
* @author 后台管理-1
|
||||
*/
|
||||
public interface DevicePeriodCheckPlanService {
|
||||
|
||||
/**
|
||||
* 创建设备-期间核查计划
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
DevicePeriodCheckPlanRespVO createDevicePeriodCheckPlan(@Valid DevicePeriodCheckPlanSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新设备-期间核查计划
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateDevicePeriodCheckPlan(@Valid DevicePeriodCheckPlanSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除设备-期间核查计划
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteDevicePeriodCheckPlan(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备-期间核查计划
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteDevicePeriodCheckPlanListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得设备-期间核查计划
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 设备-期间核查计划
|
||||
*/
|
||||
DevicePeriodCheckPlanDO getDevicePeriodCheckPlan(Long id);
|
||||
|
||||
/**
|
||||
* 获得设备-期间核查计划分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 设备-期间核查计划分页
|
||||
*/
|
||||
PageResult<DevicePeriodCheckPlanDO> getDevicePeriodCheckPlanPage(DevicePeriodCheckPlanPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user