提交 7a9288cd authored 作者: liuhaiquan's avatar liuhaiquan

货主借款账户审核列表增加审核状态字段

上级 3f3e49ec
......@@ -45,6 +45,14 @@ public enum OwnerAccountEnum {
private final Integer code;
private final String msg;
public static Optional<OwnerAccountEnum.TopUpStatus> getByCode(int code) {
return Arrays.stream(values()).filter(e -> e.code == code).findFirst();
}
public static String getMsgByCode(int code) {
return getByCode(code).map(OwnerAccountEnum.TopUpStatus::getMsg).orElse(null);
}
}
@Getter
......
......@@ -43,6 +43,14 @@ public class OwnerLoanAccountApproveVO {
@ApiModelProperty("待审批 10,审批成功 20,审批拒绝 30")
private Integer status;
@ApiModelProperty("待审批 审批成功 审批拒绝 ")
private String statusMsg;
public String getStatusMsg(){
return OwnerAccountEnum.TopUpStatus.getMsgByCode(status);
}
@ApiModelProperty("审批时间")
private String approveTime;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论