Pu Zhibing
2025-04-17 f4e12a183070e9fc1db174dfb7f1c9a59f7763a1
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);
    }