feat:钱包余额导出

This commit is contained in:
dzc committed 2025-04-09 09:28:58 +08:00
1 parent 9d08931892
commit cf8510c34e
2 files changed
+6 -6

No files matched your search

@@ -50,19 +50,19 @@
<sql id="whereA">
a.del_flag = '0'
<if test="dto.hard_id != null">
<if test="dto.hardId != null">
and a.hard_id = #{dto.hardId}
</if>
<if test="dto.imei != null and dto.imei != '' ">
and a.imei like concat('%', #{dto.imei}, '%')
</if>
<if test="dto.power_status != null">
<if test="dto.powerStatus != null">
and a.power_status = #{dto.powerStatus}
</if>
<if test="dto.net_status != null">
<if test="dto.netStatus != null">
and a.net_status = #{dto.netStatus}
</if>
<if test="dto.sale_status != null">
<if test="dto.saleStatus != null">
and a.sale_status = #{dto.saleStatus}
</if>
</sql>
@@ -344,11 +344,11 @@ public class WalletManageServiceImpl extends ServiceImpl<WalletManageMapper, Wal
List<WalletManageBalanceVo> itemList = baseMapper.selectBalance(dto);
if (ObjectUtil.isEmpty(itemList)) continue;
for (WalletManageBalanceVo j : itemList) {
j.setWalletTypeName(i.getName());
walletList.stream().filter(v -> ObjectUtil.equals(v.getUserId(), j.getUserId())).findFirst().ifPresent(v -> {
walletList.stream().filter(v -> ObjectUtil.equals(i.getId(), v.getWalletTypeId()) && ObjectUtil.equals(v.getUserId(), j.getUserId())).findFirst().ifPresent(v -> {
if (ObjectUtil.isNotEmpty(j.getBalance())) {
v.setBalance(j.getBalance());
v.setLastTopUpTime(j.getCreateTime());
v.setWalletTypeName(i.getName());
}
});
}