fix:功能优化,增加最近还款日期。
This commit is contained in:
@@ -4,6 +4,9 @@ import com.ruoyi.invest.domain.InstallmentHistory;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 网贷及分期历史Vo对象 installment_history
|
* 网贷及分期历史Vo对象 installment_history
|
||||||
*
|
*
|
||||||
@@ -22,4 +25,7 @@ public class InstallmentHistoryVo extends InstallmentHistory
|
|||||||
|
|
||||||
@ApiModelProperty(value="银行卡名称卡号)")
|
@ApiModelProperty(value="银行卡名称卡号)")
|
||||||
private String bankNameCode;
|
private String bankNameCode;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="最近还款日)")
|
||||||
|
private Date repaymentDate;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="balance" column="balance" />
|
<result property="balance" column="balance" />
|
||||||
<result property="bankName" column="bank_name" />
|
<result property="bankName" column="bank_name" />
|
||||||
<result property="bankCode" column="bank_code" />
|
<result property="bankCode" column="bank_code" />
|
||||||
|
<result property="repaymentDate" column="repayment_date" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectInstallmentHistoryVo">
|
<sql id="selectInstallmentHistoryVo">
|
||||||
@@ -53,6 +53,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
ihd.installment_history_id = a.id
|
ihd.installment_history_id = a.id
|
||||||
and ihd .posting_state = '0'
|
and ihd .posting_state = '0'
|
||||||
) as balance,
|
) as balance,
|
||||||
|
(
|
||||||
|
select
|
||||||
|
min(d.repayment_date)
|
||||||
|
from
|
||||||
|
installment_history_detail d
|
||||||
|
where
|
||||||
|
d.installment_history_id = a.id
|
||||||
|
and d.posting_state = '0')
|
||||||
|
as repayment_date,
|
||||||
a.repaid_period,
|
a.repaid_period,
|
||||||
a.total_interest,
|
a.total_interest,
|
||||||
a.interest_rate,
|
a.interest_rate,
|
||||||
|
|||||||
Reference in New Issue
Block a user