관리자 퍼블 입히기

This commit is contained in:
주수현
2025-06-20 09:26:07 +09:00
parent 6153f03e66
commit c8123527d9
5 changed files with 42 additions and 44 deletions

View File

@@ -42,6 +42,9 @@ class GetAdminsDao implements GetAdminsPortOut {
admins.stream()
.map(admin -> new GetAdmins(
admin.getId(),
admin.getName(),
admin.getPhone(),
admin.getRegionMainCodeName(),
admin.getCreatedBy(),
admin.getCreatedAt(),
admin.getUpdatedBy(),

View File

@@ -12,6 +12,9 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
public class GetAdmins implements AuditOutput {
private String id;
private String name;
private String phone;
private String regionMainCodeName;
private String createdBy;
private LocalDateTime createdAt;
private String updatedBy;

View File

@@ -7,10 +7,10 @@
SELECT
a.seq,
a.id AS id,
a.name,
COALESCE(a.name,'-') as name,
a.region_main_code,
u.code_text as region_main_code_name,
a.phone,
COALESCE(u.code_text,'-') as region_main_code_name,
COALESCE(a.phone,'-') as phone,
a.created_by,
a.created_at,
a.updated_by,