| | |
| | | |
| | | |
| | | import com.java110.common.charge.IChargeCore; |
| | | import com.java110.common.smartMeter.ISmartMeterFactoryAdapt; |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import com.java110.dto.chargeMachine.ChargeMachineDto; |
| | | import com.java110.dto.chargeMachineOrder.NotifyChargeOrderDto; |
| | | import com.java110.dto.meterMachineFactory.MeterMachineFactoryDto; |
| | | import com.java110.dto.meterWater.NotifyMeterWaterOrderDto; |
| | | import com.java110.dto.chargeMachine.NotifyChargeOrderDto; |
| | | import com.java110.intf.common.*; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.factory.ApplicationContextFactory; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用 |
| | |
| | | private static final Logger logger = LoggerFactory.getLogger(NotifyChargeV1InnerServiceSMOImpl.class); |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private IChargeCore chargeCoreImpl; |
| | | |
| | | |
| | | @Override |
| | | public ResponseEntity<String> finishCharge(@RequestBody NotifyChargeOrderDto notifyChargeOrderDto) { |
| | | public ResultVo finishCharge(@RequestBody NotifyChargeOrderDto notifyChargeOrderDto) { |
| | | |
| | | return chargeCoreImpl.finishCharge(notifyChargeOrderDto); |
| | | |
| | | ResultVo resultVo = null; |
| | | try { |
| | | resultVo = chargeCoreImpl.finishCharge(notifyChargeOrderDto); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | logger.error("停止充电失败", e); |
| | | throw e; |
| | | } |
| | | return resultVo; |
| | | } |
| | | |
| | | @Override |
| | | public ResponseEntity<String> heartbeat(@RequestBody NotifyChargeOrderDto notifyChargeOrderDto) { |
| | | return chargeCoreImpl.heartbeat(notifyChargeOrderDto); |
| | | public ResultVo workHeartbeat(@RequestBody NotifyChargeOrderDto notifyChargeOrderDto) { |
| | | return chargeCoreImpl.workHeartbeat(notifyChargeOrderDto); |
| | | } |
| | | |
| | | @Override |
| | | public ResponseEntity<String> chargeHeartBeat(@RequestBody NotifyChargeOrderDto notifyChargeOrderDto) { |
| | | return chargeCoreImpl.chargeHeartBeat(notifyChargeOrderDto); |
| | | } |
| | | |
| | | } |