无关风月
昨天 3044a637a15e09d50ad733fd482c6e64e90df2f9
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
package com.ruoyi.order.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.order.entity.WithdrawDetail;
import com.ruoyi.order.entity.WithdrawRecord;
import com.ruoyi.order.mapper.WithdrawDetailMapper;
import com.ruoyi.order.mapper.WithdrawRecordMapper;
import com.ruoyi.order.service.WithdrawDetailService;
import com.ruoyi.order.service.WithdrawRecordService;
import org.springframework.stereotype.Service;
 
import java.util.Date;
 
/**
 * <p>
 * 用户提现申请记录表 服务实现类
 * </p>
 *
 * @author hjl
 * @since 2024-07-09
 */
@Service
public class WithdrawRecordServiceImpl extends ServiceImpl<WithdrawRecordMapper, WithdrawRecord> implements WithdrawRecordService {
 
 
    @Override
    public void saveWithdrawRecord(String withdrawId, String orderId, Integer userId, Integer withdrawType, Integer auditStatus) {
        WithdrawRecord withdrawRecord = new WithdrawRecord();
        withdrawRecord.setWithdrawId(withdrawId);
        withdrawRecord.setOrderId(orderId);
        withdrawRecord.setUserId(userId);
        withdrawRecord.setWithdrawType(withdrawType);
        withdrawRecord.setAuditStatus(auditStatus);
        withdrawRecord.setCreateTime(new Date());
        this.save(withdrawRecord);
    }
}