Browse Source

ERP接口返回格式调整

hejq 7 years ago
parent
commit
cef864b4b0

+ 3 - 3
src/main/java/com/uas/platform/b2b/publicapi/controller/TurnoverController.java

@@ -44,8 +44,8 @@ public class TurnoverController {
      * @return
      */
     @RequestMapping(value = "/substitute", method = RequestMethod.GET)
-    public List<Turnover> findSubstitute() {
-        return turnoverService.findSubstitute();
+    public String findSubstitute() throws UnsupportedEncodingException {
+        return URLEncoder.encode(turnoverService.findSubstitute().toString(), Consts.UTF_8.toString());
     }
 
     /**
@@ -66,7 +66,7 @@ public class TurnoverController {
      */
     @RequestMapping(value = "/substitute/monthly", method = RequestMethod.GET)
     public String findSubstituteMonthly() throws UnsupportedEncodingException {
-        return URLEncoder.encode(turnoverService.findSubstituteMonthly().toString(),  Consts.UTF_8.toString());
+        return URLEncoder.encode(turnoverService.findSubstituteMonthly().toString(), Consts.UTF_8.toString());
     }
 
     /**