fix: 信用卡账单统计,bug修复。

This commit is contained in:
tianyongbao
2024-05-23 17:24:34 +08:00
parent b6b3f28e37
commit a70b727e17
3 changed files with 6 additions and 0 deletions

View File

@@ -30,4 +30,8 @@ public class AccountsDto extends BaseEntity implements Serializable
@ApiModelProperty(value="账户状态")
private String state;
/** 账户状态 */
@ApiModelProperty(value="账户id")
private Long accountId;
}

View File

@@ -432,6 +432,7 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
dto.setState("1");
//信用卡
dto.setType("2");
dto.setAccountId(analysisDto.getId());
List<AccountsVo> accountsList=accountsMapper.selectAccountsList(dto);
double creditAvailableLimit =0;
double creditBalance =0;

View File

@@ -60,6 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="type != null and type != ''"> and a.type = #{type}</if>
<if test="state != null and state != ''"> and a.state = #{state}</if>
<if test="accountId != null and accountId != ''"> and a.account_id = #{accountId}</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}