package com.kxs.product.biz.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kxs.common.security.util.SecurityUtils;
import com.kxs.product.api.dto.kxsapp.machine.MachineTransferListDTO;
import com.kxs.product.api.vo.kxsapp.machine.MachineTransferListVO;
import com.kxs.product.biz.mapper.KxsMachineTransferMapper;
import com.kxs.product.api.model.KxsMachineTransfer;
import com.kxs.product.biz.service.KxsMachineTransferService;
import org.springframework.stereotype.Service;

/**
 * 客小爽机具划拨表(KxsMachineTransfer)表服务实现类
 *
 * @author 系统
 * @since 2023-12-20 10:09:35
 */
@Service("kxsMachineTransferService")
public class KxsMachineTransferServiceImpl extends ServiceImpl<KxsMachineTransferMapper, KxsMachineTransfer> implements KxsMachineTransferService {

    @Override
    public IPage<MachineTransferListVO> machineTransferList(Page<MachineTransferListVO> page, MachineTransferListDTO param) {

        param.setUserId(SecurityUtils.getUser().getId().intValue());

        return baseMapper.getByPage(page, param);
    }
}

