差异检查数量对不上问题解决
This commit is contained in:
parent
79888fbf5b
commit
abe433678a
@ -2882,6 +2882,7 @@ public class TsFilesServiceImpl extends ServiceImpl<TsFilesMapper, TsFiles> impl
|
|||||||
if (StringUtils.isNoneEmpty(nodeId, taskId)) {
|
if (StringUtils.isNoneEmpty(nodeId, taskId)) {
|
||||||
queryWrapper.eq("node_id", nodeId)
|
queryWrapper.eq("node_id", nodeId)
|
||||||
.eq("task_id", taskId)
|
.eq("task_id", taskId)
|
||||||
|
.eq("parent_id", "00")
|
||||||
.isNotNull("work_path")
|
.isNotNull("work_path")
|
||||||
.ne("work_path", "")
|
.ne("work_path", "")
|
||||||
.and(wq -> wq.isNull("backup_path").or().eq("backup_path", ""));
|
.and(wq -> wq.isNull("backup_path").or().eq("backup_path", ""));
|
||||||
@ -3050,6 +3051,7 @@ public class TsFilesServiceImpl extends ServiceImpl<TsFilesMapper, TsFiles> impl
|
|||||||
// 场景1:根据 nodeId + taskId 查询(确保数据库有联合索引)
|
// 场景1:根据 nodeId + taskId 查询(确保数据库有联合索引)
|
||||||
queryWrapper.eq("node_id", nodeId)
|
queryWrapper.eq("node_id", nodeId)
|
||||||
.eq("task_id", taskId)
|
.eq("task_id", taskId)
|
||||||
|
.eq("parent_id", "00")
|
||||||
.isNotNull("backup_path")
|
.isNotNull("backup_path")
|
||||||
.ne("backup_path", "")
|
.ne("backup_path", "")
|
||||||
.and(wq -> wq.isNull("work_path").or().eq("work_path", ""));
|
.and(wq -> wq.isNull("work_path").or().eq("work_path", ""));
|
||||||
|
Loading…
Reference in New Issue
Block a user