Sfoglia il codice sorgente

上报修改格式

mengy 3 anni fa
parent
commit
9676316fb7

+ 2 - 2
src/main/java/com/chinaitop/depot/business/controller/ReportMonthlyController.java

@@ -156,9 +156,9 @@ public class ReportMonthlyController {
156 156
 			JSONObject jsonObject = JSONObject.parseObject(reportMonthly);
157 157
 			String url = reportPath+"/rotation/report/monthly/save";//省平台月报表接口地址
158 158
 			//String count= HTTPUtils.doPost(url,"?monthlyReport="+jsonObject);
159
-			String count= HTTPUtils.doPost(url,jsonObject);
159
+			String count= HTTPUtils.doGet(url+"?monthlyReport="+mon);
160 160
 			System.out.println("返回值:"+count+"---"+"请求地址:"+url);
161
-			System.out.println("上报月报表请求地址以及参数:--"+url+jsonObject);
161
+			System.out.println("上报月报表请求地址以及参数:--"+url+"?monthlyReport="+jsonObject);
162 162
 			if(count.contains("Success") || count.contains("200")){
163 163
 				modelMap.put("status", "success");
164 164
 				modelMap.put("msg", "成功!");

+ 2 - 2
src/main/java/com/chinaitop/depot/business/controller/ReportWeeklyController.java

@@ -154,8 +154,8 @@ public class ReportWeeklyController {
154 154
 			String weekly = URLEncoder.encode(reportWeekly, "UTF-8");
155 155
 			JSONObject jsonObject = JSONObject.parseObject(reportWeekly);
156 156
 			String url = reportPath+"/rotation/report/weekly/save";//省平台周报表接口地址
157
-			//String count= HTTPUtils.doPost(url,"?weeklyReport="+jsonObject);
158
-			String count= HTTPUtils.doPost(url,jsonObject);
157
+			String count= HTTPUtils.doGet(url+"?weeklyReport="+weekly);
158
+			//String count= HTTPUtils.doPost(url,jsonObject);
159 159
 			System.out.println("返回值:"+count+"---"+"请求地址:"+url);
160 160
 			System.out.println("上报周报表请求地址以及参数:--"+url+jsonObject);
161 161
 			if(count.contains("Success") || count.contains("200")){