From cc9b0b52d576dc87b1677a0432c33906a747829a Mon Sep 17 00:00:00 2001 From: yanghb <yanghb> Date: 星期五, 21 四月 2023 11:25:00 +0800 Subject: [PATCH] 代码调整 --- ManagementTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java | 21 ++++++++++----------- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/ManagementTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java b/ManagementTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java index b38e6a0..49b1d4b 100644 --- a/ManagementTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java +++ b/ManagementTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java @@ -10,12 +10,14 @@ import com.stylefeng.guns.modular.system.service.ITSystemNoticeService; import com.stylefeng.guns.modular.system.util.HttpRequestUtil; import com.stylefeng.guns.modular.system.util.PushURL; -import com.stylefeng.guns.modular.system.util.ResultUtil; import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.PathVariable; import org.springframework.beans.factory.annotation.Autowired; import com.stylefeng.guns.core.log.LogObjectHolder; +import org.springframework.web.bind.annotation.RequestParam; import com.stylefeng.guns.modular.system.model.TPubWithdrawal; import com.stylefeng.guns.modular.system.service.ITPubWithdrawalService; @@ -114,7 +116,7 @@ public Object immediately(@RequestParam Integer id,@RequestParam Integer state,@RequestParam String remark) { TPubWithdrawal tPubWithdrawal = tPubWithdrawalService.selectById(id); if (SinataUtil.isNotEmpty(tPubWithdrawal)){ - tPubWithdrawal.setState(state); //调用接口修改状态 +// tPubWithdrawal.setState(state); //调用接口修改状态 tPubWithdrawal.setRemark(remark); tPubWithdrawal.setHandleTime(new Date()); @@ -126,11 +128,11 @@ } tPubWithdrawalService.updateById(tPubWithdrawal); -// Map<String,String> map = new HashMap<>(); -// map.put("id", String.valueOf(tPubWithdrawal.getId())); -// map.put("state", String.valueOf(stateObj)); -// String result = HttpRequestUtil.postRequest(PushURL.withdraw_auth_url, map); -// System.out.println("提现审核接口 :【recordId="+tPubWithdrawal.getId().toString()+"】,调用接口:"+result); + Map<String,String> map = new HashMap<>(); + map.put("id", String.valueOf(tPubWithdrawal.getId())); + map.put("state", String.valueOf(stateObj)); + String result = HttpRequestUtil.postRequest(PushURL.withdraw_auth_url, map); + System.out.println("提现审核接口 :【recordId="+tPubWithdrawal.getId().toString()+"】,调用接口:"+result); //增加系统消息 TSystemNotice notice = new TSystemNotice(); @@ -163,7 +165,4 @@ public Object detail(@PathVariable("tPubWithdrawalId") Integer tPubWithdrawalId) { return tPubWithdrawalService.selectById(tPubWithdrawalId); } - - - } -- Gitblit v1.7.1