From 7958f1dddb8a7f4e70d232b07a7703955ecedae0 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期六, 26 八月 2023 12:45:33 +0800
Subject: [PATCH] 优化diamante
---
service-common/src/main/java/com/java110/common/api/AttrValueApi.java | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/service-common/src/main/java/com/java110/common/api/AttrValueApi.java b/service-common/src/main/java/com/java110/common/api/AttrValueApi.java
index 798d447..45bfd55 100755
--- a/service-common/src/main/java/com/java110/common/api/AttrValueApi.java
+++ b/service-common/src/main/java/com/java110/common/api/AttrValueApi.java
@@ -6,7 +6,7 @@
import com.java110.common.bmo.attrValue.ISaveAttrValueBMO;
import com.java110.common.bmo.attrValue.IUpdateAttrValueBMO;
import com.java110.dto.attrSpec.AttrValueDto;
-import com.java110.po.attrValue.AttrValuePo;
+import com.java110.po.attrSpec.AttrValuePo;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
@@ -43,7 +43,7 @@
@RequestMapping(value = "/saveAttrValue", method = RequestMethod.POST)
public ResponseEntity<String> saveAttrValue(@RequestBody JSONObject reqJson) {
- Assert.hasKeyAndValue(reqJson, "specCd", "璇锋眰鎶ユ枃涓湭鍖呭惈specCd");
+ Assert.hasKeyAndValue(reqJson, "specId", "璇锋眰鎶ユ枃涓湭鍖呭惈specId");
Assert.hasKeyAndValue(reqJson, "value", "璇锋眰鎶ユ枃涓湭鍖呭惈value");
Assert.hasKeyAndValue(reqJson, "valueName", "璇锋眰鎶ユ枃涓湭鍖呭惈valueName");
Assert.hasKeyAndValue(reqJson, "valueShow", "璇锋眰鎶ユ枃涓湭鍖呭惈valueShow");
@@ -64,7 +64,7 @@
@RequestMapping(value = "/updateAttrValue", method = RequestMethod.POST)
public ResponseEntity<String> updateAttrValue(@RequestBody JSONObject reqJson) {
- Assert.hasKeyAndValue(reqJson, "specCd", "璇锋眰鎶ユ枃涓湭鍖呭惈specCd");
+ Assert.hasKeyAndValue(reqJson, "specId", "璇锋眰鎶ユ枃涓湭鍖呭惈specId");
Assert.hasKeyAndValue(reqJson, "value", "璇锋眰鎶ユ枃涓湭鍖呭惈value");
Assert.hasKeyAndValue(reqJson, "valueName", "璇锋眰鎶ユ枃涓湭鍖呭惈valueName");
Assert.hasKeyAndValue(reqJson, "valueShow", "璇锋眰鎶ユ枃涓湭鍖呭惈valueShow");
@@ -106,7 +106,8 @@
* valueName: '',
*/
@RequestMapping(value = "/queryAttrValue", method = RequestMethod.GET)
- public ResponseEntity<String> queryAttrValue(@RequestParam(value = "specCd") String specCd,
+ public ResponseEntity<String> queryAttrValue(@RequestParam(value = "specCd",required = false) String specCd,
+ @RequestParam(value = "specId",required = false) String specId,
@RequestParam(value = "page", required = false) int page,
@RequestParam(value = "row", required = false) int row,
@RequestParam(value = "value", required = false) String value,
@@ -122,6 +123,7 @@
attrValueDto.setValueName(valueName);
attrValueDto.setValueShow(valueShow);
attrValueDto.setDomain(domain);
+ attrValueDto.setSpecId(specId);
return getAttrValueBMOImpl.get(attrValueDto);
}
}
\ No newline at end of file
--
Gitblit v1.8.0