gaoluyang
5 天以前 8c65f898ed6e5b0c7a94c792c4562f6ec831dccd
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/dal/mysql/wm/productsales/MesWmProductSalesMapper.java
@@ -8,6 +8,8 @@
import cn.iocoder.yudao.module.mes.dal.dataobject.wm.productsales.MesWmProductSalesDO;
import org.apache.ibatis.annotations.Mapper;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
/**
@@ -68,4 +70,13 @@
                .orderByDesc(MesWmProductSalesDO::getId));
    }
    default List<MesWmProductSalesDO> selectListBySaleOrderIds(Collection<Long> saleOrderIds) {
        if (CollUtil.isEmpty(saleOrderIds)) {
            return Collections.emptyList();
        }
        return selectList(new LambdaQueryWrapperX<MesWmProductSalesDO>()
                .in(MesWmProductSalesDO::getSaleOrderId, saleOrderIds)
                .orderByDesc(MesWmProductSalesDO::getId));
    }
}