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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gyee.generation.mapper.auto.ProEconShutdownEvent2Mapper;
import com.gyee.generation.model.auto.ProEconShutdownEvent2;
import com.gyee.generation.service.auto.IProEconShutdownEvent2Service;
import org.springframework.stereotype.Service;

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

/**
 * <p>
 * 停机事件2 服务实现类
 * </p>
 *
 * @author shilin
 * @since 2022-10-21
 */
@Service
public class ProEconShutdownEvent2ServiceImpl extends ServiceImpl<ProEconShutdownEvent2Mapper, ProEconShutdownEvent2> implements IProEconShutdownEvent2Service {

    @Resource
    private ProEconShutdownEvent2Mapper proEconShutdownEvent2Mapper;

    public int updateShutdownevent2(Date start_time, Double loss_power, Double stop_hours, String id) {
        int i = 0;
        i = proEconShutdownEvent2Mapper.updateShutdownevent2(start_time, loss_power, stop_hours, id);
        return i;
    }
}
