New file |
| | |
| | | package com.stylefeng.guns.modular.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.modular.system.dao.RechargeRecordMapper; |
| | | import com.stylefeng.guns.modular.system.model.RechargeRecord; |
| | | import com.stylefeng.guns.modular.system.service.IRechargeRecordService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @date 2023/6/2 14:26 |
| | | */ |
| | | @Service |
| | | public class RechargeRecordServiceImpl extends ServiceImpl<RechargeRecordMapper, RechargeRecord> implements IRechargeRecordService { |
| | | |
| | | @Override |
| | | public Double querSumSurplusDividedAmount(Integer type) { |
| | | return this.baseMapper.querSumSurplusDividedAmount(type); |
| | | } |
| | | |
| | | /** |
| | | * 获取代理商账户余额 |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Double queryAgentBalance(Integer companyId) { |
| | | return this.baseMapper.queryAgentBalance(companyId); |
| | | } |
| | | /** |
| | | * 获取平台账户余额 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Double queryCompanyBalance() { |
| | | return this.baseMapper.queryCompanyBalance(); |
| | | } |
| | | } |