| | |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.common.charge.IChargeFactoryAdapt; |
| | | import com.java110.common.charge.factory.dingding.DingdingChargeUtils; |
| | | import com.java110.dto.chargeMachine.ChargeMachineDto; |
| | | import com.java110.dto.chargeMachineOrder.NotifyChargeOrderDto; |
| | | import com.java110.dto.chargeMachineOrder.NotifyChargePortDto; |
| | | import com.java110.dto.chargeMachinePort.ChargeMachinePortDto; |
| | | import com.java110.dto.charge.ChargeMachineDto; |
| | | import com.java110.dto.charge.NotifyChargeOrderDto; |
| | | import com.java110.dto.charge.NotifyChargePortDto; |
| | | import com.java110.dto.charge.ChargeMachinePortDto; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | /** |
| | | * 通用 充电接口类 |
| | | * |
| | | * 叮叮 充电桩 通知处理类名为 NotifyDingDingChargeController.java |
| | | * 叮叮 充电桩 通知处理类名为 NotifyCommonChargeController.java |
| | | */ |
| | | @Service("commonChargeMachineFactory") |
| | | public class CommonChargeMachineFactoryAdapt implements IChargeFactoryAdapt { |
| | |
| | | |
| | | return ports; |
| | | } |
| | | |
| | | @Override |
| | | public void queryChargeMachineState(ChargeMachineDto chargeMachineDto) { |
| | | chargeMachineDto.setState(ChargeMachineDto.STATE_ONLINE); |
| | | chargeMachineDto.setStateName("在线"); |
| | | } |
| | | |
| | | @Override |
| | | public void workHeartbeat(ChargeMachineDto chargeMachineDto, String bodyParam) { |
| | | |
| | | } |
| | | } |