|
|
@ -1,5 +1,6 @@ |
|
|
|
package org.dromara.platform.controller; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import jakarta.annotation.Resource; |
|
|
@ -143,7 +144,7 @@ public class RoutineInspectionInfoController extends BaseController { |
|
|
|
return routineInspectionInfoService.queryPageSpecialList(bo, pageQuery); |
|
|
|
} |
|
|
|
|
|
|
|
@SaCheckPermission("platform:routineInspectionInfo:specialList") |
|
|
|
@SaCheckPermission("platform:routineInspectionInfo:autoCreatePlans") |
|
|
|
@PostMapping("/autoCreatePlans") |
|
|
|
public R<Void> autoCreatePlans(@RequestBody RoutineWorkDto routineWorkDto) { |
|
|
|
String contractId = routineWorkDto.getContractId(); |
|
|
@ -152,5 +153,29 @@ public class RoutineInspectionInfoController extends BaseController { |
|
|
|
inspectionPlanInfoService.autoCreatePlans( contractId, categoryId, serviceProjectList); |
|
|
|
return R.ok("根据服务目录创建工作内容 !"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@SaCheckPermission("platform:routineInspectionInfo:createSpecialInspection") |
|
|
|
@PostMapping("/createSpecialInspection") |
|
|
|
public R<Void> createSpecialInspection(@RequestBody RoutineInspectionDto routineInspectionDto) { |
|
|
|
String projectName = routineInspectionDto.getProjectName(); |
|
|
|
String contractName = routineInspectionDto.getContractName(); |
|
|
|
String description = routineInspectionDto.getDescription(); |
|
|
|
String serviceProject = routineInspectionDto.getServiceProject(); |
|
|
|
String ioCompany = routineInspectionDto.getIoCompany(); |
|
|
|
String pointName = routineInspectionDto.getPointName(); |
|
|
|
String deliverContent = routineInspectionDto.getDeliverContent(); |
|
|
|
Date scheduleStartDate = routineInspectionDto.getScheduleStartDate(); |
|
|
|
Date scheduleEndDate = routineInspectionDto.getScheduleEndDate(); |
|
|
|
|
|
|
|
routineInspectionInfoService.createSpecialInspection( projectName, |
|
|
|
contractName, |
|
|
|
description, |
|
|
|
serviceProject, |
|
|
|
ioCompany, |
|
|
|
pointName,deliverContent,scheduleStartDate,scheduleEndDate |
|
|
|
); |
|
|
|
return R.ok("创建成功!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|