|
|
@@ -94,7 +94,21 @@ public class SysUserAccountServiceImpl extends ServiceImpl<SysUserAccountMapper,
|
|
|
@Override
|
|
|
public Page<SysUserAccountVo> accountList(SysUserAccountPageParam param) {
|
|
|
log.info("查询账户列表(应付概览页面):param=[{}]", JSONUtil.toJsonStr(param));
|
|
|
- return baseMapper.accountList(param.getPage(), param);
|
|
|
+ Page<SysUserAccountVo> sysUserAccountVoPage = baseMapper.accountList(param.getPage(), param);
|
|
|
+ // 填充支付中的金额 add by lipf 2026年7月15日09:47:03
|
|
|
+ List<SysAmountAuditing> sysAmountAuditings = sysAmountAuditingService.list(new LambdaQueryWrapper<SysAmountAuditing>()
|
|
|
+ .eq(SysAmountAuditing::getAuditingStatus, 0));
|
|
|
+ Map<String, List<SysAmountAuditing>> collect = sysAmountAuditings.stream().collect(Collectors.groupingBy(SysAmountAuditing::getUserId));
|
|
|
+ sysUserAccountVoPage.getRecords().stream().peek(action->{
|
|
|
+ String userId = action.getUserId();
|
|
|
+ List<SysAmountAuditing> sysAmountAuditings1 = collect.get(userId);
|
|
|
+ if(CollUtil.isNotEmpty(sysAmountAuditings1)){
|
|
|
+ action.setPayingAmount(sysAmountAuditings1.get(0).getAmount());
|
|
|
+ }else{
|
|
|
+ action.setPayingAmount(BigDecimal.ZERO);
|
|
|
+ }
|
|
|
+ }).toList();
|
|
|
+ return sysUserAccountVoPage;
|
|
|
}
|
|
|
|
|
|
@Override
|