From c5ea85558fea4d82b5368073c598a30f905c4bdc Mon Sep 17 00:00:00 2001
From: shiyunteng <shiyunteng@example.com>
Date: 星期五, 23 十月 2026 17:11:49 +0800
Subject: [PATCH] feat:新增统计标注功能
---
platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractSubjectMatterController.java | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractSubjectMatterController.java b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractSubjectMatterController.java
index 29ef60c..3ffa3ea 100644
--- a/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractSubjectMatterController.java
+++ b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/ContractSubjectMatterController.java
@@ -5,10 +5,15 @@
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.by4cloud.platformx.business.dto.ContractSubjectMatterAnnotateDTO;
import com.by4cloud.platformx.business.entity.ContractSubjectMatter;
+import com.by4cloud.platformx.business.vo.ProductExcelVO;
+import com.by4cloud.platformx.business.vo.SubjectMatterExcelVO;
import com.by4cloud.platformx.common.core.util.R;
+import com.by4cloud.platformx.common.excel.annotation.RequestExcel;
import com.by4cloud.platformx.common.log.annotation.SysLog;
import com.by4cloud.platformx.business.service.ContractSubjectMatterService;
+import com.by4cloud.platformx.common.security.annotation.Inner;
import org.springframework.security.access.prepost.PreAuthorize;
import com.by4cloud.platformx.common.excel.annotation.ResponseExcel;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
@@ -17,6 +22,7 @@
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
+import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@@ -126,4 +132,44 @@
public R selectSubjectMatterProcess(@PathVariable("id" ) Long id) {
return contractSubjectMatterService.selectSubjectMatterProcess(id);
}
+
+ /**
+ * 閫氳繃鍚堝悓id鏌ヨ鏍囩殑鐗╁饱绾﹁繘搴�
+ * @param contractId id
+ * @return R
+ */
+ @GetMapping("/selectSubjectMatter/{contractId}" )
+ public R selectSubjectMatter(@PathVariable("contractId" ) Long contractId) {
+ return contractSubjectMatterService.selectSubjectMatter(contractId);
+ }
+
+ /**
+ * 瀵煎叆鏍囩殑鐗�
+ * @param excelVOList
+ * @param bindingResult
+ * @return
+ */
+ @PostMapping("/importSubjectMatter")
+ public R importSubjectMatter(@RequestExcel List<SubjectMatterExcelVO> excelVOList, BindingResult bindingResult) {
+ return contractSubjectMatterService.importSubjectMatter(excelVOList, bindingResult);
+ }
+
+ @Inner(value = false)
+ @GetMapping("/smjProduct/{erpCode}" )
+ public R smjProduct(@PathVariable("erpCode" ) String erpCode) {
+ return contractSubjectMatterService.smjProduct(erpCode);
+ }
+
+ /**
+ * 淇敼鍚堝悓鏍囩殑鐗╂槑缁嗚〃
+ * @param annotateDTOList 鍚堝悓鏍囩殑鐗╂槑缁嗚〃
+ * @return R
+ */
+ @Operation(summary = "鍚堝悓鏍囩殑鐗╃粺璁℃爣娉�" , description = "鍚堝悓鏍囩殑鐗╃粺璁℃爣娉�" )
+ @SysLog("鍚堝悓鏍囩殑鐗╃粺璁℃爣娉�" )
+ @PostMapping("/annotate")
+ public R annotate(@RequestBody List<ContractSubjectMatterAnnotateDTO> annotateDTOList) {
+ return contractSubjectMatterService.annotate(annotateDTOList);
+ }
+
}
\ No newline at end of file
--
Gitblit v1.9.1