package com.friday.custody.service.basicService.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.friday.custody.utils.PageUtils;
import com.friday.custody.utils.Query;

import com.friday.custody.dao.DataDictionaryConfirmStatusDetailsDao;
import com.friday.custody.entity.DataDictionaryConfirmStatusDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryConfirmStatusDetailsService;


@Service("dataDictionaryConfirmStatusDetailsService")
public class DataDictionaryConfirmStatusDetailsServiceImpl extends ServiceImpl<DataDictionaryConfirmStatusDetailsDao, DataDictionaryConfirmStatusDetailsEntity> implements DataDictionaryConfirmStatusDetailsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DataDictionaryConfirmStatusDetailsEntity> page = this.page(
                new Query<DataDictionaryConfirmStatusDetailsEntity>().getPage(params),
                new QueryWrapper<DataDictionaryConfirmStatusDetailsEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<DataDictionaryConfirmStatusDetailsEntity> selectVByTrustNo(String trustNo) {
        return baseMapper.selectList(new QueryWrapper<DataDictionaryConfirmStatusDetailsEntity>().eq("trust_no", trustNo));

    }
}