设置编号

This commit is contained in:
qjq
2024-11-18 16:49:24 +08:00
parent 836f7d41ec
commit a1fc384c69

View File

@ -202,7 +202,10 @@ public class BillingServiceImpl implements BillingService {
.map(CardDO::getChangeMoney)
.filter(Objects::nonNull)
.reduce(BigDecimal.ZERO, BigDecimal::add);
moneyByUserIds.forEach(f-> f.setBillingExist(BillingStatusEnum.BILLING_INVOICING.getCode()));
moneyByUserIds.forEach(f-> {
f.setBillingExist(BillingStatusEnum.BILLING_INVOICING.getCode());
f.setBillingNum(billing.getId());
});
cardMapper.updateBatch(moneyByUserIds);
billing.setBillingMoney(totalMoney);
billing.setOrderId(JSONUtil.toJsonStr(createReqVO.getOrderId()));