复检时脚本查询结果错误bug

This commit is contained in:
caozehui
2025-04-30 10:27:11 +08:00
parent 2869f66154
commit 41252af4e9

View File

@@ -892,7 +892,8 @@ public class PqScriptDtlsServiceImpl extends ServiceImpl<PqScriptDtlsMapper, PqS
pqScriptDtls = this.list(queryWrapper);
} else {
//先获取检测脚本类型是否相对值 true相对值 false绝对值相对值要乘额定值,绝对值不需要处理)
queryWrapper.eq(PqScriptDtls::getScriptId, param.getScriptId());
queryWrapper.eq(PqScriptDtls::getScriptId, param.getScriptId())
.in(CollUtil.isNotEmpty(param.getIndexList()), PqScriptDtls::getScriptIndex, param.getIndexList());
pqScriptDtls = this.getBaseMapper().selectJoinList(PqScriptDtls.class, queryWrapper);
if (CollUtil.isNotEmpty(param.getDevIds()) || (ObjectUtil.isNotNull(param.getType()) && param.getType() == 1)) {
Boolean isValueType = pqScriptMapper.selectScriptIsValueType(param.getScriptId());