提交 2ebedb6a authored 作者: huyufan's avatar huyufan

Merge remote-tracking branch 'origin/v10.7_borrowing_and_repayment_20240118'…

Merge remote-tracking branch 'origin/v10.7_borrowing_and_repayment_20240118' into v10.7_borrowing_and_repayment_20240118
...@@ -26,7 +26,7 @@ public enum OwnerLoanAccountApproveEnum { ...@@ -26,7 +26,7 @@ public enum OwnerLoanAccountApproveEnum {
return Arrays.stream(values()).filter(e -> Objects.equals(e.code , code)).findFirst(); return Arrays.stream(values()).filter(e -> Objects.equals(e.code , code)).findFirst();
} }
public static String getMsgByCode(int code) { public static String getMsgByCode(Integer code) {
return getByCode(code).map(OwnerLoanAccountApproveEnum.Status::getMsg).orElse(null); return getByCode(code).map(OwnerLoanAccountApproveEnum.Status::getMsg).orElse(null);
} }
} }
......
...@@ -27,7 +27,7 @@ public enum OwnerPaymentEnum { ...@@ -27,7 +27,7 @@ public enum OwnerPaymentEnum {
return Arrays.stream(values()).filter(e -> Objects.equals(e.code , code)).findFirst(); return Arrays.stream(values()).filter(e -> Objects.equals(e.code , code)).findFirst();
} }
public static String getMsgByCode(int code) { public static String getMsgByCode(Integer code) {
return getByCode(code).map(OwnerPaymentEnum.Status::getMsg).orElse(null); return getByCode(code).map(OwnerPaymentEnum.Status::getMsg).orElse(null);
} }
} }
......
...@@ -43,11 +43,11 @@ public enum OwnerRePaymentEnum { ...@@ -43,11 +43,11 @@ public enum OwnerRePaymentEnum {
private final Integer code; private final Integer code;
private final String msg; private final String msg;
public static Optional<OwnerRePaymentEnum.Channel> getByCode(int code) { public static Optional<OwnerRePaymentEnum.Channel> getByCode(Integer code) {
return Arrays.stream(values()).filter(e -> e.code == code).findFirst(); return Arrays.stream(values()).filter(e -> Objects.equals(e.code , code)).findFirst();
} }
public static String getMsgByCode(int code) { public static String getMsgByCode(Integer code) {
return getByCode(code).map(OwnerRePaymentEnum.Channel::getMsg).orElse(null); return getByCode(code).map(OwnerRePaymentEnum.Channel::getMsg).orElse(null);
} }
} }
...@@ -64,11 +64,11 @@ public enum OwnerRePaymentEnum { ...@@ -64,11 +64,11 @@ public enum OwnerRePaymentEnum {
private final Integer code; private final Integer code;
private final String msg; private final String msg;
public static Optional<OwnerRePaymentEnum.BeOverdue> getByCode(int code) { public static Optional<OwnerRePaymentEnum.BeOverdue> getByCode(Integer code) {
return Arrays.stream(values()).filter(e -> e.code == code).findFirst(); return Arrays.stream(values()).filter(e -> Objects.equals(e.code , code)).findFirst();
} }
public static String getMsgByCode(int code) { public static String getMsgByCode(Integer code) {
return getByCode(code).map(OwnerRePaymentEnum.BeOverdue::getMsg).orElse(null); return getByCode(code).map(OwnerRePaymentEnum.BeOverdue::getMsg).orElse(null);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论