fix: 分期账单,新增收款账户字段。

This commit is contained in:
tianyongbao
2024-08-19 16:19:42 +08:00
parent c301983dbb
commit a70b6db6f7
4 changed files with 29 additions and 2 deletions

View File

@@ -108,6 +108,12 @@ public class InstallmentHistory extends BaseEntity
@Excel(name = "计算利率") @Excel(name = "计算利率")
private String calculateInterestRate; private String calculateInterestRate;
/** 收款账户 */
@ApiModelProperty(value="收款账户)")
@NotNull(message="收款账户")
@Excel(name = "收款账户")
private Long receivingAccountId;
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -133,6 +139,7 @@ public class InstallmentHistory extends BaseEntity
.append("remark", getRemark()) .append("remark", getRemark())
.append("balance", getBalance()) .append("balance", getBalance())
.append("calculateInterestRate", getCalculateInterestRate()) .append("calculateInterestRate", getCalculateInterestRate())
.append("receivingAccountId", getReceivingAccountId())
.toString(); .toString();
} }
} }

View File

@@ -43,4 +43,5 @@ public class InstallmentHistoryDto extends BaseEntity implements Serializable
@ApiModelProperty(value="开始月份") @ApiModelProperty(value="开始月份")
private String startMonth; private String startMonth;
} }

View File

@@ -1,9 +1,9 @@
package com.ruoyi.invest.domain.vo; package com.ruoyi.invest.domain.vo;
import com.ruoyi.invest.domain.InstallmentHistory; import com.ruoyi.invest.domain.InstallmentHistory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import io.swagger.annotations.ApiModel;
import java.util.Date; import java.util.Date;
@@ -39,4 +39,12 @@ public class InstallmentHistoryVo extends InstallmentHistory
@ApiModelProperty(value="借款天数") @ApiModelProperty(value="借款天数")
private String loanDays; private String loanDays;
/** 收款账户 */
@ApiModelProperty(value="收款账户名称")
private String receivingAccountName;
@ApiModelProperty(value="收款账户卡号")
private String receivingAccountCode;
} }

View File

@@ -28,10 +28,13 @@ 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="receivingAccountName" column="receiving_account_name" />
<result property="receivingAccountCode" column="receiving_account_code" />
<result property="repaymentDate" column="repayment_date" /> <result property="repaymentDate" column="repayment_date" />
<result property="calculateInterestRate" column="calculate_interest_rate" /> <result property="calculateInterestRate" column="calculate_interest_rate" />
<result property="outstandingInterest" column="outstanding_interest" /> <result property="outstandingInterest" column="outstanding_interest" />
<result property="outstandingPrincipal" column="outstanding_principal" /> <result property="outstandingPrincipal" column="outstanding_principal" />
<result property="receivingAccountId" column="receiving_account_id" />
</resultMap> </resultMap>
<sql id="selectInstallmentHistoryVo"> <sql id="selectInstallmentHistoryVo">
@@ -44,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.installment_amount, a.installment_amount,
a.installment_date, a.installment_date,
a.period, a.period,
a.receiving_account_id,
a.calculate_interest_rate, a.calculate_interest_rate,
( (
select select
@@ -107,11 +111,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.del_flag, a.del_flag,
a.remark, a.remark,
bc."name" as bank_name, bc."name" as bank_name,
bc.code as bank_code bc.code as bank_code,
debit."name" as receiving_account_name,
debit.code as receiving_account_code
from from
installment_history a installment_history a
left join bank_card_lend bc on left join bank_card_lend bc on
bc.id = a.bank_card_lend_id bc.id = a.bank_card_lend_id
left join bank_card_lend debit on
debit.id = a.receiving_account_id
</sql> </sql>
<select id="selectInstallmentHistoryList" parameterType="InstallmentHistoryDto" resultMap="InstallmentHistoryResult"> <select id="selectInstallmentHistoryList" parameterType="InstallmentHistoryDto" resultMap="InstallmentHistoryResult">
@@ -164,6 +172,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
<if test="balance != null">balance,</if> <if test="balance != null">balance,</if>
<if test="calculateInterestRate != null">calculate_interest_rate,</if> <if test="calculateInterestRate != null">calculate_interest_rate,</if>
<if test="receivingAccountId != null">receiving_account_id,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if> <if test="id != null">#{id},</if>
@@ -188,6 +197,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="balance != null">#{balance},</if> <if test="balance != null">#{balance},</if>
<if test="calculateInterestRate != null">#{calculateInterestRate},</if> <if test="calculateInterestRate != null">#{calculateInterestRate},</if>
<if test="receivingAccountId != null">#{receivingAccountId},</if>
</trim> </trim>
</insert> </insert>
@@ -215,6 +225,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
<if test="balance != null">balance = #{balance},</if> <if test="balance != null">balance = #{balance},</if>
<if test="calculateInterestRate != null">calculate_interest_rate = #{calculateInterestRate},</if> <if test="calculateInterestRate != null">calculate_interest_rate = #{calculateInterestRate},</if>
<if test="receivingAccountId != null">receiving_account_id = #{receivingAccountId},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>