diff --git a/Service/Plc/Handler/BatteryStatusReportedReqHandler.cs b/Service/Plc/Handler/BatteryStatusReportedReqHandler.cs index c044eca..2b7c3d4 100644 --- a/Service/Plc/Handler/BatteryStatusReportedReqHandler.cs +++ b/Service/Plc/Handler/BatteryStatusReportedReqHandler.cs @@ -18,6 +18,10 @@ namespace Service.Charger.Handler; public class BatteryStatusReportedReqHandler : SimpleChannelInboundHandler, IBaseHandler { private readonly BinInfoRepository _binInfoRepository; + public BatteryStatusReportedReqHandler(BinInfoRepository binInfoRepository) + { + _binInfoRepository = binInfoRepository; + } private static readonly ILog Log =LogManager.GetLogger(typeof(BatteryStatusReportedReqHandler)); public BinInfoRepository BinInfoRepository { get; set; } diff --git a/WebStarter/Controllers/PlcController.cs b/WebStarter/Controllers/PlcController.cs index 033b026..2afc115 100644 --- a/WebStarter/Controllers/PlcController.cs +++ b/WebStarter/Controllers/PlcController.cs @@ -53,11 +53,11 @@ public class PlcController : ControllerBase } return Result.Fail("充电机未连接"); } - ///// - ///// 发送电池充电状态 - ///// - ///// 充电机编号 - ///// 消息 + /// + /// 发送电池充电状态 + /// + /// 充电机编号 + /// 消息 //[HttpGet] //[Route("SendWhetherChargedReq")] //public Result SendWhetherChargedResq()