| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | .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)); |
| | | } |
| | | |
| | | } |