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.DataDictionaryAccountStatusDetailsDao;
import com.friday.custody.entity.DataDictionaryAccountStatusDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryAccountStatusDetailsService;


@Service("dataDictionaryAccountStatusDetailsService")
public class DataDictionaryAccountStatusDetailsServiceImpl extends ServiceImpl<DataDictionaryAccountStatusDetailsDao, DataDictionaryAccountStatusDetailsEntity> implements DataDictionaryAccountStatusDetailsService {

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

        return new PageUtils(page);
    }

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