package com.elephant.framework.galaxy.aroad.module.zhyh.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.zhyh.entity.ZhglScfj;
import com.elephant.framework.galaxy.aroad.module.zhyh.mapper.ZhglScfjMapper;
import com.elephant.framework.galaxy.aroad.module.zhyh.service.ZhglScfjService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 智慧公路_上传附件表
 *
 * @author wangjian
 * @date 2019-05-06 20:16:42
 */
@Service
@AllArgsConstructor
public class ZhglScfjServiceImpl extends ServiceImpl<ZhglScfjMapper, ZhglScfj> implements ZhglScfjService {

    final ZhglScfjMapper zhglScfjMapper;

    /**
     * 分页查询附件表
     * @param page
     * @return
     */
    public IPage<ZhglScfj> getZhglScfjPage(IPage<ZhglScfj> page,ZhglScfj zhglScfj) {
        return zhglScfjMapper.selectPage(page, Wrappers.<ZhglScfj>query().lambda().eq(ZhglScfj::getType,zhglScfj.getType()).like(ZhglScfj::getRq,zhglScfj.getRq()));
    }
}
