郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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<PreventDangerManageTimeoutRepository, PreventDangerManageTimeout> 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);
    }
}