|
@@ -933,6 +933,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
.eq(PjOrder::getIsDeleted, 0)
|
|
.eq(PjOrder::getIsDeleted, 0)
|
|
|
.eq(PjOrder::getWhetherFinancing, "1")
|
|
.eq(PjOrder::getWhetherFinancing, "1")
|
|
|
.eq(PjOrder::getBsType, "RZCG")
|
|
.eq(PjOrder::getBsType, "RZCG")
|
|
|
|
|
+ .eq(PjOrder::getFundingPartyId, pjpfFunding.getFundingPartyId())
|
|
|
.ge(PjOrder::getBusinesDate, dateTime)
|
|
.ge(PjOrder::getBusinesDate, dateTime)
|
|
|
.apply("goods_total_ship_num > out_goods_total_ship_num")
|
|
.apply("goods_total_ship_num > out_goods_total_ship_num")
|
|
|
.orderByAsc(PjOrder::getBusinesDate)
|
|
.orderByAsc(PjOrder::getBusinesDate)
|
|
@@ -1341,6 +1342,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
List<PjOrder> orderList = orderMapper.selectList(new LambdaQueryWrapper<PjOrder>()
|
|
List<PjOrder> orderList = orderMapper.selectList(new LambdaQueryWrapper<PjOrder>()
|
|
|
.eq(PjOrder::getTenantId, AuthUtil.getTenantId())
|
|
.eq(PjOrder::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(PjOrder::getIsDeleted, 0)
|
|
.eq(PjOrder::getIsDeleted, 0)
|
|
|
|
|
+ .eq(PjOrder::getFundingPartyId, pjpfFunding.getFundingPartyId())
|
|
|
.eq(PjOrder::getWhetherFinancing, "1")
|
|
.eq(PjOrder::getWhetherFinancing, "1")
|
|
|
.eq(PjOrder::getBsType, "RZCG")
|
|
.eq(PjOrder::getBsType, "RZCG")
|
|
|
);
|
|
);
|
|
@@ -1360,7 +1362,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
orderItemsService.updateBatchById(orderItemsList);
|
|
orderItemsService.updateBatchById(orderItemsList);
|
|
|
- BigDecimal amount = itemsList.stream().map(PjShipItems::getSubTotalMoney)
|
|
|
|
|
|
|
+ BigDecimal amount = itemsList.stream().map(PjShipItems::getCostprie)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
pjpfFunding.setAvailableAmount(pjpfFunding.getAvailableAmount().add(amount));
|
|
pjpfFunding.setAvailableAmount(pjpfFunding.getAvailableAmount().add(amount));
|
|
|
PjpfFundingItem item = new PjpfFundingItem();
|
|
PjpfFundingItem item = new PjpfFundingItem();
|
|
@@ -1958,6 +1960,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
rwShip.setUpdateTime(new Date());
|
|
rwShip.setUpdateTime(new Date());
|
|
|
baseMapper.updateById(rwShip);
|
|
baseMapper.updateById(rwShip);
|
|
|
}
|
|
}
|
|
|
|
|
+ PjOrder order = orderMapper.selectById(ship.getOrdId());
|
|
|
if (!pjOrderItemsList.isEmpty()) {
|
|
if (!pjOrderItemsList.isEmpty()) {
|
|
|
//数量和
|
|
//数量和
|
|
|
BigDecimal goodsNum = pjOrderItemsList.stream().map(PjOrderItems::getGoodsNum).filter(Objects::nonNull)
|
|
BigDecimal goodsNum = pjOrderItemsList.stream().map(PjOrderItems::getGoodsNum).filter(Objects::nonNull)
|
|
@@ -1968,7 +1971,6 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
//发货金额和
|
|
//发货金额和
|
|
|
BigDecimal goodsTotalShipAmount = pjOrderItemsList.stream().map(PjOrderItems::getGoodsTotalShipAmount).filter(Objects::nonNull)
|
|
BigDecimal goodsTotalShipAmount = pjOrderItemsList.stream().map(PjOrderItems::getGoodsTotalShipAmount).filter(Objects::nonNull)
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
- PjOrder order = orderMapper.selectById(ship.getOrdId());
|
|
|
|
|
if (ObjectUtil.isNotEmpty(order)) {
|
|
if (ObjectUtil.isNotEmpty(order)) {
|
|
|
order.setGoodsTotalShipNum(sendNum);
|
|
order.setGoodsTotalShipNum(sendNum);
|
|
|
order.setGoodsTotalShipAmount(goodsTotalShipAmount);
|
|
order.setGoodsTotalShipAmount(goodsTotalShipAmount);
|
|
@@ -2019,6 +2021,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
List<PjOrder> orderList = orderMapper.selectList(new LambdaQueryWrapper<PjOrder>()
|
|
List<PjOrder> orderList = orderMapper.selectList(new LambdaQueryWrapper<PjOrder>()
|
|
|
.eq(PjOrder::getTenantId, AuthUtil.getTenantId())
|
|
.eq(PjOrder::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(PjOrder::getIsDeleted, 0)
|
|
.eq(PjOrder::getIsDeleted, 0)
|
|
|
|
|
+ .eq(PjOrder::getFundingPartyId, pjpfFunding.getFundingPartyId())
|
|
|
.eq(PjOrder::getWhetherFinancing, "1")
|
|
.eq(PjOrder::getWhetherFinancing, "1")
|
|
|
.eq(PjOrder::getBsType, "RZCG")
|
|
.eq(PjOrder::getBsType, "RZCG")
|
|
|
);
|
|
);
|
|
@@ -2610,6 +2613,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
.eq(PjOrder::getIsDeleted, 0)
|
|
.eq(PjOrder::getIsDeleted, 0)
|
|
|
.eq(PjOrder::getWhetherFinancing, "1")
|
|
.eq(PjOrder::getWhetherFinancing, "1")
|
|
|
.eq(PjOrder::getBsType, "RZCG")
|
|
.eq(PjOrder::getBsType, "RZCG")
|
|
|
|
|
+ .eq(PjOrder::getFundingPartyId, pjpfFunding.getFundingPartyId())
|
|
|
.ge(PjOrder::getBusinesDate, dateTime)
|
|
.ge(PjOrder::getBusinesDate, dateTime)
|
|
|
.apply("goods_total_ship_num > out_goods_total_ship_num")
|
|
.apply("goods_total_ship_num > out_goods_total_ship_num")
|
|
|
.orderByAsc(PjOrder::getBusinesDate)
|
|
.orderByAsc(PjOrder::getBusinesDate)
|