| | |
| | | package cn.iocoder.yudao.module.mes.dal.mysql.pd.document; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| | | import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
| | | import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
| | |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.pd.document.MesPdDocumentDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | |
| | | return selectList(MesPdDocumentDO::getProjectId, projectId); |
| | | } |
| | | |
| | | default List<MesPdDocumentDO> selectListByProjectIds(Collection<Long> projectIds) { |
| | | if (CollUtil.isEmpty(projectIds)) { |
| | | return Collections.emptyList(); |
| | | } |
| | | return selectList(MesPdDocumentDO::getProjectId, projectIds); |
| | | } |
| | | |
| | | default int deleteByProjectId(Long projectId) { |
| | | return delete(MesPdDocumentDO::getProjectId, projectId); |
| | | } |