package com.gyee.alarm.service.auto.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gyee.alarm.mapper.auto.ProEconMainBrownoutsMapper;
import com.gyee.alarm.model.auto.ProEconMainBrownouts;
import com.gyee.alarm.service.auto.IProEconMainBrownoutsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

/**
 * <p>
 * 限电事件主表 服务实现类
 * </p>
 *
 * @author shilin
 * @since 2022-10-25
 */
@Service
public class ProEconMainBrownoutsServiceImpl extends ServiceImpl<ProEconMainBrownoutsMapper, ProEconMainBrownouts> implements IProEconMainBrownoutsService {

    @Resource
    private ProEconMainBrownoutsMapper proEconMainBrownoutsMapper;
    public int  updateMainBrownouts(Date start_time, Double loss_power, Double stop_hours, String id)
    {
        int i=0;
        i=proEconMainBrownoutsMapper.updateMainBrownouts( start_time,loss_power, stop_hours, id);
        return i;
    }
}
