Commit e2fb00d2 authored by licc's avatar licc

代码提交2

parent 620e6514
......@@ -9,7 +9,6 @@ import cn.wisenergy.model.dto.UsersInfoDto;
import cn.wisenergy.service.Manager.UserDataManger;
import cn.wisenergy.service.app.UserDataService;
import org.apache.shiro.util.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
......@@ -78,25 +77,25 @@ public class UserDataServiceImpl implements UserDataService {
//4、充值总额
Double totalRecharge = userRechargeMapper.getTotalRecharge(userId);
if (null != totalRecharge) {
userData.setTotalRecharge(String.valueOf(totalRecharge));
userData.setTotalRecharge(totalRecharge);
}
//5、提现总额
Double totalWithdrawal = withdrawsMapper.getTotalWithdrawal(userId);
if (null != totalWithdrawal) {
userData.setTotalWithdrawal(String.valueOf(totalWithdrawal));
userData.setTotalWithdrawal(totalWithdrawal);
}
//6、otc卖出总额
Double buyTotal = orderDetailsMapper.getBuyTotal(userId);
if (null != buyTotal) {
userData.setBuyTotal(String.valueOf(buyTotal));
userData.setBuyTotal(buyTotal);
}
//7、otc买入总额
Double saleTotal = orderDetailsMapper.getSaleTotal(userId);
if (null != saleTotal) {
userData.setSaleTotal(String.valueOf(saleTotal));
userData.setSaleTotal(saleTotal);
}
list.add(userData);
}
......
......@@ -8,7 +8,6 @@ import cn.wisenergy.model.vo.UserVo;
import cn.wisenergy.service.app.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment