|
|
@@ -373,15 +373,6 @@ public class AppBookingAction extends ActionSupport implements ServletRequestAwa
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- //是否能取消订单(1是 2否)
|
|
|
- if (Func.parseInt(book.getHotelIsCanorder()) == 2)
|
|
|
- {
|
|
|
- jsonObject.put(B.code, ResultStatusCode.BAD_REQUEST.getStatus());
|
|
|
- jsonObject.put(B.message, "商家设置不可取消订单,请联系商家");
|
|
|
- ResponseUtil.writeJson(ServletActionContext.getResponse(), jsonObject.toString());
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
AdminManager adminManager = adminManagerService.getById(Func.parseInt(book.getHotelManagerId()));
|
|
|
|
|
|
//1待支付,2已支付,3待入住,4已入住,5已消费,6支付超时,7已取消,8已退单,9已退款,10退款中
|
|
|
@@ -410,6 +401,15 @@ public class AppBookingAction extends ActionSupport implements ServletRequestAwa
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //是否能取消订单(1是 2否)
|
|
|
+ if (Func.parseInt(book.getHotelIsCanorder()) == 2)
|
|
|
+ {
|
|
|
+ jsonObject.put(B.code, ResultStatusCode.BAD_REQUEST.getStatus());
|
|
|
+ jsonObject.put(B.message, "商家设置不可取消订单,请联系商家");
|
|
|
+ ResponseUtil.writeJson(ServletActionContext.getResponse(), jsonObject.toString());
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
Users users = userService.queryByUserId(book.getCreateUserid()); // 用户信息
|
|
|
if (users == null) {
|
|
|
jsonObject.put(B.code, ResultStatusCode.BAD_REQUEST.getStatus());
|