防止因为二创导致的数据存在taskId相同导致报错问题
This commit is contained in:
@@ -2685,9 +2685,19 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> i
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理父ID逻辑
|
AuthPrincipalVo userHolder = UserContext.getUserHolder();
|
||||||
processParentId(vo, dbItem != null ? dbItem :
|
Long userId = userHolder.getId();
|
||||||
poseTransformationMapper.selectOne(new QueryWrapper<PoseTransformation>().eq("unique_id", taskId)));
|
if (userId != null){
|
||||||
|
// 处理父ID逻辑
|
||||||
|
processParentId(vo, dbItem != null ? dbItem :
|
||||||
|
poseTransformationMapper.selectOne(new QueryWrapper<PoseTransformation>().eq("unique_id", taskId).eq("account_id", userId)));
|
||||||
|
|
||||||
|
}else {
|
||||||
|
// 处理父ID逻辑
|
||||||
|
processParentId(vo, dbItem != null ? dbItem :
|
||||||
|
poseTransformationMapper.selectList(new QueryWrapper<PoseTransformation>().eq("unique_id", taskId)).get(0));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user