tuqin
2026-11-03 9494075e6d9d2a4b2b884b4ed740dee0c434734c
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
29
30
package cn.iocoder.yudao.module.trade.dal.mysql.foreign;
 
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.trade.dal.dataobject.foreign.TradeForeignDocumentDO;
import org.apache.ibatis.annotations.Mapper;
 
import java.util.Collection;
import java.util.List;
 
/**
 * 外贸订单单据 Mapper
 *
 * @author mom
 */
@Mapper
public interface TradeForeignDocumentMapper extends BaseMapperX<TradeForeignDocumentDO> {
 
    default List<TradeForeignDocumentDO> selectListByOrderId(Long orderId) {
        return selectList(TradeForeignDocumentDO::getOrderId, orderId);
    }
 
    default List<TradeForeignDocumentDO> selectListByOrderIds(Collection<Long> orderIds) {
        return selectList(TradeForeignDocumentDO::getOrderId, orderIds);
    }
 
    default void deleteByOrderId(Long orderId) {
        delete(TradeForeignDocumentDO::getOrderId, orderId);
    }
 
}