微调
This commit is contained in:
@@ -143,16 +143,14 @@ public class PqScriptDtlsServiceImpl extends ServiceImpl<PqScriptDtlsMapper, PqS
|
||||
//额定电流信息
|
||||
currSet = devTypes.stream().map(DevType::getDevCurr).collect(Collectors.toSet());
|
||||
} else {
|
||||
if (ObjectUtil.isNull(param.getType())) {
|
||||
if (param.getType() == 0) {
|
||||
voltSet.add(1.0);
|
||||
currSet.add(1.0);
|
||||
param.setIsPhaseSequence("-1");
|
||||
}else {
|
||||
if (param.getType() == 1) {
|
||||
voltSet.add(57.74);
|
||||
currSet.add(5.0);
|
||||
param.setIsPhaseSequence("-1");
|
||||
}
|
||||
} else if (param.getType() == 1) {
|
||||
voltSet.add(57.74);
|
||||
currSet.add(5.0);
|
||||
param.setIsPhaseSequence("-1");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -831,11 +829,11 @@ public class PqScriptDtlsServiceImpl extends ServiceImpl<PqScriptDtlsMapper, PqS
|
||||
//先获取检测脚本类型是否相对值 true相对值 false绝对值(相对值要乘额定值,绝对值不需要处理)
|
||||
queryWrapper.eq(PqScriptDtls::getScriptId, param.getScriptId());
|
||||
pqScriptDtls = this.getBaseMapper().selectJoinList(PqScriptDtls.class, queryWrapper);
|
||||
if (CollUtil.isNotEmpty(param.getDevIds()) || (ObjectUtil.isNotNull(param.getType())&¶m.getType()==1)) {
|
||||
if (CollUtil.isNotEmpty(param.getDevIds()) || (ObjectUtil.isNotNull(param.getType()) && param.getType() == 1)) {
|
||||
Boolean isValueType;
|
||||
if (ObjectUtil.isNotNull(param.getValueType()) && param.getValueType() == 2) {
|
||||
isValueType = true; //相对值脚本
|
||||
}else {
|
||||
} else {
|
||||
isValueType = pqScriptMapper.selectScriptIsValueType(param.getScriptId());
|
||||
}
|
||||
if (isValueType) {
|
||||
|
||||
Reference in New Issue
Block a user