调整检测详情展示单位
This commit is contained in:
@@ -999,7 +999,7 @@ public class SocketDevResponseService {
|
|||||||
successComm.add(devData.getId());
|
successComm.add(devData.getId());
|
||||||
|
|
||||||
if (SocketManager.clockMap.containsKey(sourceIssue.getIndex())) {
|
if (SocketManager.clockMap.containsKey(sourceIssue.getIndex())) {
|
||||||
// SocketManager.clockMap.put(sourceIssue.getIndex(), 0L);
|
SocketManager.clockMap.put(sourceIssue.getIndex(), 0L);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (successComm.size() == FormalTestManager.monitorIdListComm.size()) {
|
if (successComm.size() == FormalTestManager.monitorIdListComm.size()) {
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ public class ResultServiceImpl implements IResultService {
|
|||||||
dtlType.setIndex(index);
|
dtlType.setIndex(index);
|
||||||
dtlType.setScriptType(scriptDtlIndexList.get(0).getScriptType());
|
dtlType.setScriptType(scriptDtlIndexList.get(0).getScriptType());
|
||||||
ratedScriptTypeName(scriptDtlIndexList, isValueType, dtlType, dictTree);
|
ratedScriptTypeName(scriptDtlIndexList, isValueType, dtlType, dictTree);
|
||||||
dtlType.setSourceDesc(ScriptDtlsDesc.getStringBuffer(scriptDtlIndexList, isValueType).toString());
|
dtlType.setSourceDesc(ScriptDtlsDesc.getStringBuffer(scriptDtlIndexList,false, isValueType).toString());
|
||||||
if (finalResultMap.containsKey(index)) {
|
if (finalResultMap.containsKey(index)) {
|
||||||
dtlType.setFly(conform(finalResultMap.get(index)));
|
dtlType.setFly(conform(finalResultMap.get(index)));
|
||||||
}
|
}
|
||||||
@@ -253,7 +253,7 @@ public class ResultServiceImpl implements IResultService {
|
|||||||
if ("Freq".equals(subKey)) {
|
if ("Freq".equals(subKey)) {
|
||||||
freqScriptTypeName(scriptDtlIndexList, dictTree, isValueType, dtlType);
|
freqScriptTypeName(scriptDtlIndexList, dictTree, isValueType, dtlType);
|
||||||
}
|
}
|
||||||
dtlType.setSourceDesc(ScriptDtlsDesc.getStringBuffer(scriptDtlIndexList, isValueType).toString());
|
dtlType.setSourceDesc(ScriptDtlsDesc.getStringBuffer(scriptDtlIndexList,false, isValueType).toString());
|
||||||
if (finalResultMap.containsKey(index)) {
|
if (finalResultMap.containsKey(index)) {
|
||||||
dtlType.setFly(conform(finalResultMap.get(index)));
|
dtlType.setFly(conform(finalResultMap.get(index)));
|
||||||
}
|
}
|
||||||
@@ -296,7 +296,7 @@ public class ResultServiceImpl implements IResultService {
|
|||||||
dlt.setScriptTypeName("特征幅值=" + dtls.getTransValue() + "%Un,持续时间=" + dtls.getRetainTime().intValue() + "周波");
|
dlt.setScriptTypeName("特征幅值=" + dtls.getTransValue() + "%Un,持续时间=" + dtls.getRetainTime().intValue() + "周波");
|
||||||
dlt.setIndex(dtls.getScriptIndex());
|
dlt.setIndex(dtls.getScriptIndex());
|
||||||
dlt.setScriptType(scriptDtlIndexList.get(0).getScriptType());
|
dlt.setScriptType(scriptDtlIndexList.get(0).getScriptType());
|
||||||
dlt.setSourceDesc(ScriptDtlsDesc.getStringBuffer(scriptDtlIndexList, isValueType).toString());
|
dlt.setSourceDesc(ScriptDtlsDesc.getStringBuffer(scriptDtlIndexList,false, isValueType).toString());
|
||||||
if (finalResultMap.containsKey(dtls.getScriptIndex())) {
|
if (finalResultMap.containsKey(dtls.getScriptIndex())) {
|
||||||
dlt.setFly(conform(finalResultMap.get(dtls.getScriptIndex())));
|
dlt.setFly(conform(finalResultMap.get(dtls.getScriptIndex())));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ public class PqScriptDtlsServiceImpl extends ServiceImpl<PqScriptDtlsMapper, PqS
|
|||||||
checkDataParam.setIndex(freqDtls.getScriptIndex());
|
checkDataParam.setIndex(freqDtls.getScriptIndex());
|
||||||
checkDataParam.setIsValueTypeName(true);
|
checkDataParam.setIsValueTypeName(true);
|
||||||
issue.setDevValueTypeList(pqScriptCheckDataService.getValueType(checkDataParam));
|
issue.setDevValueTypeList(pqScriptCheckDataService.getValueType(checkDataParam));
|
||||||
issue.setDesc(ScriptDtlsDesc.getStringBuffer(value, isValueType).toString());
|
issue.setDesc(ScriptDtlsDesc.getStringBuffer(value,true, isValueType).toString());
|
||||||
issue.setScriptId(freqDtls.getScriptId());
|
issue.setScriptId(freqDtls.getScriptId());
|
||||||
issue.setFUn(volt);
|
issue.setFUn(volt);
|
||||||
issue.setFIn(curr);
|
issue.setFIn(curr);
|
||||||
|
|||||||
@@ -16,15 +16,18 @@ import java.util.stream.Collectors;
|
|||||||
* @date 2025/1/13 22:05
|
* @date 2025/1/13 22:05
|
||||||
*/
|
*/
|
||||||
public class ScriptDtlsDesc {
|
public class ScriptDtlsDesc {
|
||||||
public static StringBuffer getStringBuffer(List<PqScriptDtls> scriptDtlIndex, Boolean isValueType) {
|
public static StringBuffer getStringBuffer(List<PqScriptDtls> scriptDtlIndex,Boolean isScript, Boolean isValueType) {
|
||||||
if (ObjectUtil.isNull(isValueType)) {
|
if (ObjectUtil.isNull(isValueType)) {
|
||||||
|
isValueType = true;
|
||||||
|
}
|
||||||
|
if (isScript) {
|
||||||
isValueType = false;
|
isValueType = false;
|
||||||
}
|
}
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
buffer.append("输入:");
|
buffer.append("输入:");
|
||||||
appendValue(scriptDtlIndex, buffer, "Freq", "频率", ResultUnitEnum.FREQ_UNIT.getUnit(), null);
|
appendValue(scriptDtlIndex, buffer, "Freq", "频率", ResultUnitEnum.FREQ_UNIT.getUnit(), null);
|
||||||
appendValue(scriptDtlIndex, buffer, "VOL", "U", !isValueType ? ResultUnitEnum.V_RELATIVE_UNIT.getUnit() : ResultUnitEnum.V_ABSOLUTELY_UNIT.getUnit(), "相角=");
|
appendValue(scriptDtlIndex, buffer, "VOL", "U", isValueType ? ResultUnitEnum.V_RELATIVE_UNIT.getUnit() : ResultUnitEnum.V_ABSOLUTELY_UNIT.getUnit(), "相角=");
|
||||||
appendValue(scriptDtlIndex, buffer, "CUR", "I", !isValueType ? ResultUnitEnum.I_RELATIVE_UNIT.getUnit() : ResultUnitEnum.I_ABSOLUTELY_UNIT.getUnit(), "相角=");
|
appendValue(scriptDtlIndex, buffer, "CUR", "I", isValueType ? ResultUnitEnum.I_RELATIVE_UNIT.getUnit() : ResultUnitEnum.I_ABSOLUTELY_UNIT.getUnit(), "相角=");
|
||||||
dtlsSetBuffer(scriptDtlIndex, buffer, "Harm_V", "h", ResultUnitEnum.HV_UNIT.getUnit(), true);
|
dtlsSetBuffer(scriptDtlIndex, buffer, "Harm_V", "h", ResultUnitEnum.HV_UNIT.getUnit(), true);
|
||||||
dtlsSetBuffer(scriptDtlIndex, buffer, "Harm_I", "h", ResultUnitEnum.HI_UNIT.getUnit(), true);
|
dtlsSetBuffer(scriptDtlIndex, buffer, "Harm_I", "h", ResultUnitEnum.HI_UNIT.getUnit(), true);
|
||||||
dtlsSetBuffer(scriptDtlIndex, buffer, "InHarm_V", "i", ResultUnitEnum.HSV_UNIT.getUnit(), false);
|
dtlsSetBuffer(scriptDtlIndex, buffer, "InHarm_V", "i", ResultUnitEnum.HSV_UNIT.getUnit(), false);
|
||||||
|
|||||||
Reference in New Issue
Block a user