LAPTOP-FO2T5SIU\35838 месяцев назад: 6
Родитель
Сommit
d17bf3b642

+ 6 - 0
pro-base/src/main/java/com/idea/customerManagement/service/RoomSelectionInfoService.java

@@ -136,8 +136,14 @@ public class RoomSelectionInfoService implements BaseService<RoomSelectionInfo,
      * @param customerManagementId
      * @return
      */
+    @Transactional
     public int submit(String houseIds, String customerManagementId, String userId) {
 
+        ParkRoom originRoom = parkRoomMapper.selectByPrimaryKey(houseIds);
+        if(originRoom.getIsChoose() == 1){
+            throw new RuntimeException("该房间已被选择!!!");
+        }
+        
         String groupId = "";
         String discId = "";
         CustomerManagement customerManagement = customerManagementMapper.selectByPrimaryKey(customerManagementId);