懒羊羊
2024-03-23 5239031423deb80a31ac328838240adc51594804
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package com.jcdm.main.em.inspectionPlanTask.service.impl;
 
import java.util.List;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jcdm.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jcdm.main.em.inspectionPlanTask.mapper.EmInspectionPlanTaskMapper;
import com.jcdm.main.em.inspectionPlanTask.domain.EmInspectionPlanTask;
import com.jcdm.main.em.inspectionPlanTask.service.IEmInspectionPlanTaskService;
 
/**
 * 点检任务Service业务层处理
 * 
 * @author Yi
 * @date 2024-03-23
 */
@Service
public class EmInspectionPlanTaskServiceImpl extends ServiceImpl<EmInspectionPlanTaskMapper,EmInspectionPlanTask> implements IEmInspectionPlanTaskService
{
    @Autowired
    private EmInspectionPlanTaskMapper emInspectionPlanTaskMapper;
 
    /**
     * 查询点检任务
     * 
     * @param id 点检任务主键
     * @return 点检任务
     */
    @Override
    public EmInspectionPlanTask selectEmInspectionPlanTaskById(Long id)
    {
        return emInspectionPlanTaskMapper.selectEmInspectionPlanTaskById(id);
    }
 
    /**
     * 查询点检任务列表
     * 
     * @param emInspectionPlanTask 点检任务
     * @return 点检任务
     */
    @Override
    public List<EmInspectionPlanTask> selectEmInspectionPlanTaskList(EmInspectionPlanTask emInspectionPlanTask)
    {
        return emInspectionPlanTaskMapper.selectEmInspectionPlanTaskList(emInspectionPlanTask);
    }
 
    /**
     * 新增点检任务
     * 
     * @param emInspectionPlanTask 点检任务
     * @return 结果
     */
    @Override
    public int insertEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask)
    {
        emInspectionPlanTask.setCreateTime(DateUtils.getNowDate());
        return emInspectionPlanTaskMapper.insertEmInspectionPlanTask(emInspectionPlanTask);
    }
 
    /**
     * 修改点检任务
     * 
     * @param emInspectionPlanTask 点检任务
     * @return 结果
     */
    @Override
    public int updateEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask)
    {
        emInspectionPlanTask.setUpdateTime(DateUtils.getNowDate());
        return emInspectionPlanTaskMapper.updateEmInspectionPlanTask(emInspectionPlanTask);
    }
 
    /**
     * 批量删除点检任务
     * 
     * @param ids 需要删除的点检任务主键
     * @return 结果
     */
    @Override
    public int deleteEmInspectionPlanTaskByIds(Long[] ids)
    {
        return emInspectionPlanTaskMapper.deleteEmInspectionPlanTaskByIds(ids);
    }
 
    /**
     * 删除点检任务信息
     * 
     * @param id 点检任务主键
     * @return 结果
     */
    @Override
    public int deleteEmInspectionPlanTaskById(Long id)
    {
        return emInspectionPlanTaskMapper.deleteEmInspectionPlanTaskById(id);
    }
}