|
@@ -16,10 +16,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import static cn.com.qmth.examcloud.core.print.common.Result.success;
|
|
|
|
|
@@ -42,6 +39,12 @@ public class PrintingProjectController extends ControllerSupport {
|
|
|
return printingProjectService.getPrintingProjectList(query);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/{id}")
|
|
|
+ @ApiOperation(value = "获取某印刷项目的信息")
|
|
|
+ public PrintingProjectInfo getExamStudent(@PathVariable Long id) {
|
|
|
+ return printingProjectService.getPrintingProjectById(id);
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/update")
|
|
|
@ApiOperation(value = "更新印刷项目信息")
|
|
|
public Result updateExamStudent(@RequestBody PrintingProjectInfo info) {
|