package com.jeethink.manage.service.impl;

import java.util.List;

import com.jeethink.bean.domain.ArchivesMaster;
import com.jeethink.common.utils.SecurityUtils;
import com.jeethink.receive.mapper.ArchivesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jeethink.manage.service.IAuthenticateService;

/**
 * 价值鉴定Service业务层处理
 * 
 * @author zjt
 * @date 2022-11-10
 */
@Service
public class AuthenticateServiceImpl implements IAuthenticateService
{
    @Autowired
    private ArchivesMapper archivesMapper;

    /**
     * 查询价值鉴定列表
     * 
     * @param archives 价值鉴定
     * @return 价值鉴定
     */
    @Override
    public List<ArchivesMaster> selectAuthenticateList(ArchivesMaster archives)
    {
        return archivesMapper.selectExpireArchivesList(archives);
    }

    @Override
    public void postponeArchives(ArchivesMaster archives) {

        archives.setUpdateUser(SecurityUtils.getUserId());
        archivesMapper.postponeArchives(archives);
    }
}
