更新10.16
This commit is contained in:
parent
e28039b063
commit
b78e2a0f1d
@ -524,6 +524,15 @@ public class FleetInfoServiceImpl extends ServiceImpl<FleetInfoMapper, FleetInfo
|
|||||||
fleetInfo.setGiveAmount(fleetInfo.getGiveAmount() + (refundMoney * give));
|
fleetInfo.setGiveAmount(fleetInfo.getGiveAmount() + (refundMoney * give));
|
||||||
//将退款金额修改回去
|
//将退款金额修改回去
|
||||||
baseMapper.updateById(fleetInfo);
|
baseMapper.updateById(fleetInfo);
|
||||||
|
//修改车队成员的余额
|
||||||
|
FleetMember fleetMember = fleetMemberMapper.selectOne(new LambdaQueryWrapper<FleetMember>()
|
||||||
|
.eq(FleetMember::getUserId, allOrderInfo.getUserId()));
|
||||||
|
fleetMember.setRemainingCreditLimit(fleetMember.getRemainingCreditLimit() + refundMoney);
|
||||||
|
fleetMember.setUsedCreditLimit(fleetMember.getUsedCreditLimit() - refundMoney);
|
||||||
|
fleetMember.setUpdateBy(nowAccountInfo.getStaffId().toString());
|
||||||
|
fleetMember.setUpdateTime(DateUtil.date());
|
||||||
|
//更新余额
|
||||||
|
fleetMemberMapper.updateById(fleetMember);
|
||||||
//将车队订单表改为退款
|
//将车队订单表改为退款
|
||||||
fleetConsumeRecord.setOrderStatus("refund");
|
fleetConsumeRecord.setOrderStatus("refund");
|
||||||
fleetConsumeRecord.setUpdateTime(DateUtil.date());
|
fleetConsumeRecord.setUpdateTime(DateUtil.date());
|
||||||
|
Loading…
Reference in New Issue
Block a user