package com.bonus.system.wechat.service;

import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.common.security.utils.SecurityUtils;
import com.bonus.system.api.domain.MapVo;
import com.bonus.system.api.domain.SysUser;
import com.bonus.system.dept.dao.ProDeptRoleDao;
import com.bonus.system.leaveReporting.dao.LeaveReportingDao;
import com.bonus.system.leaveReporting.entity.LeaveReportingBean;
import com.bonus.system.leaveReporting.service.LeaveReportingService;
import com.bonus.system.wechat.dao.WechatLeaveReportingDao;
import com.bonus.system.wechat.entity.WechatLeaveReportingBean;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * 休假报备-业务层
 *
 * @author lsun
 */
@Service("WechatLeaveReportingService")
@Log4j2
public class WechatLeaveReportingServiceImpl implements WechatLeaveReportingService {

    @Resource(name = "WechatLeaveReportingDao")
    private WechatLeaveReportingDao wechatLeaveReportingDao;

    @Override
    public List<WechatLeaveReportingBean> getLeaveReportingList(WechatLeaveReportingBean bean) {
        return wechatLeaveReportingDao.getLeaveReportingList(bean);
    }

    @Override
    public WechatLeaveReportingBean selectLeaveReportingById(Long id) {
        return wechatLeaveReportingDao.selectLeaveReportingById(id);
    }
}
