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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gyee.generation.mapper.auto.ProEconShutdownEventMapper;
import com.gyee.generation.model.auto.ProEconShutdownEvent;
import com.gyee.generation.service.auto.IProEconShutdownEventService;
import org.springframework.stereotype.Service;

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

/**
 * <p>
 * 停机事件 服务实现类
 * </p>
 *
 * @author shilin
 * @since 2022-10-27
 */
@Service
public class ProEconShutdownEventServiceImpl extends ServiceImpl<ProEconShutdownEventMapper, ProEconShutdownEvent> implements IProEconShutdownEventService {

    @Resource
    private ProEconShutdownEventMapper proEconShutdownEventMapper;

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