|
@@ -260,42 +260,6 @@ public class AppBookingAction extends ActionSupport implements ServletRequestAwa
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// /**
|
|
|
|
|
-// * 再次预订
|
|
|
|
|
-// *
|
|
|
|
|
-// * @return
|
|
|
|
|
-// */
|
|
|
|
|
-// public String reCreateOrder() {
|
|
|
|
|
-// // 插入订单数据到表中
|
|
|
|
|
-// JSONObject jsonObject = new JSONObject();
|
|
|
|
|
-// if (Func.checkNull(houseId) || Func.checkNull(startTime) || Func.checkNull(endTime)
|
|
|
|
|
-// || Func.checkNull(houseOrderNumber) || Func.checkNull(userName) || Func.checkNull(userPhone) || Func.checkNull(userId)) {
|
|
|
|
|
-// jsonObject.put(B.code, ResultStatusCode.BAD_REQUEST.getStatus());
|
|
|
|
|
-// jsonObject.put(B.message, ResultStatusCode.BAD_REQUEST.getMsg());
|
|
|
|
|
-// ResponseUtil.writeJson(ServletActionContext.getResponse(), jsonObject.toString());
|
|
|
|
|
-// return null;
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// // 将时间统一转化为 yyyy/MM/dd
|
|
|
|
|
-// String startDate = DateUtil.parseDateToStr((Func.parseDate(startTime)), DateUtil.Time_Formatter_Day);
|
|
|
|
|
-// String endDate = DateUtil.parseDateToStr((Func.parseDate(endTime)), DateUtil.Time_Formatter_Day);
|
|
|
|
|
-//
|
|
|
|
|
-// // 创建订单之前,先验证是否有房间
|
|
|
|
|
-// String backMessage = appBookService.varificationHouse(houseId, startDate, endDate);
|
|
|
|
|
-// if (Func.checkNull(backMessage)) {
|
|
|
|
|
-// jsonObject.put(B.code, ResultStatusCode.CANNTBOOKING.getStatus());
|
|
|
|
|
-// jsonObject.put(B.message, backMessage);
|
|
|
|
|
-// ResponseUtil.writeJson(ServletActionContext.getResponse(), jsonObject.toString());
|
|
|
|
|
-// return null;
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// appBookService.reCreateOrder(houseId, startTime, endTime, houseOrderNumber, userName, userPhone, userId);
|
|
|
|
|
-//
|
|
|
|
|
-// jsonObject.put(B.code, ResultStatusCode.OK.getStatus());
|
|
|
|
|
-// jsonObject.put(B.message, ResultStatusCode.OK.getMsg());
|
|
|
|
|
-// ResponseUtil.writeJson(ServletActionContext.getResponse(), jsonObject.toString());
|
|
|
|
|
-// return null;
|
|
|
|
|
-// }
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* bookingId 订单id
|
|
* bookingId 订单id
|