package cn.com.oa.service.impl;

import cn.com.oa.common.constant.DataService;
import cn.com.oa.mapper.AttendanceRecordResultMapper;
import cn.com.oa.model.AttendanceRecordResult;
import cn.com.oa.model.Group;
import cn.com.oa.model.vo.AttendanceRecordResultVo;
import cn.com.oa.model.vo.ProjectInfoVo;
import cn.com.oa.service.IAttendanceRecordResultService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 */
@Service
public class AttendanceRecordResultServiceImpl extends ServiceImpl<AttendanceRecordResultMapper, AttendanceRecordResult> implements IAttendanceRecordResultService {

    @Override
    public Map<String, Object> getResultMonth() {
        Map constantData = DataService.getConstantData();
        Group group = (Group)constantData.get("defaultGroup");
        AttendanceRecordResultVo attendanceRecordResult = new AttendanceRecordResultVo();
        attendanceRecordResult.setUnitId(group.getUNIVERSALID());
        Map<String, Object> map = baseMapper.getResultMonth(attendanceRecordResult);
        return map;
    }
}
