liu
昨天 43aab58c9ecb1203770ba382efbdbae299ca87ec
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/agent/AgentImportCommandMapper.java
对比新文件
@@ -0,0 +1,24 @@
package cn.iocoder.yudao.module.system.dal.mysql.agent;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.system.dal.dataobject.agent.AgentImportCommandDO;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface AgentImportCommandMapper extends BaseMapperX<AgentImportCommandDO> {
    default AgentImportCommandDO selectByCommandId(Long ownerUserId, String moduleId, String commandId) {
        return selectOne(new LambdaQueryWrapperX<AgentImportCommandDO>()
                .eq(AgentImportCommandDO::getOwnerUserId, ownerUserId)
                .eq(AgentImportCommandDO::getModuleId, moduleId)
                .eq(AgentImportCommandDO::getCommandId, commandId));
    }
    default AgentImportCommandDO selectByIdempotencyKey(Long ownerUserId, String moduleId, String idempotencyKey) {
        return selectOne(new LambdaQueryWrapperX<AgentImportCommandDO>()
                .eq(AgentImportCommandDO::getOwnerUserId, ownerUserId)
                .eq(AgentImportCommandDO::getModuleId, moduleId)
                .eq(AgentImportCommandDO::getIdempotencyKey, idempotencyKey));
    }
}