내정보, 비밀번호 확인, 내정보 수정 : UX에 따라 수정 필요.
This commit is contained in:
@@ -8,5 +8,5 @@ import lombok.RequiredArgsConstructor;
|
||||
public enum UiCodeType {
|
||||
REGION_MAIN("code.region.main"),
|
||||
REGION_SUB("code.region.sub");
|
||||
private final String desc;
|
||||
private final String code;
|
||||
}
|
||||
|
||||
@@ -39,4 +39,78 @@ public class GetHousehold {
|
||||
private LocalDateTime updatedAt;
|
||||
private String updatedBy;
|
||||
private Set<CoreRole> roles;
|
||||
|
||||
public String getPhone1() {
|
||||
if(phone==null || !phone.contains("-")){
|
||||
return "";
|
||||
} else {
|
||||
String[] phones = phone.split("-");
|
||||
if(phones.length > 0){
|
||||
return phones[0];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public String getPhone2() {
|
||||
if(phone==null || !phone.contains("-")){
|
||||
return "";
|
||||
} else {
|
||||
String[] phones = phone.split("-");
|
||||
if(phones.length > 1){
|
||||
return phones[1];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public String getPhone3() {
|
||||
if(phone==null || !phone.contains("-")){
|
||||
return "";
|
||||
} else {
|
||||
String[] phones = phone.split("-");
|
||||
if(phones.length > 2){
|
||||
return phones[2];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public String getTel1() {
|
||||
if(tel==null || !tel.contains("-")){
|
||||
return "";
|
||||
} else {
|
||||
String[] tels = tel.split("-");
|
||||
if(tels.length > 0){
|
||||
return tels[0];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public String getTel2() {
|
||||
if(tel==null || !tel.contains("-")){
|
||||
return "";
|
||||
} else {
|
||||
String[] tels = tel.split("-");
|
||||
if(tels.length > 1){
|
||||
return tels[1];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
public String getTel3() {
|
||||
if(tel==null || !tel.contains("-")){
|
||||
return "";
|
||||
} else {
|
||||
String[] tels = tel.split("-");
|
||||
if(tels.length > 2){
|
||||
return tels[2];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,10 +13,11 @@ import lombok.Setter;
|
||||
@AllArgsConstructor
|
||||
public class UpdateFrontHouseholdCmd extends AuditCommand {
|
||||
private Long seq;
|
||||
private String householdNum;
|
||||
private String ownerName;
|
||||
private Integer ownerAge;
|
||||
private String tel;
|
||||
private String phone;
|
||||
private String regionMainCode;
|
||||
private String regionSubCode;
|
||||
private String address;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
owner_age = #{ownerAge},
|
||||
tel = #{tel},
|
||||
phone = #{phone},
|
||||
region_main_code = #{regionMainCode},
|
||||
region_sub_code = #{regionSubCode},
|
||||
address = #{address},
|
||||
<include refid="common.fields.UpdateBaseSet" />
|
||||
WHERE seq = ${seq}
|
||||
|
||||
Reference in New Issue
Block a user