package com.gkhy.safePlatform.doublePrevention.service.baseService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gkhy.safePlatform.doublePrevention.entity.PreventDangerManageTimeout; import com.gkhy.safePlatform.doublePrevention.repository.PreventDangerManageTimeoutRepository; import com.gkhy.safePlatform.doublePrevention.service.baseService.PreventDangerManageTimeoutService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service("PreventDangerManageTimeoutService") public class PreventDangerManageTimeoutServiceImpl extends ServiceImpl implements PreventDangerManageTimeoutService { @Autowired private PreventDangerManageTimeoutRepository preventDangerManageTimeoutRepository; /** * 是否延期状态设置 * */ @Override public int insert(PreventDangerManageTimeout manageTimeout) { return preventDangerManageTimeoutRepository.insert(manageTimeout); } /** * 延期 * */ @Override public int updateTimeout(PreventDangerManageTimeout manageTimeout) { return preventDangerManageTimeoutRepository.manageTimeout(manageTimeout); } /** * 延期状态-根据dangerManagerId查询 * */ @Override public PreventDangerManageTimeout getByManageId(Long dangerManagerId) { return preventDangerManageTimeoutRepository.getByManageId(dangerManagerId); } /** * 延期状态-根据RectifyId查询 * */ @Override public PreventDangerManageTimeout getByRectifyId(Long rectifyId) { return preventDangerManageTimeoutRepository.getByRectifyId(rectifyId); } }