From 0b04f664887c73e90bf684a4e69c0fdbfe26349d Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 29 三月 2023 13:35:20 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
---
service-fee/src/main/java/com/java110/fee/api/FeePrintSpecApi.java | 14 ++------------
1 files changed, 2 insertions(+), 12 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
index 8622ed7..f05a52b 100755
--- a/service-fee/src/main/java/com/java110/fee/api/FeePrintSpecApi.java
+++ b/service-fee/src/main/java/com/java110/fee/api/FeePrintSpecApi.java
@@ -17,15 +17,16 @@
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
-
@RestController
@RequestMapping(value = "/feePrintSpec")
public class FeePrintSpecApi {
@Autowired
private ISaveFeePrintSpecBMO saveFeePrintSpecBMOImpl;
+
@Autowired
private IUpdateFeePrintSpecBMO updateFeePrintSpecBMOImpl;
+
@Autowired
private IDeleteFeePrintSpecBMO deleteFeePrintSpecBMOImpl;
@@ -42,12 +43,8 @@
*/
@RequestMapping(value = "/saveFeePrintSpec", method = RequestMethod.POST)
public ResponseEntity<String> saveFeePrintSpec(@RequestBody JSONObject reqJson) {
-
Assert.hasKeyAndValue(reqJson, "communityId", "璇锋眰鎶ユ枃涓湭鍖呭惈communityId");
- Assert.hasKeyAndValue(reqJson, "content", "璇锋眰鎶ユ枃涓湭鍖呭惈content");
Assert.hasKeyAndValue(reqJson, "specCd", "璇锋眰鎶ユ枃涓湭鍖呭惈specCd");
-
-
FeePrintSpecPo feePrintSpecPo = BeanConvertUtil.covertBean(reqJson, FeePrintSpecPo.class);
return saveFeePrintSpecBMOImpl.save(feePrintSpecPo);
}
@@ -62,13 +59,9 @@
*/
@RequestMapping(value = "/updateFeePrintSpec", method = RequestMethod.POST)
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涓嶈兘涓虹┖");
-
-
FeePrintSpecPo feePrintSpecPo = BeanConvertUtil.covertBean(reqJson, FeePrintSpecPo.class);
return updateFeePrintSpecBMOImpl.update(feePrintSpecPo);
}
@@ -84,10 +77,7 @@
@RequestMapping(value = "/deleteFeePrintSpec", method = RequestMethod.POST)
public ResponseEntity<String> deleteFeePrintSpec(@RequestBody JSONObject reqJson) {
Assert.hasKeyAndValue(reqJson, "communityId", "灏忓尯ID涓嶈兘涓虹┖");
-
Assert.hasKeyAndValue(reqJson, "printId", "printId涓嶈兘涓虹┖");
-
-
FeePrintSpecPo feePrintSpecPo = BeanConvertUtil.covertBean(reqJson, FeePrintSpecPo.class);
return deleteFeePrintSpecBMOImpl.delete(feePrintSpecPo);
}
--
Gitblit v1.8.0