feat: 拆批可接收qmsSpecialMarking
This commit is contained in:
parent
159aa4162f
commit
27174dd7e0
@ -359,12 +359,13 @@ public class ZWmsInventoryController {
|
||||
String parentInventoryId = request.get("parentInventoryId");
|
||||
BigDecimal splitQty = new BigDecimal(request.get("splitQty"));
|
||||
int splitNum = Integer.parseInt(request.get("splitNum"));
|
||||
String qmsSpecialMarking = request.get("qmsSpecialMarking");
|
||||
// 纳琳威打印
|
||||
/*String printer = request.get("printer");
|
||||
if (StringUtil.isEmpty(printer)) {
|
||||
throw BusinessException.build("打印机未维护");
|
||||
} else {*/
|
||||
List<String> splitInventoryIdList = inventoryService.splitInventory(site, user, parentInventoryId, splitQty, splitNum, null, null, null);
|
||||
List<String> splitInventoryIdList = inventoryService.splitInventory(site, user, parentInventoryId, splitQty, splitNum, null, null, null,null,qmsSpecialMarking);
|
||||
splitInventoryIdList.add(parentInventoryId);
|
||||
//barCodeQueryService.batchPrint(splitInventoryIdList, printer);
|
||||
splitInventoryIdList.remove(splitInventoryIdList.size() - 1);
|
||||
|
||||
@ -80,7 +80,7 @@ public interface ZWmsInventoryService extends IService<Inventory> {
|
||||
*/
|
||||
List<String> splitInventory(String site, String user, String parentInventory, BigDecimal splitQty, int splitNum, String documentNo, String documentType, String storageBinBo);
|
||||
|
||||
List<String> splitInventory(String site, String user, String parentInventory, BigDecimal splitQty, int splitNum, String documentNo, String documentType, String storageBinBo, List<String> newInventoryIdList);
|
||||
List<String> splitInventory(String site, String user, String parentInventory, BigDecimal splitQty, int splitNum, String documentNo, String documentType, String storageBinBo, List<String> newInventoryIdList, String qmsSpecialMarking);
|
||||
|
||||
/**
|
||||
* 合并库存
|
||||
|
||||
@ -288,12 +288,12 @@ public class ZWmsInventoryServiceImpl extends ServiceImpl<ZWmsInventoryMapper, I
|
||||
|
||||
@Override
|
||||
public List<String> splitInventory(String site, String user, String parentInventoryId, BigDecimal splitQty, int splitNum, String documentNo, String documentType, String storageBinBo) {
|
||||
return splitInventory(site, user, parentInventoryId, splitQty, splitNum, documentNo, documentType, storageBinBo, null);
|
||||
return splitInventory(site, user, parentInventoryId, splitQty, splitNum, documentNo, documentType, storageBinBo, null, null);
|
||||
}
|
||||
|
||||
//@GlobalTransactional
|
||||
@Override
|
||||
public List<String> splitInventory(String site, String user, String parentInventoryId, BigDecimal splitQty, int splitNum, String documentNo, String documentType, String storageBinBo, List<String> newInventoryIdList) {
|
||||
public List<String> splitInventory(String site, String user, String parentInventoryId, BigDecimal splitQty, int splitNum, String documentNo, String documentType, String storageBinBo, List<String> newInventoryIdList, String qmsSpecialMarking) {
|
||||
Inventory parentInventory = getByCode(site, parentInventoryId);
|
||||
if (parentInventory == null) {
|
||||
throw BusinessException.build("库存不存在");
|
||||
@ -329,7 +329,7 @@ public class ZWmsInventoryServiceImpl extends ServiceImpl<ZWmsInventoryMapper, I
|
||||
inventory.setCreator(user);
|
||||
inventory.setQtyOnHand(splitQty);
|
||||
inventory.setOriginalQty(splitQty);
|
||||
|
||||
inventory.setQmsSpecialMarking(qmsSpecialMarking);
|
||||
//inventory.setCreateTime(LocalDateTime.now());
|
||||
inventory.setParentInventoryBo(parentInventory.getHandle());
|
||||
newInventoryList.add(inventory);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user