|
@@ -16,6 +16,7 @@ import com.aidex.common.plush.domain.vo.SysShipExtendListResVO;
|
|
import com.aidex.common.plush.domain.vo.SysShipExtendListVO;
|
|
import com.aidex.common.plush.domain.vo.SysShipExtendListVO;
|
|
import com.aidex.common.plush.domain.vo.SysShipExtendVO;
|
|
import com.aidex.common.plush.domain.vo.SysShipExtendVO;
|
|
import com.aidex.common.plush.domain.vo.SysShipResVO;
|
|
import com.aidex.common.plush.domain.vo.SysShipResVO;
|
|
|
|
+import com.aidex.common.utils.DateUtils;
|
|
import com.aidex.common.utils.json.JSONObject;
|
|
import com.aidex.common.utils.json.JSONObject;
|
|
import com.aidex.common.utils.uuid.IdUtils;
|
|
import com.aidex.common.utils.uuid.IdUtils;
|
|
import com.aidex.quartz.task.RefreshAccessTokenTask;
|
|
import com.aidex.quartz.task.RefreshAccessTokenTask;
|
|
@@ -253,15 +254,15 @@ public class AppController {
|
|
if (null != extend) {
|
|
if (null != extend) {
|
|
logger.info("webhook消息推送,消息----extend-count--{}", extend.containsKey("count"));
|
|
logger.info("webhook消息推送,消息----extend-count--{}", extend.containsKey("count"));
|
|
if (extend.containsKey("count")) {
|
|
if (extend.containsKey("count")) {
|
|
- ArrayList<Integer> alarm_count = (ArrayList<Integer>) extend.get("count");
|
|
|
|
|
|
+ ArrayList<Object> alarm_count = (ArrayList<Object>) extend.get("count");
|
|
logger.info("webhook消息推送,消息----extend-alarm_count--{}", alarm_count);
|
|
logger.info("webhook消息推送,消息----extend-alarm_count--{}", alarm_count);
|
|
if (alarm_count.size() > 0){
|
|
if (alarm_count.size() > 0){
|
|
logger.info("webhook消息推送,告警人数----人数---{}", alarm_count.get(0));
|
|
logger.info("webhook消息推送,告警人数----人数---{}", alarm_count.get(0));
|
|
logger.info("webhook消息推送,请求头----时间戳---{}", message.getTimestamp());
|
|
logger.info("webhook消息推送,请求头----时间戳---{}", message.getTimestamp());
|
|
logger.info("webhook消息推送,请求头----设备号---{}", message.getDevice_sn());
|
|
logger.info("webhook消息推送,请求头----设备号---{}", message.getDevice_sn());
|
|
- /*String dateTime = DateUtil.s(DateUtil.timeToSecond(message.getTimestamp()));
|
|
|
|
- logger.info("webhook消息推送,请求头----时间戳转换---{}", dateTime);*/
|
|
|
|
- int row = iAppService.insertCameraAlarm(new SysCameraAlarm(IdUtils.fastSimpleUUID(), DateUtil.date(), message.getDevice_sn(), Integer.valueOf(alarm_count.get(0))));
|
|
|
|
|
|
+ DateTime date = DateUtil.date(Long.valueOf(message.getTimestamp()) * 1000);
|
|
|
|
+ logger.info("webhook消息推送,请求头----时间戳转换---{}", date);
|
|
|
|
+ int row = iAppService.insertCameraAlarm(new SysCameraAlarm(IdUtils.fastSimpleUUID(), date, message.getDevice_sn(), String.valueOf(alarm_count.get(0))));
|
|
return R.status(row);
|
|
return R.status(row);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -270,12 +271,12 @@ public class AppController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- /*@GetMapping("/test")
|
|
|
|
|
|
+ @GetMapping("/test")
|
|
@ApiOperation(value = "获取信息类型", notes = "获取信息类型", produces = "application/json")
|
|
@ApiOperation(value = "获取信息类型", notes = "获取信息类型", produces = "application/json")
|
|
public R test()
|
|
public R test()
|
|
{
|
|
{
|
|
sysShipService.getShipSurplusSeat("261836442bbb48659d40f716feaa470d", 300);
|
|
sysShipService.getShipSurplusSeat("261836442bbb48659d40f716feaa470d", 300);
|
|
return R.status(true);
|
|
return R.status(true);
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|