This commit is contained in:
dzc committed 2025-07-09 17:26:59 +08:00
1 parent 97bd881444
commit d96b5419a0
3 files changed
+4 -4

No files matched your search

@@ -168,5 +168,5 @@ public interface WalletManageMapper extends PjcloudBaseMapper<WalletManageEntity
List<WalletManageVo> activeBalanceList(@Param("dto") WalletTopupActionDto dto, @Param("unactiveDayNumberStr") String unactiveDayNumberStr);
Integer selectTotalBalance(@Param("dto") WalletManageBalanceDto dto);
Long selectTotalBalance(@Param("dto") WalletManageBalanceDto dto);
}
@@ -318,8 +318,8 @@ public class WalletManageServiceImpl extends ServiceImpl<WalletManageMapper, Wal
WalletManageBalanceDto walletBalanceDto = BeanUtils.toBean(dto, WalletManageBalanceDto.class);
walletBalanceDto.setWalletTypeId(i.getId());
Integer total = baseMapper.selectTotalBalance(walletBalanceDto);
if (ObjectUtil.isEmpty(total)) total = 0;
Long total = baseMapper.selectTotalBalance(walletBalanceDto);
if (ObjectUtil.isEmpty(total)) total = 0L;
if (ObjectUtil.equals(i.getUniqueCode(), WalletTypeEnum.EAT.getCode())) {
result.setEatTotal(total);
@@ -193,7 +193,7 @@
</where>
</select>
<select id="selectTotalBalance" resultType="java.lang.Integer">
<select id="selectTotalBalance" resultType="java.lang.Long">
SELECT
SUM(a.balance)
FROM wallet_transaction a