From c8ab2314ef277fce192b79efe13dfc922be80140 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期二, 03 三月 2026 16:52:11 +0800
Subject: [PATCH] fix: 工序的工资定额可以保存为null值

---
 src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesServiceFileController.java |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesServiceFileController.java b/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesServiceFileController.java
new file mode 100644
index 0000000..4a09c05
--- /dev/null
+++ b/src/main/java/com/ruoyi/aftersalesservice/controller/AfterSalesServiceFileController.java
@@ -0,0 +1,56 @@
+package com.ruoyi.aftersalesservice.controller;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.aftersalesservice.pojo.AfterSalesServiceFile;
+import com.ruoyi.aftersalesservice.service.AfterSalesServiceFileService;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
+import com.ruoyi.framework.web.controller.BaseController;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+
+/**
+ * <br>
+ * 鍞悗鏈嶅姟闄勪欢琛ㄦ帶鍒跺眰
+ * </br>
+ *
+ * @author deslrey
+ * @version 1.0
+ * @since 2026/03/02 11:20
+ */
+@RestController
+@Api(tags = "鍞悗鏈嶅姟闄勪欢琛�")
+@RequestMapping("/afterSalesService/file")
+public class AfterSalesServiceFileController extends BaseController {
+
+    @Autowired
+    private AfterSalesServiceFileService afterSalesServiceFileService;
+
+    @PostMapping("/upload")
+    @ApiOperation("鍞悗鏈嶅姟-鏂囦欢涓婁紶")
+    @Log(title = "鍞悗鏈嶅姟-鏂囦欢涓婁紶", businessType = BusinessType.INSERT)
+    public AjaxResult fileUpload(@RequestParam("file") MultipartFile file,
+                                 @RequestParam("id") Long afterSalesServiceId) {
+        afterSalesServiceFileService.fileUpload(file, afterSalesServiceId);
+        return AjaxResult.success("涓婁紶鎴愬姛");
+    }
+
+    @GetMapping("/listPage")
+    @ApiOperation("鍞悗澶勭悊-鍞悗闄勪欢鍒楄〃")
+    @Log(title = "鍞悗澶勭悊-鍞悗闄勪欢鍒楄〃", businessType = BusinessType.OTHER)
+    public AjaxResult fileList(Page<AfterSalesServiceFile> page, Long afterSalesServiceId) {
+        return AjaxResult.success(afterSalesServiceFileService.fileList(page, afterSalesServiceId));
+    }
+
+    @DeleteMapping("/del/{fileId}")
+    @ApiOperation("鍞悗澶勭悊-鍒犻櫎闄勪欢")
+    @Log(title = "鍞悗澶勭悊-鍒犻櫎闄勪欢", businessType = BusinessType.DELETE)
+    public AjaxResult delFile(@PathVariable Long fileId) {
+        afterSalesServiceFileService.delFile(fileId);
+        return AjaxResult.success("鍒犻櫎鎴愬姛!");
+    }
+}

--
Gitblit v1.9.3