Bläddra i källkod

修改默认值

raojiaolong@163.com 2 år sedan
förälder
incheckning
653e0e2b45
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      mhotel/src/com/happy/action/hotelAction.java

+ 2 - 1
mhotel/src/com/happy/action/hotelAction.java

@@ -190,7 +190,7 @@ public class hotelAction extends ActionSupport implements ServletRequestAware {
             hotelEto.setHstatus(1);
             hotelEto.setHstatus(1);
             hotelEto.setIsCanorder(1);
             hotelEto.setIsCanorder(1);
             hotelEto.setIsOrder(1);
             hotelEto.setIsOrder(1);
-            hotelEto.setIsCanorder(1);
+            hotelEto.setIsCheckout(1);
         }
         }
         if(adminManager == null && hotel == null){
         if(adminManager == null && hotel == null){
             resultJson.put("message", "未查到数据请检查参数");
             resultJson.put("message", "未查到数据请检查参数");
@@ -198,6 +198,7 @@ public class hotelAction extends ActionSupport implements ServletRequestAware {
             ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
             ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
             return null;
             return null;
         }
         }
+        hotelEto.setId(Math.toIntExact(UUIDUtil.generateID()));
         resultJson.put("message", "查询成功");
         resultJson.put("message", "查询成功");
         resultJson.put("code", 200);
         resultJson.put("code", 200);
         resultJson.put("data", hotelEto);
         resultJson.put("data", hotelEto);