fix: 自测问题修复。

This commit is contained in:
tianyongbao
2024-06-21 20:19:56 +08:00
parent e913962851
commit f34f71d54d
13 changed files with 29 additions and 3 deletions

View File

@@ -22,6 +22,10 @@ public class BankCardLendDto extends BaseEntity implements Serializable
@ApiModelProperty(value="银行卡名称")
private String name;
/** 银行卡号 */
@ApiModelProperty(value="银行卡号")
private String code;
/** 类型1储蓄卡2信用卡 */
@ApiModelProperty(value="类型1储蓄卡2信用卡")
private String type;
@@ -30,6 +34,10 @@ public class BankCardLendDto extends BaseEntity implements Serializable
@ApiModelProperty(value="网贷类型")
private String lendType;
/** 储蓄卡类型 */
@ApiModelProperty(value="储蓄卡类型")
private String debitType;
/** 信用卡id */
@ApiModelProperty(value="信用卡id")
private Long creditCardId;

View File

@@ -55,8 +55,10 @@ public class AccountsTransferRecordServiceImpl implements IAccountsTransferRecor
public AccountsTransferRecordVo selectAccountsTransferRecordById(Long id)
{
AccountsTransferRecordVo vo=accountsTransferRecordMapper.selectAccountsTransferRecordById(id);
if(vo.getDealType().equals("2")){
vo.setInAccountId(vo.getOutAccountId());
if(vo.getDealType()!=null){
if(vo.getDealType().equals("2")){
vo.setInAccountId(vo.getOutAccountId());
}
}
return vo;
}

View File

@@ -39,7 +39,21 @@ public class BankCardLendServiceImpl implements IBankCardLendService
@Override
public BankCardLendVo selectBankCardLendById(Long id)
{
return bankCardLendMapper.selectBankCardLendById(id);
BankCardLendVo bankCard= bankCardLendMapper.selectBankCardLendById(id);
//修改名称加卡号
if(bankCard.getCode()!=null){
bankCard.setNameCode(bankCard.getName()+""+ StringUtils.getLastNumberChars(4,bankCard.getCode()+""));
}else {
bankCard.setNameCode(bankCard.getName());
}
if(!"null".equals(String.valueOf(bankCard.getBillDate()))) {
bankCard.setBillDateName(bankCard.getBillDate()+"");
}
if(!"null".equals(String.valueOf(bankCard.getPayDate()))) {
bankCard.setPayDateName(bankCard.getPayDate()+"");
}
return bankCard;
}
/**

View File

@@ -39,7 +39,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
a.del_flag='0'
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="code != null and code != ''"> and a.code like '%'|| #{code}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="debitType != null and debitType != ''"> and a.debit_type = #{debitType}</if>
<if test="creditCardId != null "> and a.id = #{creditCardId}</if>
<if test="lendType != null and lendType != ''"> and a.lend_type = #{lendType}</if>
</where>

Binary file not shown.

Binary file not shown.

Binary file not shown.