夏文涛 2 years ago
parent
commit
d2febc30ae
1 changed files with 13 additions and 0 deletions
  1. 13 0
      mhotel/src/com/happy/action/bookAction.java

+ 13 - 0
mhotel/src/com/happy/action/bookAction.java

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