Skip to content

Commit

Permalink
[PBS-85][NguyenHCP] chore: update response for building controller
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhcp2004 committed Oct 30, 2024
1 parent 220c285 commit 78f3ae3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ApiResponse<BuildingResponse> updateBuilding(@PathVariable("buildingId") int bui
@RequestBody BuildingCreationRequest request) {
return ApiResponse.<BuildingResponse>builder()
.data(buildingService.updateBuilding(buildingId, request))
.message("Update building successfully")
.message("Cập nhật chi nhánh thành công")
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public interface BuildingRepository extends JpaRepository<Building, Integer> {
List<Building> searchByKeyword(String keyword);

@Query("SELECT b FROM Building b " +
"WHERE (b.address LIKE %:address%)")
"WHERE (b.address LIKE %:address%)" +
"ORDER BY b.createdAt DESC")
Page<Building> findFilteredBuildings(@Param("address") String address,
Pageable pageable);
}

0 comments on commit 78f3ae3

Please sign in to comment.