Skip to content

Commit

Permalink
Merge pull request #122 from 9oormthon-univ/feature/#111
Browse files Browse the repository at this point in the history
🩹 [FIX] 필드 이름 수정
  • Loading branch information
20210815 authored Dec 4, 2024
2 parents 023f04d + 60476c2 commit a2fef3e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public ResponseEntity<ResponseDTO> connectAPI(@RequestBody RequestUserIdentityDT
.loginType("6")
.loginTypeLevel("1")
.telecom("")
.phoneNo(requestUserIdentityDTO.getPhoneNo())
.loginUserName(requestUserIdentityDTO.getUserName())
.phoneNo(requestUserIdentityDTO.getPhoneNum())
.loginUserName(requestUserIdentityDTO.getNickname())
.loginIdentity(requestUserIdentityDTO.getIdentity())
.loginBirthDate("")
.birthDate("")
.identity(requestUserIdentityDTO.getIdentity())
.userName(requestUserIdentityDTO.getUserName())
.userName(requestUserIdentityDTO.getNickname())
.issueDate(requestUserIdentityDTO.getIssueDate())
.identityEncYn("")
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
@Getter
public class RequestUserIdentityDTO {
//핸드폰 번호
private String phoneNo;
private String phoneNum;
//이름
private String userName;
private String nickname;
//발급일자
private String issueDate;
//주민번호
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ public interface VolunteerRepository extends JpaRepository<Volunteer, Long> {
List<Volunteer> findByVolunteerOrCaregiver(@Param("volunteer") User volunteer);

List<Volunteer> findByVolunteerAndHasMemoFalse(User writer);

@Query("SELECT v FROM Volunteer v " +
"WHERE v.caregiver IN (SELECT j.user FROM JoinGroup j WHERE j.group.id = :groupId) " +
"AND v.volunteer IN (SELECT j.user FROM JoinGroup j WHERE j.group.id = :groupId)")
List<Volunteer> findVolunteersInGroup(@Param("groupId") Long groupId);
}

0 comments on commit a2fef3e

Please sign in to comment.