|
@@ -850,18 +850,31 @@ public class bookAction extends ActionSupport implements ServletRequestAware {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 定时任务
|
|
|
|
|
+ * 搞定超时未处理的手动接单数据
|
|
|
|
|
+ */
|
|
|
public void setBookStatus() throws Exception {
|
|
public void setBookStatus() throws Exception {
|
|
|
|
|
+
|
|
|
System.out.println("手动接单定时程序");
|
|
System.out.println("手动接单定时程序");
|
|
|
|
|
+
|
|
|
HotelDict respTime = hotelDictService.getById(1111111111);//响应时间
|
|
HotelDict respTime = hotelDictService.getById(1111111111);//响应时间
|
|
|
|
|
+
|
|
|
System.out.println("手动接单定时程序1");
|
|
System.out.println("手动接单定时程序1");
|
|
|
|
|
+
|
|
|
HotelDict operate = hotelDictService.getById(1000011002);//响应时间 1手动接单 2自动拒单
|
|
HotelDict operate = hotelDictService.getById(1000011002);//响应时间 1手动接单 2自动拒单
|
|
|
|
|
+
|
|
|
System.out.println("手动接单定时程序2");
|
|
System.out.println("手动接单定时程序2");
|
|
|
String dateTime = TimeExchange.TimeRangeI(TimeExchange.getTime(), Integer.valueOf(respTime.getName()), "yyyy-MM-dd HH:mm:ss");
|
|
String dateTime = TimeExchange.TimeRangeI(TimeExchange.getTime(), Integer.valueOf(respTime.getName()), "yyyy-MM-dd HH:mm:ss");
|
|
|
String sqlx = " and create_time <= '" + dateTime + "' and order_status = 2 and hotel_is_order = 2";
|
|
String sqlx = " and create_time <= '" + dateTime + "' and order_status = 2 and hotel_is_order = 2";
|
|
|
List<Booking> bookings = bookService.queryList(sqlx);
|
|
List<Booking> bookings = bookService.queryList(sqlx);
|
|
|
|
|
+
|
|
|
System.out.println("手动接单定时程序3:" + sqlx);
|
|
System.out.println("手动接单定时程序3:" + sqlx);
|
|
|
|
|
+
|
|
|
String result = bookings == null ? "" : bookings.stream().map(Booking::getOrderNum).collect(Collectors.joining());
|
|
String result = bookings == null ? "" : bookings.stream().map(Booking::getOrderNum).collect(Collectors.joining());
|
|
|
|
|
+
|
|
|
System.out.println("手动接单,订单编号:" + result + ";拼接条件:" + sqlx);
|
|
System.out.println("手动接单,订单编号:" + result + ";拼接条件:" + sqlx);
|
|
|
|
|
+
|
|
|
AtomicInteger n = new AtomicInteger();
|
|
AtomicInteger n = new AtomicInteger();
|
|
|
if ("1".equals(operate.getName())) {
|
|
if ("1".equals(operate.getName())) {
|
|
|
System.out.println("手动接单定时程序4");
|
|
System.out.println("手动接单定时程序4");
|