| | |
| | | package com.ruoyi.jianguan.util; |
| | | |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.account.api.feignClient.AppUserClient; |
| | | import com.ruoyi.account.api.model.TAppUser; |
| | | import com.ruoyi.chargingPile.api.feignClient.ChargingGunClient; |
| | |
| | | import com.ruoyi.order.api.model.TChargingOrder; |
| | | import com.ruoyi.order.api.vo.TChargingOrderVo; |
| | | import com.ruoyi.other.api.domain.Operator; |
| | | import com.ruoyi.other.api.domain.TSystemConfiguration; |
| | | import com.ruoyi.other.api.feignClient.OtherClient; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | private ChargingOrderClient chargingOrderClient; |
| | | @Resource |
| | | private AppUserClient appUserClient; |
| | | |
| | | @Resource |
| | | private OtherClient otherClient; |
| | | |
| | | @Resource |
| | | private RedisTemplate redisTemplate; |
| | |
| | | } |
| | | |
| | | |
| | | @Scheduled(cron = "0 0 0 * * ?") |
| | | public void reset() { |
| | | String electricity = KsolarUtils.getElectricity(); |
| | | otherClient.reset(electricity); |
| | | |
| | | } |
| | | |
| | | |
| | | } |