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);
|
}
|
|
}
|