liu
昨天 43aab58c9ecb1203770ba382efbdbae299ca87ec
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/agent/MdmAgentImportCommandMapper.java
对比新文件
@@ -0,0 +1,22 @@
package cn.iocoder.yudao.module.mdm.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.mdm.dal.dataobject.agent.MdmAgentImportCommandDO;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MdmAgentImportCommandMapper extends BaseMapperX<MdmAgentImportCommandDO> {
    default MdmAgentImportCommandDO selectByCommandId(Long ownerUserId, String commandId) {
        return selectOne(new LambdaQueryWrapperX<MdmAgentImportCommandDO>()
                .eq(MdmAgentImportCommandDO::getOwnerUserId, ownerUserId)
                .eq(MdmAgentImportCommandDO::getCommandId, commandId));
    }
    default MdmAgentImportCommandDO selectByIdempotencyKey(Long ownerUserId, String idempotencyKey) {
        return selectOne(new LambdaQueryWrapperX<MdmAgentImportCommandDO>()
                .eq(MdmAgentImportCommandDO::getOwnerUserId, ownerUserId)
                .eq(MdmAgentImportCommandDO::getIdempotencyKey, idempotencyKey));
    }
}