| | |
| | | package com.ruoyi.integration; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.ruoyi.chargingPile.api.feignClient.SiteClient; |
| | | import com.ruoyi.integration.api.model.UploadRealTimeMonitoringData; |
| | | import com.ruoyi.integration.barrierGate.model.CloudParkingOrder; |
| | | import com.ruoyi.integration.barrierGate.server.ParkingOrderService; |
| | |
| | | |
| | | @Resource |
| | | private ParkingOrderService parkingOrderService; |
| | | @Resource |
| | | private SiteClient siteClient; |
| | | // @Test |
| | | // public void test(){ |
| | | // String json = "{\"appkey\":\"842ae0c027e64b3590af9eea6\",\"enterChannel\":\"001\",\"enterChannelName\":\"进口\",\"enterDateTime\":\"2024-11-01T11:25:15.677Z\",\"id\":\"17B51DA0983C11EFA99CA979A8A8386B\",\"kind\":\"临时卡\",\"name\":\"临时识别\",\"plate\":\"川JD34056\",\"plateColor\":\"绿色\",\"sign\":\"29A902820C2657C51FBE90235152534F\"}"; |
| | | // CloudParkingOrder order = JSON.parseObject(json, CloudParkingOrder.class); |
| | | // parkingOrderService.cloudParkingInOrder(order); |
| | | // } |
| | | @Test |
| | | public void test(){ |
| | | String json = "{\"appkey\":\"842ae0c027e64b3590af9eea6\",\"enterChannel\":\"001\",\"enterChannelName\":\"进口\",\"enterDateTime\":\"2024-11-01T11:25:15.677Z\",\"id\":\"17B51DA0983C11EFA99CA979A8A8386B\",\"kind\":\"临时卡\",\"name\":\"临时识别\",\"plate\":\"川JD34056\",\"plateColor\":\"绿色\",\"sign\":\"29A902820C2657C51FBE90235152534F\"}"; |
| | | CloudParkingOrder order = JSON.parseObject(json, CloudParkingOrder.class); |
| | | parkingOrderService.cloudParkingInOrder(order); |
| | | public void test1(){ |
| | | |
| | | } |
| | | } |