|
@@ -3,9 +3,7 @@ package com.xy.job;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.xxl.job.core.biz.model.ReturnT;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
-import com.xy.annotate.RestMappingController;
|
|
|
import com.xy.collections.list.JArrayList;
|
|
|
-import com.xy.collections.list.JList;
|
|
|
import com.xy.collections.map.JMap;
|
|
|
import com.xy.dto.MercAccountDto;
|
|
|
import com.xy.entity.DeviceAlgorithmCharging;
|
|
@@ -17,7 +15,6 @@ import com.xy.utils.Emptys;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
@@ -29,7 +26,6 @@ import java.util.List;
|
|
|
@Slf4j
|
|
|
@Component
|
|
|
@AllArgsConstructor
|
|
|
-@RestMappingController("test")
|
|
|
public class DeviceAlgorithmChargingJob {
|
|
|
|
|
|
private MercAccountService mercAccountService;
|
|
@@ -43,7 +39,6 @@ public class DeviceAlgorithmChargingJob {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- @GetMapping("test")
|
|
|
@XxlJob("deviceAlgorithmChargingHalt")
|
|
|
public ReturnT<String> deviceAlgorithmChargingHalt() {
|
|
|
//查询余额<=0商户
|
|
@@ -85,11 +80,10 @@ public class DeviceAlgorithmChargingJob {
|
|
|
if (deviceAlgorithmChargingsJMaps.containsKey(deviceId)) {
|
|
|
return;
|
|
|
}
|
|
|
- //冻结and停运设备
|
|
|
+ //冻结设备
|
|
|
DeviceInfo updateDeviceInfo = new DeviceInfo()
|
|
|
.setDeviceId(deviceId)
|
|
|
.setFreezeStatus(2)
|
|
|
- .setBusyState(2)
|
|
|
.setUpdateTime(now);
|
|
|
updateDeviceInfos.add(updateDeviceInfo);
|
|
|
});
|