From 0193e3a62209bd500b9b5184bffc331e19f3a388 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期二, 14 一月 2025 20:31:46 +0800 Subject: [PATCH] 补充 --- ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/taxi/TOrderTaxiController.java | 26 ++++++-------------------- 1 files changed, 6 insertions(+), 20 deletions(-) diff --git a/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/taxi/TOrderTaxiController.java b/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/taxi/TOrderTaxiController.java index 6daf66c..4dc5037 100644 --- a/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/taxi/TOrderTaxiController.java +++ b/ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/taxi/TOrderTaxiController.java @@ -113,24 +113,13 @@ .eq("userType", 6) .eq("payState", 2) .last("LIMIT 1")); - if (tPubTransactionDetails==null){ - model.addAttribute("companyMoney",""); - model.addAttribute("driverMoney",""); - - }else{ - model.addAttribute("companyMoney",tPubTransactionDetails.getMoney()); - model.addAttribute("driverMoney",new BigDecimal(tOrderTaxi.get("payMoney").toString()).subtract(tPubTransactionDetails.getMoney())); - - + model.addAttribute("companyMoney",tPubTransactionDetails.getMoney()); + model.addAttribute("driverMoney",new BigDecimal(tOrderTaxi.get("payMoney").toString()).subtract(tPubTransactionDetails.getMoney())); + if(tOrderTaxi.get("payManner").equals("1")){ + model.addAttribute("payMannerStr","线上收款"); + }else { + model.addAttribute("payMannerStr","计费打表"); } - if (tOrderTaxi.get("payManner")!=null){ - if(tOrderTaxi.get("payManner").equals("1")){ - model.addAttribute("payMannerStr","线上收款"); - }else { - model.addAttribute("payMannerStr","计费打表"); - } - } - LogObjectHolder.me().set(tOrderTaxi); return PREFIX + "tOrderTaxi_edit.html"; } @@ -202,9 +191,6 @@ * @param orderDetailId * @return */ - public static String URL = "https://yingyan.baidu.com/api/v3/track/gettrack?"; - - public static String AK = "WQhfsluNzEeUHUxoH4jc4JiCQOXw4Mnx"; @ResponseBody @RequestMapping(value = "/getOrderTrack", method = RequestMethod.POST) public ResultUtil getOrderTrack(String orderDetailId){ -- Gitblit v1.7.1