| | |
| | | if (pendingInventoryDto.getOfficialId() == null) { |
| | | OfficialInventory officialInventory = new OfficialInventory(); |
| | | BeanUtils.copyProperties(pendingInventory, officialInventory); |
| | | officialInventory.setPurchaseNumber(pendingInventory.getPurchaseNumber()); |
| | | officialInventory.setId(null); |
| | | officialInventory.setCoalPlanId(pendingInventoryDto.getCoalPlanId()); |
| | | officialInventory.setPendingId(pendingInventoryDto.getPId()); |
| | |
| | | officialInventory.setRegistrantId(1L); |
| | | officialInventory.setType(pendingInventory.getType()); |
| | | officialInventory.setSupplierId(pendingInventoryDto.getSupplierId()); |
| | | officialInventory.setCode(pendingInventory.getCode()); |
| | | officialInventoryMapper.insert(officialInventory); |
| | | } else { |
| | | OfficialInventory officialInventory = officialInventoryMapper.selectById(pendingInventoryDto.getOfficialId()); |