| | |
| | | |
| | | |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.ruoyi.integration.api.model.*; |
| | | import com.ruoyi.integration.iotda.enums.ServiceIdMenu; |
| | | import com.ruoyi.integration.mongodb.model.*; |
| | | import com.ruoyi.integration.mongodb.service.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Autowired |
| | | private TimingSettingService timingSettingService; |
| | | @Autowired |
| | | private TimingSettingReplyService timingSettingReplyService; |
| | | @Autowired |
| | | private SetupBillingModelService setupBillingModelService; |
| | | @Autowired |
| | | private OpenOrCloseGroundLockService openOrCloseGroundLockService; |
| | |
| | | private PlatformRestartService platformRestartService; |
| | | @Autowired |
| | | private PlatformRemoteUpdateService platformRemoteUpdateService; |
| | | @Autowired |
| | | private MessageConvertUtil messageConvertUtil; |
| | | |
| | | /** |
| | | * 登录认证应答 |
| | |
| | | * @param endCharge 实体对象 |
| | | * @return |
| | | */ |
| | | public String endCharge(EndCharge endCharge){ |
| | | endChargeService.create(endCharge); |
| | | return getMessageJsonString(endCharge, ServiceIdMenu.END_CHARGE.getValue()); |
| | | } |
| | | // public String endCharge(EndCharge endCharge){ |
| | | // endChargeService.create(endCharge); |
| | | // return getMessageJsonString(endCharge, ServiceIdMenu.END_CHARGE.getValue()); |
| | | // } |
| | | |
| | | /** |
| | | * 运营平台确认启动充电 |
| | |
| | | * @param platformStartCharging 实体对象 |
| | | * @return |
| | | */ |
| | | public String platformConfirmationCharging(PlatformStartCharging platformStartCharging){ |
| | | public String platformStartCharging(PlatformStartCharging platformStartCharging){ |
| | | platformStartChargingService.create(platformStartCharging); |
| | | return getMessageJsonString(platformStartCharging, ServiceIdMenu.PLATFORM_START_CHARGING.getValue()); |
| | | } |
| | |
| | | timingSettingService.create(timingSetting); |
| | | return getMessageJsonString(timingSetting, ServiceIdMenu.TIMING_SETTING.getValue()); |
| | | } |
| | | /** |
| | | * 对时设置应答 |
| | | * @param timingSettingReply 实体对象 |
| | | * @return |
| | | */ |
| | | public String timingSettingReply(TimingSettingReply timingSettingReply){ |
| | | timingSettingReplyService.create(timingSettingReply); |
| | | return getMessageJsonString(timingSettingReply, ServiceIdMenu.TIMING_SETTING_REPLY.getValue()); |
| | | } |
| | | |
| | | /** |
| | | * 计费模型设置 |