Compare commits
2 Commits
173b5cace9
...
c8b12d2a17
| Author | SHA1 | Date |
|---|---|---|
|
|
c8b12d2a17 | |
|
|
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