From e7e6d39b095b6a763e54ab34631171c3de32ec9e Mon Sep 17 00:00:00 2001
From: 李白 <7387820+wjli_13439841639@user.noreply.gitee.com>
Date: 星期五, 15 五月 2026 08:33:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/PlanSubjectMatterController.java | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 119 insertions(+), 0 deletions(-)
diff --git a/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/PlanSubjectMatterController.java b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/PlanSubjectMatterController.java
new file mode 100644
index 0000000..01be06a
--- /dev/null
+++ b/platformx-business-finance-biz/src/main/java/com/by4cloud/platformx/business/controller/PlanSubjectMatterController.java
@@ -0,0 +1,119 @@
+package com.by4cloud.platformx.business.controller;
+
+import cn.hutool.core.util.ArrayUtil;
+import cn.hutool.core.collection.CollUtil;
+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.common.core.util.R;
+import com.by4cloud.platformx.common.log.annotation.SysLog;
+import com.by4cloud.platformx.business.entity.PlanSubjectMatter;
+import com.by4cloud.platformx.business.service.PlanSubjectMatterService;
+import org.springframework.security.access.prepost.PreAuthorize;
+import com.by4cloud.platformx.common.excel.annotation.ResponseExcel;
+import io.swagger.v3.oas.annotations.security.SecurityRequirement;
+import org.springdoc.core.annotations.ParameterObject;
+import org.springframework.http.HttpHeaders;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import io.swagger.v3.oas.annotations.Operation;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * 鎺掍骇璁″垝鏍囩殑鐗�
+ *
+ * @author platformx
+ * @date 2026-05-14 10:55:14
+ */
+@RestController
+@RequiredArgsConstructor
+@RequestMapping("/planSubjectMatter" )
+@Tag(description = "planSubjectMatter" , name = "鎺掍骇璁″垝鏍囩殑鐗╃鐞�" )
+@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
+public class PlanSubjectMatterController {
+
+ private final PlanSubjectMatterService planSubjectMatterService;
+
+ /**
+ * 鍒嗛〉鏌ヨ
+ * @param page 鍒嗛〉瀵硅薄
+ * @param planSubjectMatter 鎺掍骇璁″垝鏍囩殑鐗�
+ * @return
+ */
+ @Operation(summary = "鍒嗛〉鏌ヨ" , description = "鍒嗛〉鏌ヨ" )
+ @GetMapping("/page" )
+ @PreAuthorize("@pms.hasPermission('business_planSubjectMatter_view')" )
+ public R getPlanSubjectMatterPage(@ParameterObject Page page, @ParameterObject PlanSubjectMatter planSubjectMatter) {
+ LambdaQueryWrapper<PlanSubjectMatter> wrapper = Wrappers.lambdaQuery();
+ return R.ok(planSubjectMatterService.page(page, wrapper));
+ }
+
+
+ /**
+ * 閫氳繃id鏌ヨ鎺掍骇璁″垝鏍囩殑鐗�
+ * @param id id
+ * @return R
+ */
+ @Operation(summary = "閫氳繃id鏌ヨ" , description = "閫氳繃id鏌ヨ" )
+ @GetMapping("/{id}" )
+ @PreAuthorize("@pms.hasPermission('business_planSubjectMatter_view')" )
+ public R getById(@PathVariable("id" ) Long id) {
+ return R.ok(planSubjectMatterService.getById(id));
+ }
+
+ /**
+ * 鏂板鎺掍骇璁″垝鏍囩殑鐗�
+ * @param planSubjectMatter 鎺掍骇璁″垝鏍囩殑鐗�
+ * @return R
+ */
+ @Operation(summary = "鏂板鎺掍骇璁″垝鏍囩殑鐗�" , description = "鏂板鎺掍骇璁″垝鏍囩殑鐗�" )
+ @SysLog("鏂板鎺掍骇璁″垝鏍囩殑鐗�" )
+ @PostMapping
+ @PreAuthorize("@pms.hasPermission('business_planSubjectMatter_add')" )
+ public R save(@RequestBody PlanSubjectMatter planSubjectMatter) {
+ return R.ok(planSubjectMatterService.save(planSubjectMatter));
+ }
+
+ /**
+ * 淇敼鎺掍骇璁″垝鏍囩殑鐗�
+ * @param planSubjectMatter 鎺掍骇璁″垝鏍囩殑鐗�
+ * @return R
+ */
+ @Operation(summary = "淇敼鎺掍骇璁″垝鏍囩殑鐗�" , description = "淇敼鎺掍骇璁″垝鏍囩殑鐗�" )
+ @SysLog("淇敼鎺掍骇璁″垝鏍囩殑鐗�" )
+ @PutMapping
+ @PreAuthorize("@pms.hasPermission('business_planSubjectMatter_edit')" )
+ public R updateById(@RequestBody PlanSubjectMatter planSubjectMatter) {
+ return R.ok(planSubjectMatterService.updateById(planSubjectMatter));
+ }
+
+ /**
+ * 閫氳繃id鍒犻櫎鎺掍骇璁″垝鏍囩殑鐗�
+ * @param ids id鍒楄〃
+ * @return R
+ */
+ @Operation(summary = "閫氳繃id鍒犻櫎鎺掍骇璁″垝鏍囩殑鐗�" , description = "閫氳繃id鍒犻櫎鎺掍骇璁″垝鏍囩殑鐗�" )
+ @SysLog("閫氳繃id鍒犻櫎鎺掍骇璁″垝鏍囩殑鐗�" )
+ @DeleteMapping
+ @PreAuthorize("@pms.hasPermission('business_planSubjectMatter_del')" )
+ public R removeById(@RequestBody Long[] ids) {
+ return R.ok(planSubjectMatterService.removeBatchByIds(CollUtil.toList(ids)));
+ }
+
+
+ /**
+ * 瀵煎嚭excel 琛ㄦ牸
+ * @param planSubjectMatter 鏌ヨ鏉′欢
+ * @param ids 瀵煎嚭鎸囧畾ID
+ * @return excel 鏂囦欢娴�
+ */
+ @ResponseExcel
+ @GetMapping("/export")
+ @PreAuthorize("@pms.hasPermission('business_planSubjectMatter_export')" )
+ public List<PlanSubjectMatter> export(PlanSubjectMatter planSubjectMatter,Long[] ids) {
+ return planSubjectMatterService.list(Wrappers.lambdaQuery(planSubjectMatter).in(ArrayUtil.isNotEmpty(ids), PlanSubjectMatter::getId, ids));
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.1