From 8b445cf1e77b2e6cca83a15a2a12f0e1e94a6bb5 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 23 六月 2020 19:05:26 +0800
Subject: [PATCH] 优化停车费查询

---
 service-front/src/main/java/com/java110/front/smo/impl/FrontFeeServiceSMOImpl.java |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/service-front/src/main/java/com/java110/front/smo/impl/FrontFeeServiceSMOImpl.java b/service-front/src/main/java/com/java110/front/smo/impl/FrontFeeServiceSMOImpl.java
index 6014719..9bea7a1 100644
--- a/service-front/src/main/java/com/java110/front/smo/impl/FrontFeeServiceSMOImpl.java
+++ b/service-front/src/main/java/com/java110/front/smo/impl/FrontFeeServiceSMOImpl.java
@@ -2,14 +2,14 @@
 
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
+import com.java110.core.component.BaseComponentSMO;
+import com.java110.core.context.IPageData;
+import com.java110.front.smo.IFeeServiceSMO;
 import com.java110.utils.constant.FeeTypeConstant;
 import com.java110.utils.constant.PrivilegeCodeConstant;
 import com.java110.utils.constant.ServiceConstant;
 import com.java110.utils.util.Assert;
 import com.java110.utils.util.StringUtil;
-import com.java110.core.context.IPageData;
-import com.java110.core.component.BaseComponentSMO;
-import com.java110.front.smo.IFeeServiceSMO;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -62,15 +62,15 @@
         }
         JSONArray feeConfigs = JSONObject.parseObject(responseEntity.getBody().toString()).getJSONArray("feeConfigs");
 
-        if (feeConfigs != null && feeConfigs.size() > 1) {
-            responseEntity = new ResponseEntity<String>("鏁版嵁寮傚父锛岃妫�鏌ラ厤缃暟鎹�", HttpStatus.BAD_REQUEST);
-            return responseEntity;
-        }
+//        if (feeConfigs != null && feeConfigs.size() > 1) {
+//            responseEntity = new ResponseEntity<String>("鏁版嵁寮傚父锛岃妫�鏌ラ厤缃暟鎹�", HttpStatus.BAD_REQUEST);
+//            return responseEntity;
+//        }
 
         if (feeConfigs != null && feeConfigs.size() > 0) {
-            responseEntity = new ResponseEntity<String>(JSONObject.toJSONString(feeConfigs.get(0)), HttpStatus.OK);
+            responseEntity = new ResponseEntity<String>(JSONArray.toJSONString(feeConfigs), HttpStatus.OK);
         } else {
-            responseEntity = new ResponseEntity<String>("{}", HttpStatus.OK);
+            responseEntity = new ResponseEntity<String>("[]", HttpStatus.OK);
 
         }
 

--
Gitblit v1.8.0