云
4 小时以前 95ae0c83d2aa58d86b4039e3f7f16ee93afb8f00
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/agent/AgentImportCommandMapper.java
@@ -8,19 +8,15 @@
@Mapper
public interface AgentImportCommandMapper extends BaseMapperX<AgentImportCommandDO> {
    default AgentImportCommandDO selectByCommandId(Long tenantId, Long ownerUserId,
                                                   String moduleId, String commandId) {
    default AgentImportCommandDO selectByCommandId(Long ownerUserId, String moduleId, String commandId) {
        return selectOne(new LambdaQueryWrapperX<AgentImportCommandDO>()
                .eq(AgentImportCommandDO::getTenantId, tenantId)
                .eq(AgentImportCommandDO::getOwnerUserId, ownerUserId)
                .eq(AgentImportCommandDO::getModuleId, moduleId)
                .eq(AgentImportCommandDO::getCommandId, commandId));
    }
    default AgentImportCommandDO selectByIdempotencyKey(Long tenantId, Long ownerUserId,
                                                        String moduleId, String idempotencyKey) {
    default AgentImportCommandDO selectByIdempotencyKey(Long ownerUserId, String moduleId, String idempotencyKey) {
        return selectOne(new LambdaQueryWrapperX<AgentImportCommandDO>()
                .eq(AgentImportCommandDO::getTenantId, tenantId)
                .eq(AgentImportCommandDO::getOwnerUserId, ownerUserId)
                .eq(AgentImportCommandDO::getModuleId, moduleId)
                .eq(AgentImportCommandDO::getIdempotencyKey, idempotencyKey));