| | |
| | | import com.ruoyi.jianguan.model.SupEquipChargeStatus; |
| | | import com.ruoyi.jianguan.util.ChuanYiChongSuperviseUtil; |
| | | import com.ruoyi.jianguan.util.TCECSuperviseUtil; |
| | | import com.ruoyi.order.api.feignClient.ChargingOrderClient; |
| | | import com.ruoyi.order.api.model.TChargingOrder; |
| | | import com.ruoyi.other.api.domain.Operator; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | |
| | | private ChargingGunClient chargingGunClient; |
| | | @Resource |
| | | private ChuanYiChongSuperviseUtil chuanYiChongSuperviseUtil; |
| | | |
| | | @Resource |
| | | private ChargingOrderClient chargingOrderClient; |
| | | |
| | | |
| | | /** |
| | | * 推送充电订单信息 |
| | |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 查询订单状态 |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/getOrderById") |
| | | public R pushOrderStatus(@RequestParam Long orderId){ |
| | | log.info("川易充通过id查询订单:{}", orderId); |
| | | R<TChargingOrder> tChargingOrderR = chargingOrderClient.orderDetail(orderId); |
| | | return R.ok(tChargingOrderR.getData()); |
| | | } |
| | | } |