|
@@ -3,6 +3,7 @@ package cn.cslg.report.controller;
|
|
|
import cn.cslg.report.common.core.base.Constants;
|
|
|
import cn.cslg.report.common.model.vo.CompareRecordsVO;
|
|
|
import cn.cslg.report.common.utils.Response;
|
|
|
+import cn.cslg.report.common.utils.SecurityUtils.LoginUtils;
|
|
|
import cn.cslg.report.service.business.CompareRecordsService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
@@ -19,11 +20,13 @@ import java.io.IOException;
|
|
|
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
|
|
|
public class CompareRecordsController {
|
|
|
private final CompareRecordsService compareRecordsService;
|
|
|
+// private final LoginUtils loginUtils;
|
|
|
+
|
|
|
@PostMapping(value = "/addCompareRecords")
|
|
|
@Operation(summary = "增加对比记录数据")
|
|
|
public String addCompareRecords(@RequestBody CompareRecordsVO compareRecordsVO)throws IOException{
|
|
|
if (compareRecordsVO != null) {
|
|
|
-
|
|
|
+//loginUtils.getId();
|
|
|
return compareRecordsService.addCompareRecords(compareRecordsVO);
|
|
|
|
|
|
} else {
|
|
@@ -49,6 +52,7 @@ public class CompareRecordsController {
|
|
|
@Operation(summary = "分页查询对比记录数据")
|
|
|
public String slectCompareRecords(@RequestBody CompareRecordsVO compareRecordsVO) throws IOException{
|
|
|
return compareRecordsService.find(compareRecordsVO);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|