package com.friday.custody.service.basicService.impl;

import com.friday.custody.utils.PageUtils;
import com.friday.custody.utils.Query;
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.dao.DataDictionaryTaLaunchFlagDetailsDao;
import com.friday.custody.entity.DataDictionaryTaLaunchFlagDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryTaLaunchFlagDetailsService;


@Service("dataDictionaryTaLaunchFlagDetailsService")
public class DataDictionaryTaLaunchFlagDetailsServiceImpl extends ServiceImpl<DataDictionaryTaLaunchFlagDetailsDao, DataDictionaryTaLaunchFlagDetailsEntity> implements DataDictionaryTaLaunchFlagDetailsService {

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

        return new PageUtils(page);
    }

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