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

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.system.entity.DeptRelation;
import com.elephant.framework.galaxy.aroad.module.zhjg.entity.ZhjgLzglCxysxkslsptj;
import com.elephant.framework.galaxy.aroad.module.zhjg.mapper.ZhjgLzglCxysxkslsptjMapper;
import com.elephant.framework.galaxy.aroad.module.zhjg.service.ZhjgLzglCxysxkslsptjService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 受理审批统计表
 *
 * @author wangjian
 * @date 2019-03-26 14:38:10
 */
@Service
@AllArgsConstructor
public class ZhjgLzglCxysxkslsptjServiceImpl extends ServiceImpl<ZhjgLzglCxysxkslsptjMapper, ZhjgLzglCxysxkslsptj> implements ZhjgLzglCxysxkslsptjService {
    private final ZhjgLzglCxysxkslsptjMapper zhjgLzglCxysxkslsptjMapper;

    @Override
    public List<ZhjgLzglCxysxkslsptj> findZhjgLzglCxysxkslsptjByDate(String startDate, String endDate){
        return zhjgLzglCxysxkslsptjMapper.selectList(Wrappers.<ZhjgLzglCxysxkslsptj>query().lambda().
                ge(ZhjgLzglCxysxkslsptj::getRq,startDate).le(ZhjgLzglCxysxkslsptj::getRq,endDate));
    }
}
