OffSiteTransportationController.java 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. package com.steerinfo.dil.controller;
  2. import com.alibaba.fastjson.JSON;
  3. import com.alibaba.fastjson.JSONObject;
  4. import com.steerinfo.dil.service.ITmstruckLeaveFactoryResultService;
  5. import com.steerinfo.dil.service.impl.OffSiteTransportationServiceImpl;
  6. import com.steerinfo.dil.util.BaseRESTfulController;
  7. import com.steerinfo.dil.util.ColumnDataUtil;
  8. import com.steerinfo.dil.util.PageListAdd;
  9. import com.steerinfo.framework.controller.RESTfulResult;
  10. import com.steerinfo.framework.service.pagehelper.PageHelper;
  11. import com.steerinfo.route.config.ImageFileUtils;
  12. import com.steerinfo.route.service.impl.RouteServiceImpl;
  13. import com.steerinfo.route.threeRequest.ZhongJiaoXingLu;
  14. import com.steerinfo.route.util.DataConversionTool;
  15. import com.steerinfo.route.util.HTTPRequestUtils;
  16. import com.steerinfo.route.vo.FullPathVisualizationTo.ViewVisualization;
  17. import com.steerinfo.route.vo.ResultWarn;
  18. import com.steerinfo.route.vo.resultJson.SearchPoint;
  19. import io.swagger.annotations.Api;
  20. import io.swagger.annotations.ApiImplicitParam;
  21. import io.swagger.annotations.ApiImplicitParams;
  22. import io.swagger.annotations.ApiOperation;
  23. import org.springframework.beans.factory.annotation.Autowired;
  24. import org.springframework.beans.factory.annotation.Value;
  25. import org.springframework.data.redis.core.RedisTemplate;
  26. import org.springframework.http.MediaType;
  27. import org.springframework.web.bind.annotation.*;
  28. import org.springframework.web.multipart.MultipartFile;
  29. import org.springframework.web.multipart.MultipartRequest;
  30. import java.math.BigDecimal;
  31. import java.net.URLEncoder;
  32. import java.text.SimpleDateFormat;
  33. import java.util.*;
  34. import java.util.concurrent.CompletableFuture;
  35. import java.util.concurrent.TimeUnit;
  36. @Api("厂外运输接口")
  37. @RestController
  38. @RequestMapping("/${api.version}/pathDisplay")
  39. public class OffSiteTransportationController extends BaseRESTfulController {
  40. @Autowired
  41. private ITmstruckLeaveFactoryResultService tmstruckLeaveFactoryResultService;
  42. @Autowired
  43. private RouteServiceImpl routeService;
  44. @Autowired
  45. ColumnDataUtil columnDataUtil;
  46. @Autowired
  47. ImageFileUtils imageFileUtils;
  48. @Autowired
  49. private ZhongJiaoXingLu zhongJiaoXingLu;
  50. @Value("${str.tengxun.key}")
  51. private String key;
  52. @Value("${redis.prefix.order}")
  53. private String prefixOrder;
  54. @Value("${redis.prefix.line}")
  55. private String prefixLine;
  56. @Value("${redis.prefix.suffix}")
  57. private String suffix;
  58. @Autowired
  59. private RedisTemplate redisTemplate;
  60. @Autowired
  61. OffSiteTransportationServiceImpl offSiteTransportationService;
  62. @ApiOperation("保存路径")
  63. @PostMapping("/savePath")
  64. public CompletableFuture<String> savePath() throws Exception {
  65. Map<String, Object> parem=tmstruckLeaveFactoryResultService.getTruckFactoryResult("WYSDD2022040600045906");
  66. parem.put("turnOf","0");
  67. return routeService.createTotalResult(parem);
  68. //运输订单号:orderNumber、车牌号:capacityNumber、出厂时间:resultOutGateTime、预警开关:turnOf、发货地址:shipperName、收货地址:receiveAddress
  69. //初始化请求参数
  70. // HashMap<String,Object> mapValue=new HashMap<>();
  71. // mapValue.put("orderNumber","WYSDD2021091000000001");
  72. // mapValue.put("capacityNumber","豫SB6238");
  73. // mapValue.put("resultOutGateTime","2021-11-17 14:20:19");
  74. // mapValue.put("turnOf","0");
  75. // mapValue.put("shipperName","四川达州钢铁集团有限");
  76. // mapValue.put("receiveAddress","长沙市");
  77. // return routeService.createTotalResult(mapValue);
  78. }
  79. @ApiOperation("全路径查询")
  80. @PostMapping("/fullPath")
  81. public Object fullPath(String orderNumber) throws Exception {
  82. //运输订单号:orderNumber、车牌号:capacityNumber、出厂时间:resultOutGateTime、预警开关:turnOf、发货地址:shipperName、收货地址:receiveAddress
  83. //初始化请求参数
  84. HashMap<String,Object> mapValue=new HashMap<>();
  85. mapValue.put("orderNumber",orderNumber);
  86. return routeService.fullPathVisualization(mapValue);
  87. }
  88. @ApiOperation("查询在途运输")
  89. @ApiImplicitParams({
  90. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  91. @ApiImplicitParam(name = "apiId", value = "动态表头", required = false, dataType = "Integer"),
  92. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  93. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer")
  94. })
  95. @PostMapping("/getInTransitTransportation")
  96. public RESTfulResult getInTransitTransportation(@RequestBody Map<String,Object> mapValue,
  97. @RequestParam(required = true,defaultValue = "468",name = "apiId")Integer apiId,
  98. @RequestParam(required = false,defaultValue = "1",name = "pageNum")Integer pageNum,
  99. @RequestParam(required = false,defaultValue = "20",name = "pageSize")Integer pageSize
  100. )
  101. {
  102. if(mapValue.containsKey("startTime")&&mapValue.containsKey("endTime")){
  103. Date startDate=new Date(Long.parseLong(mapValue.get("startTime").toString())) ;
  104. Date endDate=new Date(Long.parseLong(mapValue.get("endTime").toString())) ;
  105. Calendar ca = Calendar.getInstance();
  106. ca.setTime(endDate);
  107. ca.add(Calendar.DATE,1);
  108. SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
  109. String startTime1=simpleDateFormat.format(startDate);
  110. String endTime1=simpleDateFormat.format(ca.getTime());
  111. mapValue.replace("startTime",startTime1);
  112. mapValue.replace("endTime",endTime1);
  113. }else {
  114. Date startDate=new Date() ;
  115. Date endDate=new Date() ;
  116. Calendar ca = Calendar.getInstance();
  117. ca.setTime(endDate);
  118. ca.add(Calendar.DATE,1);
  119. SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
  120. String startTime1=simpleDateFormat.format(startDate);
  121. String endTime1=simpleDateFormat.format(ca.getTime());
  122. mapValue.put("startTime",startTime1);
  123. mapValue.put("endTime",endTime1);
  124. }
  125. List<Map<String,Object>> filter= offSiteTransportationService.getInTransitTransportation(mapValue);
  126. PageHelper.startPage(pageNum, pageSize);
  127. List<Map<String,Object>> list= offSiteTransportationService.getInTransitTransportation(mapValue);
  128. PageListAdd pageList = columnDataUtil.tableColumnData(apiId, filter,list);
  129. return success(pageList);
  130. }
  131. @ApiOperation("有异常")
  132. @ApiImplicitParams({
  133. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  134. @ApiImplicitParam(name = "apiId", value = "动态表头", required = false, dataType = "Integer"),
  135. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  136. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer")
  137. })
  138. @PostMapping("/getHaveAbnormalTruckOrderInfo")
  139. public RESTfulResult getHaveAbnormalTruckOrderInfo(@RequestBody Map<String,Object> mapValue,
  140. @RequestParam(required = true,defaultValue = "468",name = "apiId")Integer apiId,
  141. @RequestParam(required = false,defaultValue = "1",name = "pageNum")Integer pageNum,
  142. @RequestParam(required = false,defaultValue = "20",name = "pageSize")Integer pageSize
  143. )
  144. {
  145. if(mapValue.containsKey("startTime")&&mapValue.containsKey("endTime")){
  146. Date startDate=new Date(Long.parseLong(mapValue.get("startTime").toString())) ;
  147. Date endDate=new Date(Long.parseLong(mapValue.get("endTime").toString())) ;
  148. Calendar ca = Calendar.getInstance();
  149. ca.setTime(endDate);
  150. ca.add(Calendar.DATE,1);
  151. SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
  152. String startTime1=simpleDateFormat.format(startDate);
  153. String endTime1=simpleDateFormat.format(ca.getTime());
  154. mapValue.replace("startTime",startTime1);
  155. mapValue.replace("endTime",endTime1);
  156. }else {
  157. Date startDate=new Date() ;
  158. Date endDate=new Date() ;
  159. Calendar ca = Calendar.getInstance();
  160. ca.setTime(endDate);
  161. ca.add(Calendar.DATE,1);
  162. SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
  163. String startTime1=simpleDateFormat.format(startDate);
  164. String endTime1=simpleDateFormat.format(ca.getTime());
  165. mapValue.put("startTime",startTime1);
  166. mapValue.put("endTime",endTime1);
  167. }
  168. List<Map<String,Object>> filter= offSiteTransportationService.getHaveAbnormalTruckOrderInfo(mapValue);
  169. PageHelper.startPage(pageNum, pageSize);
  170. List<Map<String,Object>> list= offSiteTransportationService.getHaveAbnormalTruckOrderInfo(mapValue);
  171. PageListAdd pageList = columnDataUtil.tableColumnData(apiId, filter,list);
  172. return success(pageList);
  173. }
  174. @ApiOperation("查询在途运输")
  175. @ApiImplicitParams({
  176. @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
  177. @ApiImplicitParam(name = "apiId", value = "动态表头", required = false, dataType = "Integer"),
  178. @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
  179. @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer")
  180. })
  181. @PostMapping("/getFinishTruckOrderInfo")
  182. public RESTfulResult getFinishTruckOrderInfo(@RequestBody Map<String,Object> mapValue,
  183. @RequestParam(required = true,defaultValue = "468",name = "apiId")Integer apiId,
  184. @RequestParam(required = false,defaultValue = "1",name = "pageNum")Integer pageNum,
  185. @RequestParam(required = false,defaultValue = "20",name = "pageSize")Integer pageSize
  186. )
  187. {
  188. if(mapValue.containsKey("startTime")&&mapValue.containsKey("endTime")){
  189. Date startDate=new Date(Long.parseLong(mapValue.get("startTime").toString())) ;
  190. Date endDate=new Date(Long.parseLong(mapValue.get("endTime").toString())) ;
  191. Calendar ca = Calendar.getInstance();
  192. ca.setTime(endDate);
  193. ca.add(Calendar.DATE,1);
  194. SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
  195. String startTime1=simpleDateFormat.format(startDate);
  196. String endTime1=simpleDateFormat.format(ca.getTime());
  197. mapValue.replace("startTime",startTime1);
  198. mapValue.replace("endTime",endTime1);
  199. }else {
  200. Date startDate=new Date() ;
  201. Date endDate=new Date() ;
  202. Calendar ca = Calendar.getInstance();
  203. ca.setTime(endDate);
  204. ca.add(Calendar.DATE,1);
  205. SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
  206. String startTime1=simpleDateFormat.format(startDate);
  207. String endTime1=simpleDateFormat.format(ca.getTime());
  208. mapValue.put("startTime",startTime1);
  209. mapValue.put("endTime",endTime1);
  210. }
  211. //已经完成
  212. mapValue.put("orderStatus",2);
  213. List<Map<String,Object>> filter= offSiteTransportationService.getInTransitTransportation(mapValue);
  214. PageHelper.startPage(pageNum, pageSize);
  215. List<Map<String,Object>> list= offSiteTransportationService.getInTransitTransportation(mapValue);
  216. PageListAdd pageList = columnDataUtil.tableColumnData(apiId, filter,list);
  217. return success(pageList);
  218. }
  219. @PostMapping(value = "/addTmstruckReceiptResult" )
  220. public synchronized RESTfulResult addTmstruckReceiptResult(@RequestBody Map<String,Object> value , Integer num, String orderNumber, String resultArrivalAddress, Integer imgcount3, Integer imgcount4) throws Exception {
  221. Map<String,Object> map = new HashMap<String,Object>();
  222. map.put("orderNumber",orderNumber);
  223. map.put("resultArrivalAddress",resultArrivalAddress);
  224. Integer orderStatus = offSiteTransportationService.getOrderStatus(map);
  225. //判断是否已经结束
  226. if (orderStatus!=null&&orderStatus==2){
  227. return failed(-3);
  228. }
  229. map.putAll(value);
  230. //添加入库实绩
  231. Integer resTfulResult = offSiteTransportationService.addTmstruckReceiptResult(map);
  232. if (!resTfulResult.equals("4")){
  233. //保存路线
  234. String redisJson = (String) redisTemplate.opsForValue().get(prefixOrder+":"+orderNumber);
  235. HashMap mapValue = JSON.parseObject(redisJson, HashMap.class);
  236. String json = zhongJiaoXingLu.visualRoute(mapValue);
  237. ViewVisualization to=null;
  238. if (json!=null){
  239. //设置60天后过期
  240. Calendar calendar=Calendar.getInstance();
  241. long agoTime= calendar.getTime().getTime();
  242. calendar.add(Calendar.MONTH,2);
  243. long lateTime= calendar.getTime().getTime();
  244. long saveTime=(lateTime-agoTime)/1000;
  245. redisTemplate.opsForValue().set(prefixLine+":"+orderNumber, json, saveTime, TimeUnit.SECONDS);
  246. //删除订单
  247. redisTemplate.delete(prefixOrder+":"+orderNumber);
  248. redisTemplate.delete(prefixOrder+":"+orderNumber+suffix);
  249. //添加运输距离
  250. to= (ViewVisualization) DataConversionTool.jsonToBean(json,ViewVisualization.class);
  251. }else {
  252. HashMap<String,Object> hashMap=new HashMap();
  253. hashMap.put("orderNumber",orderNumber);
  254. Map<String,Object> resultMap= offSiteTransportationService.getStartAndEndCapacityNumber(hashMap);
  255. if (resultMap!=null){
  256. json= getPathJSON(resultMap.get("capacityNumber").toString(),resultMap.get("resultOutGateTime").toString());
  257. if (json!=null&&!json.equals("")){
  258. to= (ViewVisualization) DataConversionTool.jsonToBean(json,ViewVisualization.class);
  259. }
  260. }
  261. }
  262. //设置运输距离,并且结束订单
  263. if (to!=null&&to.getResult()!=null&&to.getResult().getRunDistance()!=null){
  264. Map<String,Object> ordermap=new HashMap<>();
  265. ordermap.put("orderNumber",orderNumber);
  266. ordermap.put("orderMileage",to.getResult().getRunDistance()==null?"1":to.getResult().getRunDistance());
  267. offSiteTransportationService.insertOrderMileage(ordermap);
  268. }else {
  269. if (to!=null&&to.getStatus()==1006){
  270. Map<String,Object> ordermap=new HashMap<>();
  271. ordermap.put("orderNumber",orderNumber);
  272. ordermap.put("orderMileage","-1");
  273. offSiteTransportationService.insertOrderMileage(ordermap);
  274. }else if (to!=null&&to.getStatus()==1001){
  275. Map<String,Object> ordermap=new HashMap<>();
  276. ordermap.put("orderNumber",orderNumber);
  277. ordermap.put("orderMileage","1");
  278. offSiteTransportationService.insertOrderMileage(ordermap);
  279. } else {
  280. Map<String,Object> ordermap=new HashMap<>();
  281. ordermap.put("orderNumber",orderNumber);
  282. ordermap.put("orderMileage","-1");
  283. offSiteTransportationService.insertOrderMileage(ordermap);
  284. }
  285. }
  286. //关闭运输订单
  287. offSiteTransportationService.orderClose(orderNumber);
  288. }
  289. return success(1);
  290. }
  291. //如果内容丢失重新获得
  292. public String getPathJSON(String capacityNumber,String resultOutGateTime) throws Exception {
  293. //入网验证
  294. String netValidationResult = zhongJiaoXingLu.netValidation(capacityNumber);
  295. Map netValidationMap = (Map) JSONObject.parse(netValidationResult);
  296. if (Integer.parseInt(netValidationMap.get("status").toString())==1001&&netValidationMap.get("result").toString().equals("yes")){
  297. String searchPointJson = HTTPRequestUtils.sendGet("https://apis.map.qq.com/ws/geocoder/v1/", "address="+ URLEncoder.encode("四川省达州钢铁集团有限责任公司","utf-8")+"&key=WDTBZ-A5VKJ-UDLFI-KYJY6-WTP2S-A6B4Y");
  298. SearchPoint searchPoint= (SearchPoint) DataConversionTool.jsonToBean(searchPointJson, SearchPoint.class);
  299. String searchPointJson2 = HTTPRequestUtils.sendGet("https://apis.map.qq.com/ws/geocoder/v1/", "address="+URLEncoder.encode("四川省达州钢铁集团有限责任公司","utf-8")+"&key=WDTBZ-A5VKJ-UDLFI-KYJY6-WTP2S-A6B4Y");
  300. SearchPoint searchPoint2= (SearchPoint) DataConversionTool.jsonToBean(searchPointJson2, SearchPoint.class);
  301. //运单生成之后保存
  302. HashMap<String,String> redisMap=new HashMap<>();
  303. String startLon=searchPoint.getResult().getLocation().getLng().toString().length()>9?searchPoint.getResult().getLocation().getLng().toString().substring(0,9):searchPoint.getResult().getLocation().getLng().toString();
  304. String startLat=searchPoint.getResult().getLocation().getLat().toString().length()>9?searchPoint.getResult().getLocation().getLat().toString().substring(0,8):searchPoint.getResult().getLocation().getLat().toString();
  305. redisMap.put("startLonlat", startLon+","+startLat);
  306. String endLon= searchPoint2.getResult().getLocation().getLng().toString().length()>9?searchPoint2.getResult().getLocation().getLng().toString().substring(0,9):searchPoint2.getResult().getLocation().getLng().toString();
  307. String endLat= searchPoint2.getResult().getLocation().getLat().toString().length()>9?searchPoint2.getResult().getLocation().getLat().toString().substring(0,8):searchPoint2.getResult().getLocation().getLat().toString();
  308. redisMap.put("endLonlat",endLon+","+endLat);
  309. redisMap.put("vclN", capacityNumber);
  310. redisMap.put("vco","2");
  311. SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:ss:mm");
  312. String qryBtm=resultOutGateTime;
  313. //获得23小时、45分钟之后的时间
  314. Date parse = simpleDateFormat.parse(qryBtm);
  315. //时间添加
  316. Calendar calendar = Calendar.getInstance();
  317. calendar.setTime(parse);
  318. calendar.add(Calendar.HOUR_OF_DAY, 23);
  319. calendar.add(Calendar.SECOND, 45);
  320. redisMap.put("qryBtm", qryBtm);
  321. redisMap.put("qryEtm",simpleDateFormat.format(calendar.getTime()));
  322. System.out.println(redisMap);
  323. String json = zhongJiaoXingLu.visualRoute(redisMap);
  324. System.out.println(json.length()>100?json.substring(0,100):json);
  325. return json;
  326. }
  327. return null;
  328. }
  329. public String removeData(){
  330. offSiteTransportationService.removeDate();
  331. return "success";
  332. }
  333. /**查询是否开启运输报警状态
  334. * warnSwitch
  335. * @param
  336. * @return
  337. */
  338. @ApiOperation(value="查询是否开启运输报警状态")
  339. @ApiImplicitParams({
  340. })
  341. @PostMapping(value = "/selectWarnSwitch")
  342. public RESTfulResult selectWarnSwitch() {
  343. Map<String,Object> warnSwitch = offSiteTransportationService.selectWarnSwitch();
  344. return success(warnSwitch);
  345. }
  346. /**是否开启运输报警状态
  347. * warnSwitchaddTmstruckTotalResult
  348. * @param
  349. * @returninTransitOrderMileage
  350. */
  351. @ApiOperation(value="是否开启运输报警状态")
  352. @ApiImplicitParams({
  353. @ApiImplicitParam(name = "warnSwitch", value = "运输报警状态", required = false, dataType = "String")
  354. })
  355. @PostMapping(value = "/inTransitWarn")
  356. public RESTfulResult inTransitWarn(@RequestParam String warnSwitch,@RequestParam String radio) {
  357. int i = offSiteTransportationService.updateWarnSwitch(warnSwitch,radio);
  358. return success(i);
  359. }
  360. @PostMapping("/abnormalLineWarn")
  361. public String abnormalLineWarn(@RequestParam(value = "data") String data) throws Exception {
  362. System.out.println("abnormalLineWarn");
  363. System.out.println(data);
  364. ResultWarn resultWarn= (ResultWarn) DataConversionTool.jsonToBean(data, ResultWarn.class);
  365. Map<String, Object> map= DataConversionTool.objectToMap(resultWarn);
  366. int i= offSiteTransportationService.addTransportationAlarm(map);
  367. return "success";
  368. }
  369. @PostMapping("/parkWarn")
  370. public String parkWarn(@RequestParam(value = "data",required = false) String data) throws Exception {
  371. System.out.println("parkWarn");
  372. System.out.println(data);
  373. ResultWarn resultWarn= (ResultWarn) DataConversionTool.jsonToBean(data, ResultWarn.class);
  374. Map<String, Object> map= DataConversionTool.objectToMap(resultWarn);
  375. int i=offSiteTransportationService.addTransportationAlarm(map);
  376. return "success";
  377. }
  378. @PostMapping("/offLineWarn")
  379. public String offLineWarn(@RequestParam(value = "data") String data) throws Exception {
  380. System.out.println("offLineWarn");
  381. System.out.println(data);
  382. ResultWarn resultWarn= (ResultWarn) DataConversionTool.jsonToBean(data, ResultWarn.class);
  383. Map<String, Object> map= DataConversionTool.objectToMap(resultWarn);
  384. int i=offSiteTransportationService.addTransportationAlarm(map);
  385. return "success";
  386. }
  387. @ApiOperation(value="展示运输在途异常信息")
  388. @ApiImplicitParams({
  389. @ApiImplicitParam(name = "apiId(472)", value = "表头", required = false, dataType = "Interger")
  390. })
  391. @PostMapping("/getTransportAbnormalInfo")
  392. public RESTfulResult getTransportAbnormalInfo(@RequestBody(required=false) Map<String,Object> mapValue,
  393. @RequestParam(name = "apiId",defaultValue = "472") Integer apiId,
  394. @RequestParam(name = "pageNum") Integer pageNum,
  395. @RequestParam(name = "pageSize") Integer pageSize){
  396. List<Map<String, Object>> transportAbnormalInfo = offSiteTransportationService.getTransportAbnormalInfo(mapValue);
  397. PageHelper.startPage(pageNum,pageSize);
  398. List<Map<String, Object>> transportAbnormalInfo1 = offSiteTransportationService.getTransportAbnormalInfo(mapValue);
  399. PageListAdd pageList = columnDataUtil.tableColumnData(apiId,transportAbnormalInfo,transportAbnormalInfo1);
  400. return success(pageList);
  401. }
  402. }