From 0f8dce61fdc6cc174ab891e9867934324df2e489 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期五, 21 三月 2025 22:05:37 +0800
Subject: [PATCH] 提现管理
---
ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java b/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java
index 49b1d4b..37c7ed3 100644
--- a/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java
+++ b/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TPubWithdrawalController.java
@@ -7,7 +7,9 @@
import com.stylefeng.guns.core.util.SinataUtil;
import com.stylefeng.guns.modular.system.model.TComplaint;
import com.stylefeng.guns.modular.system.model.TSystemNotice;
+import com.stylefeng.guns.modular.system.model.TWithdrawal;
import com.stylefeng.guns.modular.system.service.ITSystemNoticeService;
+import com.stylefeng.guns.modular.system.service.ITWithdrawalService;
import com.stylefeng.guns.modular.system.util.HttpRequestUtil;
import com.stylefeng.guns.modular.system.util.PushURL;
import org.springframework.stereotype.Controller;
@@ -21,6 +23,7 @@
import com.stylefeng.guns.modular.system.model.TPubWithdrawal;
import com.stylefeng.guns.modular.system.service.ITPubWithdrawalService;
+import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
@@ -39,6 +42,7 @@
@Autowired
private ITPubWithdrawalService tPubWithdrawalService;
+
@Autowired
private ITSystemNoticeService tSystemNoticeService;
@@ -64,14 +68,23 @@
model.addAttribute("str",str);
return "/system/tComplaint/lookDetail.html";
}
-
+ @Autowired
+ private ITWithdrawalService withdrawalService;
/**
* 跳转到立即处理页面
*/
@RequestMapping("/tPubWithdrawal_immediately/{tPubWithdrawalId}")
public String tPubWithdrawalUpdate(@PathVariable Integer tPubWithdrawalId, Model model) {
- model.addAttribute("tPubWithdrawalId",tPubWithdrawalId);
- return PREFIX + "tPubWithdrawal_immediately.html";
+ TWithdrawal tWithdrawal = withdrawalService.selectById(tPubWithdrawalId);
+ tWithdrawal.setWithdrawalTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm").format(tWithdrawal.getWithdrawalTime()));
+ tWithdrawal.setWithdrawalTypeStr(tWithdrawal.getWithdrawalType()==1?"支付宝":"银行卡");
+ model.addAttribute("item",tWithdrawal);
+ LogObjectHolder.me().set(tWithdrawal);
+ if(tWithdrawal.getStatus() == 1){
+ return PREFIX + "tWithdrawal_edit.html";
+ }else {
+ return PREFIX + "tWithdrawal_detail.html";
+ }
}
/**
@@ -81,7 +94,7 @@
@ResponseBody
public Object list(String insertTime,
String name,
- Integer withdrawalType) {
+ Integer status) {
String beginTime = null;
String endTime = null;
if (SinataUtil.isNotEmpty(insertTime)){
@@ -93,7 +106,7 @@
if (ShiroKit.getUser().getRoleType() != 1){
page.setRecords(null);
}else{
- page.setRecords(tPubWithdrawalService.getWithdrawalList(page,beginTime,endTime,name,withdrawalType));
+ page.setRecords(tPubWithdrawalService.getWithdrawalList(page,beginTime,endTime,name,status));
}
return super.packForBT(page);
}
--
Gitblit v1.7.1