技术监督bug修改

This commit is contained in:
2023-07-28 09:07:53 +08:00
parent 38a1a1d436
commit fbb3e2c804

View File

@@ -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条数据");