|
@@ -0,0 +1,55 @@
|
|
|
+package com.zjugis.business.controller;
|
|
|
+
|
|
|
+import com.zjugis.business.bean.entity.ProjectTracking;
|
|
|
+import com.zjugis.business.bean.request.ProjectTrackingPageRequest;
|
|
|
+import com.zjugis.business.bean.request.ProjectTrackingRequest;
|
|
|
+import com.zjugis.business.bean.response.ProjectTrackingResp;
|
|
|
+import com.zjugis.business.bean.response.ProjectTrackingSummaryResp;
|
|
|
+import com.zjugis.business.converter.projecttracking.ProjectTrackingConvert;
|
|
|
+import com.zjugis.business.service.ProjectTrackingService;
|
|
|
+import com.zjugis.framework.common.pojo.CommonResult;
|
|
|
+import com.zjugis.framework.common.pojo.PageResult;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author 陈俊
|
|
|
+ * @Date 2024/8/27 14:07
|
|
|
+ * @Version 1.0
|
|
|
+ */
|
|
|
+@Tag(name = "项目 - 项目追踪")
|
|
|
+@RestController
|
|
|
+@RequestMapping
|
|
|
+public class ProjectTrackingController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private ProjectTrackingService projectTrackingService;
|
|
|
+
|
|
|
+ @PostMapping("/projectTracking/save")
|
|
|
+ @Operation(summary = "项目追踪保存")
|
|
|
+ public CommonResult<ProjectTracking> save(@Valid @RequestBody ProjectTrackingRequest reqVO) {
|
|
|
+ return CommonResult.success(projectTrackingService.save(ProjectTrackingConvert.INSTANCE.convert(reqVO)));
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/projectTracking/page")
|
|
|
+ @Operation(summary = "项目追踪分页列表")
|
|
|
+ public CommonResult<PageResult<ProjectTrackingResp>> page(@Valid ProjectTrackingPageRequest reqVO) {
|
|
|
+ return CommonResult.success(projectTrackingService.page(reqVO));
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/projectTracking/summary")
|
|
|
+ @Operation(summary = "项目追踪分页列表")
|
|
|
+ public CommonResult<ProjectTrackingSummaryResp> summary(@Valid ProjectTrackingPageRequest reqVO) {
|
|
|
+ return CommonResult.success(projectTrackingService.summary(reqVO));
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/projectTracking/getById")
|
|
|
+ @Operation(summary = "项目追踪明细")
|
|
|
+ public CommonResult<ProjectTracking> getById(@RequestParam("id") String id) {
|
|
|
+ return CommonResult.success(projectTrackingService.getById(id));
|
|
|
+ }
|
|
|
+}
|