From e06d315f20570f765ae361c135f940940bdaa39c Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 06 四月 2023 18:55:20 +0800
Subject: [PATCH] add community publicity
---
service-common/src/main/java/com/java110/common/api/AttrSpecApi.java | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/service-common/src/main/java/com/java110/common/api/AttrSpecApi.java b/service-common/src/main/java/com/java110/common/api/AttrSpecApi.java
index 2ec9320..29d24f0 100755
--- a/service-common/src/main/java/com/java110/common/api/AttrSpecApi.java
+++ b/service-common/src/main/java/com/java110/common/api/AttrSpecApi.java
@@ -70,6 +70,7 @@
public ResponseEntity<String> updateAttrSpec(@RequestBody JSONObject reqJson) {
Assert.hasKeyAndValue(reqJson, "specCd", "璇锋眰鎶ユ枃涓湭鍖呭惈specCd");
+ Assert.hasKeyAndValue(reqJson, "specId", "璇锋眰鎶ユ枃涓湭鍖呭惈specId");
Assert.hasKeyAndValue(reqJson, "tableName", "璇锋眰鎶ユ枃涓湭鍖呭惈tableName");
Assert.hasKeyAndValue(reqJson, "specName", "璇锋眰鎶ユ枃涓湭鍖呭惈specName");
Assert.hasKeyAndValue(reqJson, "specHoldplace", "璇锋眰鎶ユ枃涓湭鍖呭惈specHoldplace");
@@ -96,7 +97,7 @@
@RequestMapping(value = "/deleteAttrSpec", method = RequestMethod.POST)
public ResponseEntity<String> deleteAttrSpec(@RequestBody JSONObject reqJson) {
- Assert.hasKeyAndValue(reqJson, "specCd", "specCd涓嶈兘涓虹┖");
+ Assert.hasKeyAndValue(reqJson, "specId", "specId涓嶈兘涓虹┖");
AttrSpecPo attrSpecPo = BeanConvertUtil.covertBean(reqJson, AttrSpecPo.class);
@@ -114,12 +115,11 @@
@RequestMapping(value = "/queryAttrSpec", method = RequestMethod.GET)
public ResponseEntity<String> queryAttrSpec(@RequestParam(value = "tableName", required = false) String tableName,
@RequestParam(value = "specCd", required = false) String specCd,
+ @RequestParam(value = "specId", required = false) String specId,
@RequestParam(value = "specName", required = false) String specName,
@RequestParam(value = "domain", required = false) String domain,
@RequestParam(value = "page", required = false) int page,
- @RequestParam(value = "row", required = false) int row
-
- ) {
+ @RequestParam(value = "row", required = false) int row) {
AttrSpecDto attrSpecDto = new AttrSpecDto();
attrSpecDto.setTableName(tableName);
attrSpecDto.setPage(page);
@@ -127,6 +127,7 @@
attrSpecDto.setSpecCd(specCd);
attrSpecDto.setSpecName(specName);
attrSpecDto.setDomain(domain);
+ attrSpecDto.setSpecId(specId);
return getAttrSpecBMOImpl.get(attrSpecDto);
}
}
--
Gitblit v1.8.0