|
@@ -2,19 +2,17 @@ package com.project.zcustom.controller.engineering;
|
|
|
|
|
|
import com.project.common.core.controller.BaseController;
|
|
|
import com.project.common.core.domain.AjaxResult;
|
|
|
+import com.project.zcustom.domain.unit.LargeIssue;
|
|
|
import com.project.zcustom.service.unit.ILargeIssueService;
|
|
|
import com.project.zcustom.service.unit.ILargeProjectService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/large/three")
|
|
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
-public class PlatProjectC extends BaseController {
|
|
|
+public class PlatProjectCheckController extends BaseController {
|
|
|
|
|
|
private final ILargeProjectService largeProjectService;
|
|
|
|
|
@@ -51,4 +49,20 @@ public class PlatProjectC extends BaseController {
|
|
|
public AjaxResult getIssueListLastWeek() {
|
|
|
return AjaxResult.success("查询成功", largeIssueService.getIssueListLastWeek());
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 问题列表
|
|
|
+ * */
|
|
|
+ @GetMapping("/issueList")
|
|
|
+ public AjaxResult issueList(LargeIssue entity) {
|
|
|
+ return AjaxResult.success("查询成功", largeIssueService.selectList(entity));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更改问题状态
|
|
|
+ * */
|
|
|
+ @PostMapping("changeIssueStatus")
|
|
|
+ public AjaxResult changeIssueStatus(@RequestBody LargeIssue entity) {
|
|
|
+ return toAjax(largeIssueService.updateById(entity));
|
|
|
+ }
|
|
|
}
|