|
@@ -45,8 +45,6 @@
|
|
|
// public HouseService houseService;
|
|
// public HouseService houseService;
|
|
|
// @Resource
|
|
// @Resource
|
|
|
// public ConfigService configService;
|
|
// public ConfigService configService;
|
|
|
-// @Resource
|
|
|
|
|
-// public LogsService logsService;
|
|
|
|
|
//
|
|
//
|
|
|
// public String wxcode;
|
|
// public String wxcode;
|
|
|
// public String state;
|
|
// public String state;
|
|
@@ -330,7 +328,7 @@
|
|
|
// System.out.println("支付成功回调,订单号:"+order_num);
|
|
// System.out.println("支付成功回调,订单号:"+order_num);
|
|
|
// Booking booking = bookService.queryByOrder(order_num);
|
|
// Booking booking = bookService.queryByOrder(order_num);
|
|
|
// // 支付成功
|
|
// // 支付成功
|
|
|
-// if (result.getResult_code().equals("SUCCESS") && booking!=null && booking.getStatus().equals("1")) {
|
|
|
|
|
|
|
+// if (result.getResult_code().equals("SUCCESS") && booking!=null && booking.getOrderStatus().equals("1")) {
|
|
|
// int m = bookService.update_pay("2", order_num);
|
|
// int m = bookService.update_pay("2", order_num);
|
|
|
// if (m>0){
|
|
// if (m>0){
|
|
|
// String returnMsg = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";
|
|
// String returnMsg = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";
|
|
@@ -371,19 +369,19 @@
|
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
|
// return null;
|
|
// return null;
|
|
|
// }
|
|
// }
|
|
|
-// if (booking.getStatus().equals("1")){
|
|
|
|
|
|
|
+// if (booking.getOrderStatus().equals("1")){
|
|
|
// resultJson.put("code", 503);
|
|
// resultJson.put("code", 503);
|
|
|
// resultJson.put("message", "订单未支付不可申请退款");
|
|
// resultJson.put("message", "订单未支付不可申请退款");
|
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
|
// return null;
|
|
// return null;
|
|
|
// }
|
|
// }
|
|
|
-// if (booking.getStatus().equals("3")){
|
|
|
|
|
|
|
+// if (booking.getOrderStatus().equals("3")){
|
|
|
// resultJson.put("code", 503);
|
|
// resultJson.put("code", 503);
|
|
|
// resultJson.put("message", "已入住,请往前台办理");
|
|
// resultJson.put("message", "已入住,请往前台办理");
|
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
|
// return null;
|
|
// return null;
|
|
|
// }
|
|
// }
|
|
|
-// if (booking.getStatus().equals("4") || booking.getStatus().equals("5") || booking.getStatus().equals("6")){
|
|
|
|
|
|
|
+// if (booking.getOrderStatus().equals("4") || booking.getOrderStatus().equals("5") || booking.getOrderStatus().equals("6")){
|
|
|
// resultJson.put("code", 503);
|
|
// resultJson.put("code", 503);
|
|
|
// resultJson.put("message", "订单已完成,请往前台办理");
|
|
// resultJson.put("message", "订单已完成,请往前台办理");
|
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
@@ -450,12 +448,6 @@
|
|
|
// return null;
|
|
// return null;
|
|
|
// }
|
|
// }
|
|
|
// bookService.update_pay("7", order_num); // 退款中
|
|
// bookService.update_pay("7", order_num); // 退款中
|
|
|
-// Logs logs = new Logs();
|
|
|
|
|
-// logs.setAdmin_name(booking.getUser_name());
|
|
|
|
|
-// logs.setOrder_num(booking.getOrder_num());
|
|
|
|
|
-// logs.setCreate_time(TimeExchange.getTime());
|
|
|
|
|
-// logs.setRecord1("用户自己申请退款,时间:"+TimeExchange.getTime());
|
|
|
|
|
-// logsService.insert(logs);
|
|
|
|
|
// resultJson.put("code", 200);
|
|
// resultJson.put("code", 200);
|
|
|
// resultJson.put("message", "退款申请已提交,请稍候查询");
|
|
// resultJson.put("message", "退款申请已提交,请稍候查询");
|
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|
|
// ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
|