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.DataDictionaryTypesOfFeeDetailsDao;
import com.friday.custody.entity.DataDictionaryTypesOfFeeDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryTypesOfFeeDetailsService;


@Service("dataDictionaryTypesOfFeeDetailsService")
public class DataDictionaryTypesOfFeeDetailsServiceImpl extends ServiceImpl<DataDictionaryTypesOfFeeDetailsDao, DataDictionaryTypesOfFeeDetailsEntity> implements DataDictionaryTypesOfFeeDetailsService {

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

        return new PageUtils(page);
    }

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