package com.steerinfo.meterwork.meterworkhookmetertime.service.impl;

import com.steerinfo.framework.mapper.IBaseMapper;
import com.steerinfo.framework.service.impl.BaseServiceImpl;
import com.steerinfo.meterwork.meterworkhookmetertime.model.PointDetailsVo;
import com.steerinfo.meterwork.meterworkhookmetertime.model.GroupTimeVo;
import com.steerinfo.meterwork.meterworkhookmetertime.model.MeterWorkHookMeterTime;
import com.steerinfo.meterwork.meterworkhookmetertime.mapper.MeterWorkHookMeterTimeMapper;
import com.steerinfo.meterwork.meterworkhookmetertime.service.IMeterWorkHookMeterTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

/**
 * MeterWorkHookMeterTime服务实现：
 * @author generator
 * @version 1.0-SNAPSHORT 2022-12-03 03:36
 * 类描述
 * 修订历史：
 * 日期：2022-12-03
 * 作者：generator
 * 参考：
 * 描述：MeterWorkHookMeterTime服务实现
 * @see null
 * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
 */
@Service(value = "meterWorkHookMeterTimeService")
public class MeterWorkHookMeterTimeServiceImpl extends BaseServiceImpl<MeterWorkHookMeterTime, String> implements IMeterWorkHookMeterTimeService {

    @Resource
    private MeterWorkHookMeterTimeMapper meterWorkHookMeterTimeMapper;

    @Override
    protected IBaseMapper<MeterWorkHookMeterTime, String> getMapper() {
        return meterWorkHookMeterTimeMapper;
    }

    @Override
    public List<GroupTimeVo> getGroupByTime(HashMap meterWorkHookMeterTime) {
        return meterWorkHookMeterTimeMapper.selectGroupByTime(meterWorkHookMeterTime);
    }

    @Override
    public List<PointDetailsVo> getPointDetails(HashMap models) {
        return meterWorkHookMeterTimeMapper.selectPointDetails(models);
    }
}
