|
|
@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
23
|
23
|
import org.springframework.web.bind.annotation.RestController;
|
|
24
|
24
|
|
|
25
|
25
|
import javax.annotation.Resource;
|
|
|
26
|
+import java.io.IOException;
|
|
26
|
27
|
import java.util.*;
|
|
27
|
28
|
|
|
28
|
29
|
/**
|
|
|
@@ -87,6 +88,8 @@ public class FumigationForRecordController {
|
|
87
|
88
|
if(list.size() > 0){
|
|
88
|
89
|
pageInfo.setStartRow(pageInfo.getStartRow()+1);
|
|
89
|
90
|
pageInfo.setEndRow(pageInfo.getEndRow()+1);
|
|
|
91
|
+ pageInfo.setPageNum(pageNum);
|
|
|
92
|
+ pageInfo.setPageSize(pageSize);
|
|
90
|
93
|
}
|
|
91
|
94
|
return pageInfo;
|
|
92
|
95
|
}
|
|
|
@@ -257,11 +260,16 @@ public class FumigationForRecordController {
|
|
257
|
260
|
}
|
|
258
|
261
|
|
|
259
|
262
|
if(ParameterUtil.isequal(stateType,"7")){
|
|
260
|
|
- //如果是提交的话则除了保存还要把数据提交到市级来进行审批
|
|
261
|
|
- Map<String, Object> dataMap = fumigationFroRecordService.getFroRecordByIds(uuid);
|
|
262
|
|
- String url = reportPath+"/api/cbl-app/cbl/fumigation/insertFumigation";//市级接口
|
|
263
|
|
- String strResult = HttpUtil.doPost(url,JSON.toJSONString(dataMap));
|
|
264
|
|
- System.out.println(strResult);
|
|
|
263
|
+ try {
|
|
|
264
|
+ //如果是提交的话则除了保存还要把数据提交到市级来进行审批
|
|
|
265
|
+ Map<String, Object> dataMap = fumigationFroRecordService.getFroRecordByIds(uuid);
|
|
|
266
|
+ String url = reportPath+"/api/cbl-app/cbl/fumigation/insertFumigation";//市级接口
|
|
|
267
|
+ String strResult = HttpUtil.doPost(url,JSON.toJSONString(dataMap));
|
|
|
268
|
+ }catch (IOException e) {
|
|
|
269
|
+ e.printStackTrace();
|
|
|
270
|
+ } finally {
|
|
|
271
|
+ modelMap.put("status", "success");
|
|
|
272
|
+ }
|
|
265
|
273
|
}
|
|
266
|
274
|
modelMap.put("status", "success");
|
|
267
|
275
|
return modelMap;
|
|
|
@@ -334,13 +342,16 @@ public class FumigationForRecordController {
|
|
334
|
342
|
fumigationPlanService.updateByExample(tFumigationPlan, example);
|
|
335
|
343
|
}
|
|
336
|
344
|
}
|
|
337
|
|
-
|
|
338
|
|
- //如果是提交的话则除了保存还要把数据提交到市级来进行审批
|
|
339
|
|
- Map<String, Object> dataMap = fumigationFroRecordService.getFroRecordByIds(forrecordId);
|
|
340
|
|
- String url = reportPath+"/api/cbl-app/cbl/fumigation/insertFumigation";//市级接口
|
|
341
|
|
-// dataMap.put("tyshxydm","91120118712878209L");
|
|
342
|
|
- String strResult = HttpUtil.doPost(url,JSON.toJSONString(dataMap));
|
|
343
|
|
- modelMap.put("status", "success");
|
|
|
345
|
+ try {
|
|
|
346
|
+ //如果是提交的话则除了保存还要把数据提交到市级来进行审批
|
|
|
347
|
+ Map<String, Object> dataMap = fumigationFroRecordService.getFroRecordByIds(forrecordId);
|
|
|
348
|
+ String url = reportPath+"/api/cbl-app/cbl/fumigation/insertFumigation";//市级接口
|
|
|
349
|
+ String strResult = HttpUtil.doPost(url,JSON.toJSONString(dataMap));
|
|
|
350
|
+ }catch (IOException e) {
|
|
|
351
|
+ e.printStackTrace();
|
|
|
352
|
+ } finally {
|
|
|
353
|
+ modelMap.put("status", "success");
|
|
|
354
|
+ }
|
|
344
|
355
|
return modelMap;
|
|
345
|
356
|
}
|
|
346
|
357
|
|