optimize codes

This commit is contained in:
Mauve
2026-09-20 12:29:39 +08:00
parent 67e8e056ba
commit 41e6b9bb29
21 changed files with 411 additions and 338 deletions
@@ -865,7 +865,7 @@ public class TodoService {
JSONObject errors = new JSONObject();
if (!modifyBookingResponse.containsKey("message")) {
String bookComment = operaService.makeChangeDateComment(booking);
CfgProperties property = propertyDao.getById(booking.getPropertyId());
CfgProperties property = propertyDao.findById(booking.getPropertyId()).orElse(null);
GuestRequestsRequest changeDateCommentRequest = new GuestRequestsRequest();
JSONObject changeDateCommentResponse = new JSONObject();
changeDateCommentRequest.setActionType("ADD");