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);
|
}
|
}
|