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.DataDictionarySellerStatusDetailsDao;
import com.friday.custody.entity.DataDictionarySellerStatusDetailsEntity;
import com.friday.custody.service.basicService.DataDictionarySellerStatusDetailsService;


@Service("dataDictionarySellerStatusDetailsService")
public class DataDictionarySellerStatusDetailsServiceImpl extends ServiceImpl<DataDictionarySellerStatusDetailsDao, DataDictionarySellerStatusDetailsEntity> implements DataDictionarySellerStatusDetailsService {

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

        return new PageUtils(page);
    }

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