xuhy
2025-01-08 7b5d15ad8773c4a2e957638cc3936feb68460e93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.stylefeng.guns.modular.system.service.impl;
 
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.modular.system.dao.*;
import com.stylefeng.guns.modular.system.model.*;
import com.stylefeng.guns.modular.system.service.ICarService;
import com.stylefeng.guns.modular.system.service.IDriverService;
import com.stylefeng.guns.modular.system.service.ITWithdrawalService;
import com.stylefeng.guns.modular.system.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
 
@Service
public class TWithdrawalServiceImpl extends ServiceImpl<TWithdrawalMapper, TWithdrawal> implements ITWithdrawalService {
 
    @Override
    public void addWithdrawal(String receivePaymentName, String receivePaymentAccount, Integer withdrawalType, String openBank, BigDecimal withdrawalMoney, Integer uid) {
        TWithdrawal tWithdrawal = new TWithdrawal();
        tWithdrawal.setDriverId(uid);
        tWithdrawal.setReceivePaymentName(receivePaymentName);
        tWithdrawal.setReceivePaymentAccount(receivePaymentAccount);
        tWithdrawal.setWithdrawalType(withdrawalType);
        tWithdrawal.setWithdrawalMoney(withdrawalMoney);
        tWithdrawal.setWithdrawalTime(new Date());
        tWithdrawal.setStatus(1);
        tWithdrawal.setOpenBank(openBank);
        this.insert(tWithdrawal);
    }
 
    @Override
    public List<TWithdrawal> queryList(Page<TWithdrawal> page, Integer uid) {
        return this.baseMapper.queryList(page,uid);
    }
}