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.DataDictionaryFundOrganizationFormDetailsDao;
import com.friday.custody.entity.DataDictionaryFundOrganizationFormDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryFundOrganizationFormDetailsService;


@Service("dataDictionaryFundOrganizationFormDetailsService")
public class DataDictionaryFundOrganizationFormDetailsServiceImpl extends ServiceImpl<DataDictionaryFundOrganizationFormDetailsDao, DataDictionaryFundOrganizationFormDetailsEntity> implements DataDictionaryFundOrganizationFormDetailsService {

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

        return new PageUtils(page);
    }

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