diff --git a/pqs-process/process-boot/src/main/java/com/njcn/process/service/impl/SupvPushGwServiceImpl.java b/pqs-process/process-boot/src/main/java/com/njcn/process/service/impl/SupvPushGwServiceImpl.java index aa392d6b6..aa83f1aa1 100644 --- a/pqs-process/process-boot/src/main/java/com/njcn/process/service/impl/SupvPushGwServiceImpl.java +++ b/pqs-process/process-boot/src/main/java/com/njcn/process/service/impl/SupvPushGwServiceImpl.java @@ -1,6 +1,7 @@ package com.njcn.process.service.impl; import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONArray; @@ -162,8 +163,8 @@ public class SupvPushGwServiceImpl implements SupvPushGwService { } //监督对象类型 - if(mapSubvObjType.containsKey(supvPlan.getSupvType())) { - supvPlan.setSupvType(String.format("%02d", mapSubvObjType.get(supvPlan.getSupvType()).getAlgoDescribe())); + if(mapSubvObjType.containsKey(supvPlan.getSupvObjType())) { + supvPlan.setSupvType(String.format("%02d", mapSubvObjType.get(supvPlan.getSupvObjType()).getAlgoDescribe())); } //电站等级 @@ -188,6 +189,8 @@ public class SupvPushGwServiceImpl implements SupvPushGwService { pvTerminalTreeVO = mapCode.get(supvPlan.getPlanOrgId()); supvPlan.setPlanOrgName(pvTerminalTreeVO.getName()); } + + supvPlan.setSupvObjId(IdUtil.simpleUUID()); } if(supvPlanList.size()>100){ throw new BusinessException("一次最多上送100条数据");