| | |
| | | package cn.iocoder.yudao.module.mes.service.wm.itemreceipt; |
| | | |
| | | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.itemreceipt.vo.MesWmItemReceiptImportExcelVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.vo.MesWmDocImportRespVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.itemreceipt.vo.MesWmItemReceiptPageReqVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.wm.itemreceipt.vo.MesWmItemReceiptSaveReqVO; |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.wm.itemreceipt.MesWmItemReceiptDO; |
| | |
| | | return convertMap(getItemReceiptList(ids), MesWmItemReceiptDO::getId); |
| | | } |
| | | |
| | | /** |
| | | * 根据到货通知单生成采购入库单 |
| | | * |
| | | * @param arrivalNoticeId 到货通知单编号 |
| | | * @return 生成的采购入库单编号 |
| | | */ |
| | | Long generateItemReceiptFromArrivalNotice(Long arrivalNoticeId); |
| | | |
| | | /** |
| | | * 提交采购入库单审批 |
| | | * |
| | | * @param id 入库单编号 |
| | | * @param processDefinitionKey 流程定义 Key |
| | | */ |
| | | void submitItemReceiptApproval(Long id, String processDefinitionKey); |
| | | |
| | | /** |
| | | * 更新采购入库单审批状态(由 BPM Listener 回调) |
| | | * |
| | | * @param id 入库单编号 |
| | | * @param bpmResult BPM 审批结果 |
| | | */ |
| | | void updateItemReceiptAuditStatus(Long id, Integer bpmResult); |
| | | |
| | | /** |
| | | * 批量导入采购入库单 |
| | | * |
| | | * 同一「入库单编码」的多行会归并为一张单据的多个明细行; |
| | | * 单行校验失败不影响整批,失败原因按单据编码/行号返回。 |
| | | * |
| | | * @param importList 导入数据 |
| | | * @return 导入结果 |
| | | */ |
| | | MesWmDocImportRespVO importItemReceiptList(List<MesWmItemReceiptImportExcelVO> importList); |
| | | |
| | | } |