微调
This commit is contained in:
@@ -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 先看是否存在软件信息,删除 然后在录入
|
||||
|
||||
Reference in New Issue
Block a user