| | |
| | | import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
| | | import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.batch.vo.MesWmBatchPageReqVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.batch.vo.MesWmBatchProcessTraceRespVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.batch.vo.MesWmBatchPurchaseSourceRespVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.batch.vo.MesWmBatchSalesTargetRespVO; |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.wm.batch.MesWmBatchDO; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | |
| | | /** |
| | | * 批次管理 Mapper |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @Mapper |
| | | public interface MesWmBatchMapper extends BaseMapperX<MesWmBatchDO> { |
| | |
| | | .betweenIfPresent(MesWmBatchDO::getExpireDate, reqVO.getExpireDate()) |
| | | .betweenIfPresent(MesWmBatchDO::getReceiptDate, reqVO.getReceiptDate()) |
| | | .orderByDesc(MesWmBatchDO::getId); |
| | | if (permittedClientIds != null) { |
| | | if (CollUtil.isEmpty(permittedClientIds)) { |
| | | return PageResult.empty(); |
| | | } |
| | | wrapper.in(MesWmBatchDO::getClientId, permittedClientIds); |
| | | } |
| | | // if (permittedClientIds != null) { |
| | | // if (CollUtil.isEmpty(permittedClientIds)) { |
| | | // return PageResult.empty(); |
| | | // } |
| | | // wrapper.in(MesWmBatchDO::getClientId, permittedClientIds); |
| | | // } |
| | | return selectPage(reqVO, wrapper); |
| | | } |
| | | |
| | |
| | | */ |
| | | List<MesWmBatchDO> selectListByBackward(String batchCode); |
| | | |
| | | /** |
| | | * 查询批次采购来源(采购入库单 + IQC) |
| | | * |
| | | * @param batchCode 批次号 |
| | | * @return 采购来源列表 |
| | | */ |
| | | List<MesWmBatchPurchaseSourceRespVO> selectPurchaseSourceList(String batchCode); |
| | | |
| | | /** |
| | | * 查询批次销售去向(销售出库单 + OQC) |
| | | * |
| | | * @param batchCode 批次号 |
| | | * @return 销售去向列表 |
| | | */ |
| | | List<MesWmBatchSalesTargetRespVO> selectSalesTargetList(String batchCode); |
| | | |
| | | /** |
| | | * 查询批次工序流转(产出/投入事件) |
| | | * |
| | | * @param batchCode 批次号 |
| | | * @return 工序流转列表 |
| | | */ |
| | | List<MesWmBatchProcessTraceRespVO> selectProcessTraceList(String batchCode); |
| | | |
| | | } |