package com.yeejoin.precontrol.common.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yeejoin.precontrol.common.entity.PersonWorkingHours;
import com.yeejoin.precontrol.common.mapper.PersonWorkingHoursMapper;
import com.yeejoin.precontrol.common.service.IPersonWorkingHoursService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * 工时信息 服务实现类
 *
 * @author duanwei
 * @date 2020-06-30
 */
@Service
public class PersonWorkingHoursServiceImpl extends ServiceImpl<PersonWorkingHoursMapper, PersonWorkingHours> implements IPersonWorkingHoursService {
    @Autowired
    PersonWorkingHoursMapper workHoursMapper;

    @Override
    public HashMap<String, Object> workHourStatisticalByPersonId(Long personId, String curTime) {
        return workHoursMapper.workHourStatisticalByPersonId(personId, curTime);
    }
}
