|
|
@@ -484,7 +484,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
archives.setBoxMakingDate(tradingBoxItem.getBoxMakingDate());
|
|
|
archives.setLeaseCommencementDate(tradingBoxItem.getLeaseCommencementDate());
|
|
|
archives.setBoxAge(tradingBoxItem.getBoxAge());
|
|
|
- archives.setPurchaseDate(tradingBox.getPurchaseDate());
|
|
|
+ archives.setPurchaseDate(tradingBoxItem.getLeaseCommencementDate());
|
|
|
archives.setContractNo(tradingBox.getContractNo());
|
|
|
if (ObjectUtils.isNotNull(archivesR)) {
|
|
|
archives.setUpdateTime(new Date());
|
|
|
@@ -916,9 +916,6 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
throw new RuntimeException("箱号不能为空");
|
|
|
}
|
|
|
} else {
|
|
|
- tradingBoxItem.setRentEndDate(tradingBox.getRentDate());
|
|
|
- tradingBoxItem.setRentingOutDate(tradingBox.getRentDate());
|
|
|
- tradingBoxItem.setStatus("退租");
|
|
|
if (ObjectUtils.isNotNull(tradingBoxItem.getCode())) {
|
|
|
//更新箱档案信息
|
|
|
Archives archivesR = archivesMapper.selectOne(new LambdaQueryWrapper<Archives>().eq(Archives::getIsDeleted, 0).eq(Archives::getTenantId, AuthUtil.getTenantId()).eq(Archives::getCode, tradingBoxItem.getCode()));
|
|
|
@@ -996,7 +993,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
//账单数据
|
|
|
items.setAmount(tradingBoxFees.getAmount());
|
|
|
items.setQuantity(tradingBoxFees.getQuantity());
|
|
|
- items.setSrcOrderno(tradingBox.getSysNo());
|
|
|
+ items.setSrcOrderno(tradingBox.getContractNo());
|
|
|
items.setCorpId(tradingBoxFees.getCorpId());
|
|
|
items.setSrcParentId(pid);
|
|
|
items.setCurrency(tradingBoxFees.getCurrency());
|
|
|
@@ -1005,10 +1002,12 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
items.setUnit(tradingBoxFees.getUnit());
|
|
|
items.setSrcSysNo(tradingBoxFees.getCode());
|
|
|
items.setRemarks(tradingBoxFees.getRemarks());
|
|
|
- items.setSrcBillNo(tradingBox.getContractNo());
|
|
|
+ items.setSrcBillNo(tradingBox.getSysNo());
|
|
|
items.setStatusJT(0);
|
|
|
- items.setBillNo(tradingBox.getContractNo());
|
|
|
+ items.setBillNo(tradingBox.getSysNo());
|
|
|
items.setStockTime(tradingBox.getPurchaseDate());
|
|
|
+ items.setRentStartDate(tradingBoxItem.getRentEndDate());
|
|
|
+ items.setRentEndDate(tradingBox.getRentDate());
|
|
|
//获取费用id
|
|
|
if (ObjectUtils.isNotNull(tradingBoxFees.getItemId())) {
|
|
|
items.setCostType(tradingBoxFees.getItemId().toString());
|
|
|
@@ -1016,6 +1015,11 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
items.setSrcFeesId(tradingBoxFees.getId());
|
|
|
itemsList.add(items);
|
|
|
applyDTO.setItemsList(itemsList);
|
|
|
+
|
|
|
+
|
|
|
+ tradingBoxItem.setStatus("退租");
|
|
|
+ tradingBoxItem.setRentEndDate(tradingBox.getRentDate());
|
|
|
+ tradingBoxItem.setRentingOutDate(tradingBox.getRentDate());
|
|
|
}
|
|
|
tradingBoxItemMapper.updateById(tradingBoxItem);
|
|
|
//记录箱轨迹信息
|
|
|
@@ -1143,7 +1147,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
//账单数据
|
|
|
items.setAmount(tradingBoxFees.getAmount());
|
|
|
items.setQuantity(tradingBoxFees.getQuantity());
|
|
|
- items.setSrcOrderno(tradingBox.getSysNo());
|
|
|
+ items.setSrcOrderno(tradingBox.getContractNo());
|
|
|
items.setCorpId(tradingBoxFees.getCorpId());
|
|
|
items.setSrcParentId(pid);
|
|
|
items.setCurrency(tradingBoxFees.getCurrency());
|
|
|
@@ -1152,10 +1156,12 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
items.setUnit(tradingBoxFees.getUnit());
|
|
|
items.setSrcSysNo(tradingBoxFees.getCode());
|
|
|
items.setRemarks(tradingBoxFees.getRemarks());
|
|
|
- items.setSrcBillNo(tradingBox.getContractNo());
|
|
|
+ items.setSrcBillNo(tradingBox.getSysNo());
|
|
|
items.setStatusJT(0);
|
|
|
- items.setBillNo(tradingBox.getContractNo());
|
|
|
+ items.setBillNo(tradingBox.getSysNo());
|
|
|
items.setStockTime(tradingBox.getPurchaseDate());
|
|
|
+ items.setRentStartDate(tradingBox.getRentStartDate());
|
|
|
+ items.setRentEndDate(tradingBox.getRentCalculationDate());
|
|
|
//获取费用id
|
|
|
if (ObjectUtils.isNotNull(tradingBoxFees.getItemId())) {
|
|
|
items.setCostType(tradingBoxFees.getItemId().toString());
|
|
|
@@ -1418,7 +1424,7 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
//账单数据
|
|
|
items.setAmount(amount);
|
|
|
items.setQuantity(quantity);
|
|
|
- items.setSrcOrderno(tradingBox.getSysNo());
|
|
|
+ items.setSrcOrderno(tradingBox.getContractNo());
|
|
|
items.setCorpId(tradingBoxFees.getCorpId());
|
|
|
items.setSrcParentId(pid);
|
|
|
items.setCurrency(tradingBoxFees.getCurrency());
|
|
|
@@ -1427,9 +1433,9 @@ public class TradingBoxServiceImpl extends ServiceImpl<TradingBoxMapper, Trading
|
|
|
items.setUnit(tradingBoxFees.getUnit());
|
|
|
items.setSrcSysNo(tradingBoxFees.getCode());
|
|
|
items.setRemarks(tradingBoxFees.getRemarks());
|
|
|
- items.setSrcBillNo(tradingBox.getContractNo());
|
|
|
+ items.setSrcBillNo(tradingBox.getSysNo());
|
|
|
items.setStatusJT(0);
|
|
|
- items.setBillNo(tradingBox.getContractNo());
|
|
|
+ items.setBillNo(tradingBox.getSysNo());
|
|
|
items.setStockTime(tradingBox.getPurchaseDate());
|
|
|
//获取费用id
|
|
|
if (ObjectUtils.isNotNull(tradingBoxFees.getItemId())) {
|