Ver código fonte

志愿者的余额以及变更记录

LiRong 3 meses atrás
pai
commit
63a59a4060

+ 2 - 0
leromro-core/src/main/java/com/leromro/core/service/impl/VolunteerAccountChangeServiceImpl.java

@@ -3,6 +3,7 @@ package com.leromro.core.service.impl;
 import java.math.BigDecimal;
 import java.util.List;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.leromro.common.utils.SecurityUtils;
 import com.leromro.core.domain.vo.AccountChangeTotalMoney;
 import com.leromro.core.domain.vo.ClientAccountChangeVO;
 import com.leromro.core.domain.vo.VolunteerAccountChangeVO;
@@ -102,6 +103,7 @@ public class VolunteerAccountChangeServiceImpl extends ServiceImpl<VolunteerAcco
     @Override
     public AccountChangeTotalMoney getVolunteerAccountTotalChangeMoney(VolunteerAccountChange volunteerAccountChange) {
         AccountChangeTotalMoney totalMoney = new AccountChangeTotalMoney();
+        volunteerAccountChange.setVolunteerId(SecurityUtils.getUserId());
         List<VolunteerAccountChangeVO> list = volunteerAccountChangeMapper.selectVolunteerAccountChangeListAndServiceType(volunteerAccountChange);
         //算出总收入以及总支出
         BigDecimal totalEarning = list.stream()