双屏机-设备接口-设备时间下发
This commit is contained in:
parent
8e106fd5ca
commit
d6328902c9
|
|
@ -0,0 +1,19 @@
|
|||
package com.bonus.canteen.core.device.task;
|
||||
|
||||
import com.bonus.canteen.core.device.android.constant.DeviceMqMessage;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
@Component
|
||||
public class MqttTask {
|
||||
private static final Logger log = LoggerFactory.getLogger(MqttTask.class);
|
||||
|
||||
@XxlJob("timeCalibrationV4")
|
||||
public void timeCalibrationV4() {
|
||||
DeviceMqMessage.timeCalibrationV4(Instant.now().toEpochMilli());
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue