|
|
@@ -13,6 +13,7 @@ import com.zhongshu.card.server.core.domain.school.DeviceBind;
|
|
|
import com.zhongshu.card.server.core.service.base.CommonService;
|
|
|
import com.zhongshu.card.server.core.service.org.GateWayInfoServiceImpl;
|
|
|
import com.zhongshu.card.server.core.service.user.OperationLogsService;
|
|
|
+import com.zhongshu.card.server.core.util.DateUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -82,6 +83,7 @@ public class DeviceSyncFromIotService {
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
map.put("lastOnlineTime", param.getLastOnlineTime());
|
|
|
map.put("onLineState", param.getOnLineState());
|
|
|
+ map.put("lastOnlineTimeStr", DateUtils.paresTime(param.getLastOnlineTime(), DateUtils.FORMAT_LONG));
|
|
|
commonService.updateData(where, map, DeviceInfo.class.getSimpleName());
|
|
|
commonService.updateData(where, map, DeviceBind.class.getSimpleName());
|
|
|
log.info("syncDeviceOnLineState");
|