deason 6 년 전
부모
커밋
fe9e2301c8

+ 10 - 0
examcloud-core-print-provider/src/main/java/cn/com/qmth/examcloud/core/print/api/controller/PrintingProjectController.java

@@ -8,6 +8,7 @@
 package cn.com.qmth.examcloud.core.print.api.controller;
 
 import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
+import cn.com.qmth.examcloud.core.print.common.Result;
 import cn.com.qmth.examcloud.core.print.service.PrintingProjectService;
 import cn.com.qmth.examcloud.core.print.service.bean.PrintingProjectInfo;
 import cn.com.qmth.examcloud.core.print.service.bean.PrintingProjectQuery;
@@ -20,6 +21,8 @@ import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
+import static cn.com.qmth.examcloud.core.print.common.Result.success;
+
 /**
  * 印刷项目相关接口
  *
@@ -39,4 +42,11 @@ public class PrintingProjectController extends ControllerSupport {
         return printingProjectService.getPrintingProjectList(query);
     }
 
+    @PostMapping("/update")
+    @ApiOperation(value = "更新印刷项目信息")
+    public Result updateExamStudent(@RequestBody PrintingProjectInfo info) {
+        printingProjectService.updatePrintingProject(info);
+        return success();
+    }
+
 }

+ 2 - 1
examcloud-core-print-starter/src/main/resources/security-exclusions.conf

@@ -8,4 +8,5 @@
 [${server.error.path:${error.path:/error}}][][POST]
 
 [${$rmp.cloud.print}/printing/project][/sync][POST]
-[${$rmp.ctrl.print}/printing/project][/list][POST]
+[${$rmp.ctrl.print}/printing/project][/list][POST]
+[${$rmp.ctrl.print}/printing/project][/update][POST]