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

import com.steerinfo.framework.mapper.IBaseMapper;
import com.steerinfo.framework.service.impl.BaseServiceImpl;
import com.steerinfo.meterwork.meterworkstaticmonitor.model.MeterWorkStaticMonitor;
import com.steerinfo.meterwork.meterworkstaticmonitor.mapper.MeterWorkStaticMonitorMapper;
import com.steerinfo.meterwork.meterworkstaticmonitor.service.IMeterWorkStaticMonitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

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

    @Autowired
    private MeterWorkStaticMonitorMapper meterWorkStaticMonitorMapper;

    @Override
    protected IBaseMapper<MeterWorkStaticMonitor, String> getMapper() {
        return meterWorkStaticMonitorMapper;
    }

    @Override
    @Transactional
    public String update(MeterWorkStaticMonitor model){
        meterWorkStaticMonitorMapper.updateByPrimaryKeySelective(model);
        return model.getPointNo();
    }

}
