From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能
---
service-fee/src/main/java/com/java110/fee/api/FeePrintSpecApi.java | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/service-fee/src/main/java/com/java110/fee/api/FeePrintSpecApi.java b/service-fee/src/main/java/com/java110/fee/api/FeePrintSpecApi.java
old mode 100644
new mode 100755
index 4e4af5a..5431153
--- a/service-fee/src/main/java/com/java110/fee/api/FeePrintSpecApi.java
+++ b/service-fee/src/main/java/com/java110/fee/api/FeePrintSpecApi.java
@@ -11,7 +11,11 @@
import com.java110.utils.util.BeanConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
@RestController
@@ -40,7 +44,6 @@
public ResponseEntity<String> saveFeePrintSpec(@RequestBody JSONObject reqJson) {
Assert.hasKeyAndValue(reqJson, "communityId", "璇锋眰鎶ユ枃涓湭鍖呭惈communityId");
- Assert.hasKeyAndValue(reqJson, "content", "璇锋眰鎶ユ枃涓湭鍖呭惈content");
Assert.hasKeyAndValue(reqJson, "specCd", "璇锋眰鎶ユ枃涓湭鍖呭惈specCd");
@@ -60,7 +63,6 @@
public ResponseEntity<String> updateFeePrintSpec(@RequestBody JSONObject reqJson) {
Assert.hasKeyAndValue(reqJson, "communityId", "璇锋眰鎶ユ枃涓湭鍖呭惈communityId");
- Assert.hasKeyAndValue(reqJson, "content", "璇锋眰鎶ユ枃涓湭鍖呭惈content");
Assert.hasKeyAndValue(reqJson, "specCd", "璇锋眰鎶ユ枃涓湭鍖呭惈specCd");
Assert.hasKeyAndValue(reqJson, "printId", "printId涓嶈兘涓虹┖");
@@ -98,12 +100,14 @@
*/
@RequestMapping(value = "/queryFeePrintSpec", method = RequestMethod.GET)
public ResponseEntity<String> queryFeePrintSpec(@RequestParam(value = "communityId") String communityId,
+ @RequestParam(value = "specCd", required = false) String specCd,
@RequestParam(value = "page") int page,
@RequestParam(value = "row") int row) {
FeePrintSpecDto feePrintSpecDto = new FeePrintSpecDto();
feePrintSpecDto.setPage(page);
feePrintSpecDto.setRow(row);
feePrintSpecDto.setCommunityId(communityId);
+ feePrintSpecDto.setSpecCd(specCd);
return getFeePrintSpecBMOImpl.get(feePrintSpecDto);
}
}
--
Gitblit v1.8.0