관리자 퍼블 입히기
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user