From b848451e8889fea12ce40b7818c1b8d84b50ea02 Mon Sep 17 00:00:00 2001
From: lxw <810412026@qq.com>
Date: 星期四, 01 九月 2022 13:41:07 +0800
Subject: [PATCH] 权限管理组合操作

---
 src/main/java/com/whyc/controller/ProductController.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/whyc/controller/ProductController.java b/src/main/java/com/whyc/controller/ProductController.java
index 78c2bd1..cd96f58 100644
--- a/src/main/java/com/whyc/controller/ProductController.java
+++ b/src/main/java/com/whyc/controller/ProductController.java
@@ -1,6 +1,7 @@
 package com.whyc.controller;
 
 import com.whyc.dto.Response;
+import com.whyc.pojo.Product;
 import com.whyc.service.*;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -46,8 +47,8 @@
     }
     @ApiOperation(value = "浜у搧璇︽儏鏌ョ湅鐗堟湰淇℃伅",notes = "8.17淇敼鍚庝娇鐢�")
     @GetMapping("getProductVersion")
-    public Response getProductVersion( @RequestParam String parentModel, String customCode){
-        return historyService.getProductVersion(parentModel,customCode);
+    public Response getProductVersion( @RequestParam String parentCode, String customCode){
+        return historyService.getProductVersion(parentCode,customCode);
     }
     @ApiOperation(value = "鏍规嵁浜у搧id鍜岀増鏈煡璇㈠瓙浠跺強鍏跺叧鑱旂殑鐗╂枡淇℃伅",notes = "8.17淇敼鍚庝娇鐢�")
     @GetMapping("getBomAndMaterial")
@@ -71,9 +72,20 @@
         bomHistoryService.downloadProductHistory(req,resp,productId,version);
     }
 
+    @ApiOperation(value = "鍘嗗彶鐗堟湰鍙敤鎬ц瀹�",notes = "8.31淇敼鍚庝娇鐢�")
+    @GetMapping("setpHistoryEnable")
+    public Response setpHistoryEnable( @RequestParam String parentCode, @RequestParam String customCode, @RequestParam int version,@RequestParam int enabled) {
+        return historyService.setpHistoryEnable(parentCode, customCode, version, enabled);
+    }
     @PostMapping("zipParse")
     @ApiOperation("zip瑙f瀽")
     public Response zipParse(@RequestParam("file") MultipartFile file) throws IOException, InvalidFormatException {
         return service.zipParse(file);
     }
+
+    @PostMapping
+    @ApiOperation(value = "鏂板",notes = "瑙f瀽鏃惰繑鍥炵殑缁濆璺緞,闇�瑕佸洖浼犲埌瀛楁fileUrl")
+    public Response add(@RequestBody Product product){
+        return service.add(product);
+    }
 }

--
Gitblit v1.9.1