云
20 小时以前 d9a5ba1de2fce6bd8c50dace505e4bf7864043ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 tenantId, 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) {
        return selectOne(new LambdaQueryWrapperX<AgentImportCommandDO>()
                .eq(AgentImportCommandDO::getTenantId, tenantId)
                .eq(AgentImportCommandDO::getOwnerUserId, ownerUserId)
                .eq(AgentImportCommandDO::getModuleId, moduleId)
                .eq(AgentImportCommandDO::getIdempotencyKey, idempotencyKey));
    }
}