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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gyee.alarm.mapper.auto.ProEconMainBrownouts2Mapper;
import com.gyee.alarm.model.auto.ProEconMainBrownouts2;
import com.gyee.alarm.service.auto.IProEconMainBrownouts2Service;
import org.springframework.stereotype.Service;

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

/**
 * <p>
 * 限电事件主表 服务实现类
 * </p>
 *
 * @author shilin
 * @since 2022-10-25
 */
@Service
public class ProEconMainBrownouts2ServiceImpl extends ServiceImpl<ProEconMainBrownouts2Mapper, ProEconMainBrownouts2> implements IProEconMainBrownouts2Service {
    @Resource
    private ProEconMainBrownouts2Mapper proEconMainBrownouts2Mapper;
    public int  updateMainBrownouts2(Date start_time, Double loss_power, Double stop_hours, String id)
    {
        int i=0;
        i=proEconMainBrownouts2Mapper.updateMainBrownouts2( start_time,loss_power, stop_hours, id);
        return i;
    }
}
