소스 검색

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

LiRong 3 달 전
부모
커밋
63a59a4060
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      leromro-core/src/main/java/com/leromro/core/service/impl/VolunteerAccountChangeServiceImpl.java

+ 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()