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.DataDictionaryShareAdjustDetailsDao;
import com.friday.custody.entity.DataDictionaryShareAdjustDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryShareAdjustDetailsService;


@Service("dataDictionaryShareAdjustDetailsService")
public class DataDictionaryShareAdjustDetailsServiceImpl extends ServiceImpl<DataDictionaryShareAdjustDetailsDao, DataDictionaryShareAdjustDetailsEntity> implements DataDictionaryShareAdjustDetailsService {

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

        return new PageUtils(page);
    }

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