Browse Source

#单位修改

zhongwei
yang_shj 1 year ago
parent
commit
3e3cbed3a5
  1. 8
      hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java

8
hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java

@ -1515,28 +1515,28 @@ public class RealTargetServiceImpl implements RealTargetService {
return; return;
} }
// 有功功率单位 // 有功功率单位
String power = unitMap.get(device.getId().toString().toUpperCase()+HomePageConstant.CONCAT_P); String power = unitMap.get(device.getEmCode().toUpperCase()+HomePageConstant.CONCAT_P);
if(StringUtil.isNotBlank(power)){ if(StringUtil.isNotBlank(power)){
realVo.setPowerUnit(power); realVo.setPowerUnit(power);
} else { } else {
realVo.setPowerUnit("kW"); realVo.setPowerUnit("kW");
} }
// 无功功率 // 无功功率
String reactivePowerUnit = unitMap.get(device.getId().toString().toUpperCase()+HomePageConstant.CONCAT_Q); String reactivePowerUnit = unitMap.get(device.getEmCode().toUpperCase()+HomePageConstant.CONCAT_Q);
if(StringUtil.isNotBlank(reactivePowerUnit)){ if(StringUtil.isNotBlank(reactivePowerUnit)){
realVo.setReactivePowerUnit(reactivePowerUnit); realVo.setReactivePowerUnit(reactivePowerUnit);
} else { } else {
realVo.setReactivePowerUnit("kVa r"); realVo.setReactivePowerUnit("kVa r");
} }
// 定子电压单位 // 定子电压单位
String voltage = unitMap.get(device.getId().toString().toUpperCase()+HomePageConstant.CONCAT_UAB); String voltage = unitMap.get(device.getEmCode().toUpperCase()+HomePageConstant.CONCAT_UAB);
if(StringUtil.isNotBlank(voltage)){ if(StringUtil.isNotBlank(voltage)){
realVo.setVoltageUnit(voltage); realVo.setVoltageUnit(voltage);
} else { } else {
realVo.setVoltageUnit("V"); realVo.setVoltageUnit("V");
} }
// 定子电流单位 // 定子电流单位
String current = unitMap.get(device.getId().toString().toUpperCase()+HomePageConstant.CONCAT_IA); String current = unitMap.get(device.getEmCode().toUpperCase()+HomePageConstant.CONCAT_IA);
if(StringUtil.isNotBlank(current)){ if(StringUtil.isNotBlank(current)){
realVo.setCurrentUnit(current); realVo.setCurrentUnit(current);
} else { } else {

Loading…
Cancel
Save