From f075bf44cca55d7754332ef3e9fdda7340d049a9 Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期三, 31 八月 2022 17:04:48 +0800
Subject: [PATCH] 项目规格信息接口修改

---
 phis-feign/src/main/java/com/hz/phis/dt/spec/SpecDt.java                    |   20 +++---
 phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecDt.java                 |   21 +++++++
 phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java |   12 +++
 phis-feign/src/main/java/com/hz/phis/dt/spec/SkuAndSpuDt.java               |   16 +++++
 phis-feign/src/main/java/com/hz/phis/dt/spec/SkuSpecDt.java                 |   39 +++++--------
 phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecValueDt.java            |   18 ++++++
 6 files changed, 91 insertions(+), 35 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java
index 428a4bb..029f575 100644
--- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java
@@ -78,10 +78,18 @@
     Result getUpdateSpuProject(@RequestBody ProjectDto projectDto);
 
     /**
-     * 鑾峰彇椤圭洰spu瑙勬牸鍒楄〃(鍚屾浣跨敤)
+     * 鑾峰彇褰撳墠椤圭洰sku瑙勬牸鍜屽叾spu瑙勬牸(鍚屾浣跨敤)
      * @return Result
+     * 杩斿洖浣跨敤SpecDt
      */
     @PostMapping(value = "/project/page/spu/spec/update")
-    Result getUpdateSpuSpecProject(@RequestParam("hisId") String hisId);
+    Result getUpdateSpuSpecProject(@RequestParam("projectId") String projectId);
+
+    /**
+     * 鑾峰彇褰撳墠椤圭洰sku鍜屽搴旂殑spu淇℃伅
+     * @return Result
+     */
+    @PostMapping(value = "/project/sku/spu")
+    Result getSkuAndSpu(@RequestParam("projectId") String projectId);
 
 }
\ No newline at end of file
diff --git a/phis-feign/src/main/java/com/hz/phis/dt/spec/SkuAndSpuDt.java b/phis-feign/src/main/java/com/hz/phis/dt/spec/SkuAndSpuDt.java
new file mode 100644
index 0000000..bb38ef8
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/phis/dt/spec/SkuAndSpuDt.java
@@ -0,0 +1,16 @@
+package com.hz.phis.dt.spec;
+
+import lombok.Data;
+
+/**
+ * sku鍜宻pu淇℃伅杩斿洖鎵╁睍
+ * @author fwq
+ * */
+@Data
+public class SkuAndSpuDt {
+    /**sku鏍囪瘑*/
+    private String skuId;
+    /**spu鏍囪瘑*/
+    private String spuId;
+
+}
diff --git a/phis-feign/src/main/java/com/hz/phis/dt/spec/SkuSpecDt.java b/phis-feign/src/main/java/com/hz/phis/dt/spec/SkuSpecDt.java
index c7d4b99..cd8f7ab 100644
--- a/phis-feign/src/main/java/com/hz/phis/dt/spec/SkuSpecDt.java
+++ b/phis-feign/src/main/java/com/hz/phis/dt/spec/SkuSpecDt.java
@@ -1,35 +1,26 @@
 package com.hz.phis.dt.spec;
 
+import lombok.Data;
 
+/**
+ * 椤圭洰sku杩斿洖鎵╁睍
+ * @author fwq
+ * */
+@Data
 public class SkuSpecDt {
 
+    /**瑙勬牸鍊艰褰曟爣璇�*/
     private String id;
+    /**椤圭洰sku鏍囪瘑*/
+    private String projectId;
 
+    /**椤圭洰sku瑙勬牸鏍囪瘑*/
+    private String specId;
+    /**椤圭洰sku瑙勬牸鍚嶇О*/
     private String specName;
 
+    /**椤圭洰sku瑙勬牸鍊兼爣璇�*/
+    private String specValue;
+    /**椤圭洰sku瑙勬牸鍊煎悕绉�*/
     private String specValueName;
-
-    public String getId() {
-        return id;
-    }
-
-    public void setId(String id) {
-        this.id = id;
-    }
-
-    public String getSpecName() {
-        return specName;
-    }
-
-    public void setSpecName(String specName) {
-        this.specName = specName;
-    }
-
-    public String getSpecValueName() {
-        return specValueName;
-    }
-
-    public void setSpecValueName(String specValueName) {
-        this.specValueName = specValueName;
-    }
 }
diff --git a/phis-feign/src/main/java/com/hz/phis/dt/spec/SpecDt.java b/phis-feign/src/main/java/com/hz/phis/dt/spec/SpecDt.java
index b5b5588..0aba681 100644
--- a/phis-feign/src/main/java/com/hz/phis/dt/spec/SpecDt.java
+++ b/phis-feign/src/main/java/com/hz/phis/dt/spec/SpecDt.java
@@ -1,16 +1,18 @@
 package com.hz.phis.dt.spec;
 
+import lombok.Data;
+
 import java.util.List;
 
+/**
+ * 瑙勬牸杩斿洖鎵╁睍
+ * @author fwq
+ * */
+@Data
 public class SpecDt  {
+    /**spu瑙勬牸淇℃伅*/
+    private List<SpuSpecDt> spuSpecList;
+    /**sku瑙勬牸淇℃伅*/
+    private List<SkuSpecDt> projectValueList;
 
-    private List<SkuSpecDt> skuSpecList;
-
-    public List<SkuSpecDt> getSkuSpecList() {
-        return skuSpecList;
-    }
-
-    public void setSkuSpecList(List<SkuSpecDt> skuSpecList) {
-        this.skuSpecList = skuSpecList;
-    }
 }
diff --git a/phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecDt.java b/phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecDt.java
new file mode 100644
index 0000000..5ee9035
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecDt.java
@@ -0,0 +1,21 @@
+package com.hz.phis.dt.spec;
+
+
+import lombok.Data;
+
+import java.util.List;
+/**
+ * spu瑙勬牸杩斿洖鎵╁睍
+ * @author fwq
+ * */
+@Data
+public class SpuSpecDt {
+    /**椤圭洰spu鏍囪瘑*/
+    private String generalId;
+    /**瑙勬牸鍊艰褰曟爣璇�*/
+    private String id;
+    /**瑙勬牸鏍囪瘑*/
+    private String specId;
+    /**瑙勬牸鍊�*/
+    private List<SpuSpecValueDt> specValueList;
+}
diff --git a/phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecValueDt.java b/phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecValueDt.java
new file mode 100644
index 0000000..1969c41
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/phis/dt/spec/SpuSpecValueDt.java
@@ -0,0 +1,18 @@
+package com.hz.phis.dt.spec;
+
+
+import lombok.Data;
+
+/**
+ * spu瑙勬牸鍊艰繑鍥炴墿灞�
+ * @author fwq
+ * */
+@Data
+public class SpuSpecValueDt {
+
+    /**瑙勬牸鍊兼爣璇�*/
+    private String id;
+    /**瑙勬牸鍊煎悕绉�*/
+    private String specValueName;
+
+}

--
Gitblit v1.8.0