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.DataDictionaryHandleTypeDetailsDao;
import com.friday.custody.entity.DataDictionaryHandleTypeDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryHandleTypeDetailsService;


@Service("dataDictionaryHandleTypeDetailsService")
public class DataDictionaryHandleTypeDetailsServiceImpl extends ServiceImpl<DataDictionaryHandleTypeDetailsDao, DataDictionaryHandleTypeDetailsEntity> implements DataDictionaryHandleTypeDetailsService {

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

        return new PageUtils(page);
    }

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