Commit 5788322eb92889846639efb0446fadf3c0bf506e
1 parent
f3fd4b8f
修改出库单删除报字段异常
Showing
1 changed file
with
20 additions
and
1 deletions
src/main/java/com/huaheng/pc/shipment/shipmentHeader/service/ShipmentHeaderServiceImpl.java
@@ -173,7 +173,26 @@ public class ShipmentHeaderServiceImpl extends ServiceImpl<ShipmentHeaderMapper, | @@ -173,7 +173,26 @@ public class ShipmentHeaderServiceImpl extends ServiceImpl<ShipmentHeaderMapper, | ||
173 | if(headerHistory == null) { | 173 | if(headerHistory == null) { |
174 | //历史出库主单 | 174 | //历史出库主单 |
175 | ShipmentHeaderHistory shipmentHeaderHistory = new ShipmentHeaderHistory(); | 175 | ShipmentHeaderHistory shipmentHeaderHistory = new ShipmentHeaderHistory(); |
176 | - BeanUtils.copyProperties(shipmentHeaderHistory, shipmentHeader); | 176 | +// BeanUtils.copyProperties(shipmentHeaderHistory, shipmentHeader); |
177 | + shipmentHeaderHistory.setId(shipmentHeader.getId()); | ||
178 | + shipmentHeaderHistory.setWarehouseCode(shipmentHeader.getWarehouseCode()); | ||
179 | + shipmentHeaderHistory.setCarrierCode(shipmentHeader.getCarrierCode()); | ||
180 | + shipmentHeaderHistory.setCode(shipmentHeader.getCode()); | ||
181 | + shipmentHeaderHistory.setReferCode(shipmentHeader.getReferCode()); | ||
182 | + shipmentHeaderHistory.setReferPlatform(shipmentHeader.getFirstStatus()); | ||
183 | + shipmentHeaderHistory.setFirstStatus(shipmentHeader.getId()); | ||
184 | + shipmentHeaderHistory.setLastStatus(shipmentHeader.getId()); | ||
185 | + shipmentHeaderHistory.setShipmentType(shipmentHeader.getShipmentType()); | ||
186 | + shipmentHeaderHistory.setTotalQty(shipmentHeader.getTotalQty()); | ||
187 | + shipmentHeaderHistory.setTotalLines(shipmentHeader.getTotalLines()); | ||
188 | + shipmentHeaderHistory.setLastWaveId(shipmentHeader.getLastWaveId()); | ||
189 | + shipmentHeaderHistory.setCreated(shipmentHeader.getCreated()); | ||
190 | + shipmentHeaderHistory.setCreatedBy(shipmentHeader.getCreatedBy()); | ||
191 | + shipmentHeaderHistory.setLastUpdated(shipmentHeader.getLastUpdated()); | ||
192 | + shipmentHeaderHistory.setLastUpdatedBy(shipmentHeader.getLastUpdatedBy()); | ||
193 | + shipmentHeaderHistory.setVersion(shipmentHeader.getVersion()); | ||
194 | + shipmentHeaderHistory.setDeleted(shipmentHeader.getDeleted()); | ||
195 | + shipmentHeaderHistory.setCompanyCode(shipmentHeader.getCompanyCode()); | ||
177 | if (shipmentHeaderHistoryService.save(shipmentHeaderHistory) == false) { | 196 | if (shipmentHeaderHistoryService.save(shipmentHeaderHistory) == false) { |
178 | throw new ServiceException("存入历史出库主单失败"); | 197 | throw new ServiceException("存入历史出库主单失败"); |
179 | } | 198 | } |