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

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.DataDictionaryProjectProgressDetailsDao;
import com.friday.custody.entity.DataDictionaryProjectProgressDetailsEntity;
import com.friday.custody.service.basicService.DataDictionaryProjectProgressDetailsService;
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;

/*
 * 方案进度字典表Details
 * */

@Service("DataDictionaryProjectProgressDetailsService")
public class DataDictionaryProjectProgressDetailsServiceImpl extends ServiceImpl<DataDictionaryProjectProgressDetailsDao, DataDictionaryProjectProgressDetailsEntity> implements DataDictionaryProjectProgressDetailsService {

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

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

    }
}