Browse Source

更新文件 AppBookImplService.java

陈士柏 2 years ago
parent
commit
d185d232f0
1 changed files with 8 additions and 1 deletions
  1. 8 1
      mhotel/src/com/happy/service/impl/AppBookImplService.java

+ 8 - 1
mhotel/src/com/happy/service/impl/AppBookImplService.java

@@ -256,8 +256,15 @@ public class AppBookImplService implements AppBookService {
     @Override
     public String varificationHouse(String houseId, String startTime, String endTime, String houseOrderNumber) {
         House house = houseService.getById(houseId);
-        if (house == null)
+        if (house == null){
             return "无此房间,请重新查询";
+        }
+        if (house.getStatus()==0){
+            return "该房间已删除";
+        }
+        if (house.getStatus()==2){
+            return "该房间已停用";
+        }
         if (Func.checkNull(houseOrderNumber))
             houseOrderNumber = "0";