From 61cd8da46195e98f3acaf1586956c1d7f2234070 Mon Sep 17 00:00:00 2001
From: zhanghl <253316343@qq.com>
Date: 星期四, 17 四月 2025 18:45:25 +0800
Subject: [PATCH] 增加日志表基础代码
---
aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsGasPipingPlanController.java | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsGasPipingPlanController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsGasPipingPlanController.java
index 921ea13..d0e914d 100644
--- a/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsGasPipingPlanController.java
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/mainPlan/ApsGasPipingPlanController.java
@@ -39,7 +39,7 @@
/**
* 鏌ヨ姘斾綋绠¤矾璁″垝绠$悊鍒楄〃
*/
- @RequiresPermissions("gasPiping:gasPiping:list")
+ @RequiresPermissions("gasPiping:list")
@GetMapping("/list")
public TableDataInfo list(ApsGasPipingPlan apsGasPipingPlan)
{
@@ -65,7 +65,7 @@
/**
* 瀵煎嚭姘斾綋绠¤矾璁″垝绠$悊鍒楄〃
*/
- @RequiresPermissions("gasPiping:gasPiping:export")
+ @RequiresPermissions("gasPiping:export")
@Log(title = "姘斾綋绠¤矾璁″垝绠$悊", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ApsGasPipingPlan apsGasPipingPlan)
@@ -105,7 +105,7 @@
/**
* 鑾峰彇姘斾綋绠¤矾璁″垝绠$悊璇︾粏淇℃伅
*/
- @RequiresPermissions("gasPiping:gasPiping:query")
+ @RequiresPermissions("gasPiping:query")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id)
{
@@ -115,7 +115,7 @@
/**
* 鏂板姘斾綋绠¤矾璁″垝绠$悊
*/
- @RequiresPermissions("gasPiping:gasPiping:add")
+ @RequiresPermissions("gasPiping:add")
@Log(title = "姘斾綋绠¤矾璁″垝绠$悊", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ApsGasPipingPlan apsGasPipingPlan)
@@ -126,7 +126,7 @@
/**
* 淇敼姘斾綋绠¤矾璁″垝绠$悊
*/
- @RequiresPermissions("gasPiping:gasPiping:edit")
+ @RequiresPermissions("gasPiping:edit")
@Log(title = "姘斾綋绠¤矾璁″垝绠$悊", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ApsGasPipingPlan apsGasPipingPlan)
@@ -137,16 +137,18 @@
/**
* 鍒犻櫎姘斾綋绠¤矾璁″垝绠$悊
*/
- @RequiresPermissions("gasPiping:gasPiping:remove")
+ @RequiresPermissions("gasPiping:remove")
@Log(title = "姘斾綋绠¤矾璁″垝绠$悊", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids)
{
return toAjax(apsGasPipingPlanService.deleteApsGasPipingPlanByIds(ids));
}
+
/**
* 姘斾綋绠¤矾璁″垝瀵煎叆
*/
+ @RequiresPermissions("gasPiping:import")
@PostMapping("/importData")
public AjaxResult importData(MultipartFile file) throws Exception {
ExcelUtil<ApsGasPipingPlanTemp> util = new ExcelUtil<ApsGasPipingPlanTemp>(ApsGasPipingPlanTemp.class);
@@ -198,8 +200,9 @@
* @Author: wwj
* @Date: 2025/4/9
*/
- @GetMapping("/confirmGasPiping")
- public AjaxResult confirmGasPiping(ApsGasPipingPlanTemp apsGasPipingPlanTemp) {
+ @RequiresPermissions("gasPiping:confirm")
+ @PostMapping("/confirmGasPiping")
+ public AjaxResult confirmGasPiping(@RequestBody ApsGasPipingPlanTemp apsGasPipingPlanTemp) {
return toAjax(apsGasPipingPlanService.confirmGasPiping(apsGasPipingPlanTemp));
}
}
--
Gitblit v1.9.3