Air
2024-11-04 a1f06d31b7b4cac569c34bdfbb68de77f2858ffe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package com.nova.sankuai.domain.api.yixin.vo;
 
import com.nova.sankuai.domain.api.yangqianguan.vo.RepayDetailPlanVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
/**
 * @author weikangdi
 * @create 2022/5/11
 */
@ApiModel(value = "还款计划Vo")
@Data
public class YxpkgListVo {
 
    @ApiModelProperty(value = "当期结清标识-已结清")
    public static final String FLAG_CLEAN = "CLOSE";
    @ApiModelProperty(value = "当期结清标识-未结清")
    public static final String FLAG_NOT_CLEAN = "RUNNING";
 
    @ApiModelProperty(value = "计划状态-正常")
    public static final String STATUS_NORMAL = "N";
    @ApiModelProperty(value = "计划状态-宽限期")
    public static final String STATUS_GRACE = "G";
    @ApiModelProperty(value = "计划状态-逾期")
    public static final String STATUS_OVERDUE = "O";
    @ApiModelProperty(value = "计划状态-呆滞(逾期90天以上)")
    public static final String STATUS_SLACKEN = "L";
    @ApiModelProperty(value = "计划状态-呆账(逾期180天以上)")
    public static final String STATUS_BAD = "B";
 
    @ApiModelProperty(value = "还款期数")
    private String repayTerm;
 
    @ApiModelProperty(value = "账单日")
    private String repayDate;
 
    @ApiModelProperty(value = "还款成功时间")
    private String datePay;
 
    @ApiModelProperty(value = "本期应还总金额")
    private String totalAmt;
 
    @ApiModelProperty(value = "本期应还本金")
    private String termRetPrin;
 
    @ApiModelProperty(value = "本期已还本金")
    private String prinAmt;
 
    @ApiModelProperty(value = "本期应还利息")
    private String termRetInt;
 
    @ApiModelProperty(value = "本期已还利息")
    private String intAmt;
 
    @ApiModelProperty(value = "本期应还罚息")
    private String termRetFint;
 
    @ApiModelProperty(value = "本期已还罚息")
    private String termFintFinish;
 
    /**
     * 计划状态可选值:N - 正常,G - 宽限期,O - 逾期,L - 呆滞(逾期90天以上),
     * B - 呆账(逾期180天以上)。若无呆滞呆账状态则作逾期状态返回
     */
    @ApiModelProperty(value = "计划状态")
    private String termStatus;
 
    /**
     * 当期结清标识。可选值:RUNNING - 未结 ,CLOSE - 已结。
     */
    @ApiModelProperty(value = "本期结清标志")
    private String settleFlag;
 
    @ApiModelProperty(value = "本次应还服务费")
    private String serviceReFee;
 
    @ApiModelProperty(value = "本次已还服务费")
    private String serviceFee;
 
    @ApiModelProperty(value = "本次应还融单费")
    private String guarantorReAmt;
 
    @ApiModelProperty(value = "本次已还融单费")
    private String guarantorAmt;
 
    @ApiModelProperty(value = "本次应还资产分账")
    private String speaccountRe;
 
    @ApiModelProperty(value = "本次已还资产分账")
    private String speaccount;
 
    @ApiModelProperty(value = "备注信息")
    private String remark;
 
    public Integer parseYqgStatus() {
        //已结清
        if (FLAG_CLEAN.equals(this.settleFlag)) {
            return RepayDetailPlanVo.STATUS_REPAID;
        } else {
            if (STATUS_NORMAL.equals(this.getTermStatus())) {
                //正常-未到期
                return RepayDetailPlanVo.STATUS_NORMAL;
            } else {
                return RepayDetailPlanVo.STATUS_OVERDUE;
            }
        }
    }
 
 
}