This commit is contained in:
2023-10-13 11:27:57 +08:00
parent 8b77c4fe8c
commit 0fe12a64f5

View File

@@ -1,6 +1,7 @@
package com.njcn.access.handler;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.IdUtil;
import com.alibaba.csp.sentinel.util.StringUtil;
import com.alibaba.excel.util.CollectionUtils;
import com.alibaba.fastjson.JSON;
@@ -362,6 +363,8 @@ public class MqttMessageHandler {
CsSoftInfoPO csSoftInfoPo = new CsSoftInfoPO();
BeanUtils.copyProperties(softInfo,csSoftInfoPo);
try {
String id = IdUtil.fastSimpleUUID();
csSoftInfoPo.setId(id);
csSoftInfoPo.setAppDate(new SimpleDateFormat("yyyy-MM-dd").parse(softInfo.getAppDate()));
csSoftInfoService.save(csSoftInfoPo);
//更新设备软件id 先看是否存在软件信息,删除 然后在录入