浏览代码

新增按主键查询巡检计划

wangbo 4 年之前
父节点
当前提交
93562be829
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      operation_manager/src/main/java/com/huaxu/task/controller/PlanManageController.java

+ 2 - 2
operation_manager/src/main/java/com/huaxu/task/controller/PlanManageController.java

@@ -122,9 +122,9 @@ public class PlanManageController {
     @PostMapping("/plan/submit")
     @ApiOperation(value = "提交巡检计划")
     public AjaxMessage submitPlan(
-            @ApiParam(value = "计划单号", required = true) @RequestParam(required = false) String planId){
+            @ApiParam(value = "计划单号", required = true) @RequestParam(required = false) Integer id){
         LoginUser loginUser = UserUtil.getCurrentUser();
-        PlanManage planManage = planManageService.selectByPlanId(planId);
+        PlanManage planManage = planManageService.selectByPrimaryKey(id);
         //测试数据 test1 1 1
 //        ProcessDefinition processDefinition = workFlowService.findProcessDefinition(
 //                loginUser.getTenantId(),