| | |
| | | delete(MesWmProductSalesDetailDO::getSalesId, salesId); |
| | | } |
| | | |
| | | /** |
| | | * 根据袋码编号查询最近的出库明细(供窜货稽查反查出库去向) |
| | | */ |
| | | default MesWmProductSalesDetailDO selectLatestByBagCodeId(Long bagCodeId) { |
| | | return selectOne(new com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<MesWmProductSalesDetailDO>() |
| | | .eq(MesWmProductSalesDetailDO::getBagCodeId, bagCodeId) |
| | | .orderByDesc(MesWmProductSalesDetailDO::getId) |
| | | .last("LIMIT 1")); |
| | | } |
| | | |
| | | /** |
| | | * 根据托盘码编号查询最近的出库明细(供窜货稽查反查出库去向) |
| | | */ |
| | | default MesWmProductSalesDetailDO selectLatestByPalletCodeId(Long palletCodeId) { |
| | | return selectOne(new com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<MesWmProductSalesDetailDO>() |
| | | .eq(MesWmProductSalesDetailDO::getPalletCodeId, palletCodeId) |
| | | .orderByDesc(MesWmProductSalesDetailDO::getId) |
| | | .last("LIMIT 1")); |
| | | } |
| | | |
| | | } |