From ee9d454e8f4fbdc82945c6402e8457fc4a471e0e Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期四, 16 一月 2025 21:30:15 +0800 Subject: [PATCH] 管理后台bug修改 --- ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TWithdrawalController.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TWithdrawalController.java b/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TWithdrawalController.java index 02c717e..b5dc20f 100644 --- a/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TWithdrawalController.java +++ b/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TWithdrawalController.java @@ -1,11 +1,16 @@ package com.stylefeng.guns.modular.system.controller.general; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.plugins.Page; import com.stylefeng.guns.core.base.controller.BaseController; import com.stylefeng.guns.core.common.constant.factory.PageFactory; import com.stylefeng.guns.core.log.LogObjectHolder; import com.stylefeng.guns.core.util.SinataUtil; import com.stylefeng.guns.modular.system.controller.util.ExcelUtil; +import com.stylefeng.guns.modular.system.controller.util.HttpUtils; +import com.stylefeng.guns.modular.system.model.TDriver; import com.stylefeng.guns.modular.system.model.TWithdrawal; import com.stylefeng.guns.modular.system.service.ITDriverService; import com.stylefeng.guns.modular.system.service.ITWithdrawalService; @@ -131,6 +136,12 @@ if(withdrawal.getStatus() == 3){ withdrawal.setRemark(withdrawal.getRemark()); + TWithdrawal tWithdrawal = withdrawalService.selectById(withdrawal.getId()); + TDriver driver = driverService.selectById(tWithdrawal.getDriverId()); + BigDecimal balance = driver.getBalance(); + BigDecimal withdrawalMoney = tWithdrawal.getWithdrawalMoney(); + driver.setBalance(balance.add(withdrawalMoney)); + driverService.updateById(driver); } withdrawalService.updateById(withdrawal); -- Gitblit v1.7.1