-
懒羊羊
2024-03-28 55a52ebc929a3ebf2e8dbae450c0c241abf7ff02
提交 | 用户 | 时间
523903 1 package com.jcdm.main.em.inspectionPlanTask.service.impl;
2
3 import java.util.List;
4
5 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
6 import com.jcdm.common.utils.DateUtils;
7 import org.springframework.beans.factory.annotation.Autowired;
8 import org.springframework.stereotype.Service;
9 import com.jcdm.main.em.inspectionPlanTask.mapper.EmInspectionPlanTaskMapper;
10 import com.jcdm.main.em.inspectionPlanTask.domain.EmInspectionPlanTask;
11 import com.jcdm.main.em.inspectionPlanTask.service.IEmInspectionPlanTaskService;
12
13 /**
14  * 点检任务Service业务层处理
15  * 
16  * @author Yi
17  * @date 2024-03-23
18  */
19 @Service
20 public class EmInspectionPlanTaskServiceImpl extends ServiceImpl<EmInspectionPlanTaskMapper,EmInspectionPlanTask> implements IEmInspectionPlanTaskService
21 {
22     @Autowired
23     private EmInspectionPlanTaskMapper emInspectionPlanTaskMapper;
24
25     /**
26      * 查询点检任务
27      * 
28      * @param id 点检任务主键
29      * @return 点检任务
30      */
31     @Override
32     public EmInspectionPlanTask selectEmInspectionPlanTaskById(Long id)
33     {
34         return emInspectionPlanTaskMapper.selectEmInspectionPlanTaskById(id);
35     }
36
37     /**
38      * 查询点检任务列表
39      * 
40      * @param emInspectionPlanTask 点检任务
41      * @return 点检任务
42      */
43     @Override
44     public List<EmInspectionPlanTask> selectEmInspectionPlanTaskList(EmInspectionPlanTask emInspectionPlanTask)
45     {
46         return emInspectionPlanTaskMapper.selectEmInspectionPlanTaskList(emInspectionPlanTask);
47     }
48
49     /**
50      * 新增点检任务
51      * 
52      * @param emInspectionPlanTask 点检任务
53      * @return 结果
54      */
55     @Override
56     public int insertEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask)
57     {
58         emInspectionPlanTask.setCreateTime(DateUtils.getNowDate());
59         return emInspectionPlanTaskMapper.insertEmInspectionPlanTask(emInspectionPlanTask);
60     }
61
62     /**
63      * 修改点检任务
64      * 
65      * @param emInspectionPlanTask 点检任务
66      * @return 结果
67      */
68     @Override
69     public int updateEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask)
70     {
71         emInspectionPlanTask.setUpdateTime(DateUtils.getNowDate());
72         return emInspectionPlanTaskMapper.updateEmInspectionPlanTask(emInspectionPlanTask);
73     }
74
75     /**
76      * 批量删除点检任务
77      * 
78      * @param ids 需要删除的点检任务主键
79      * @return 结果
80      */
81     @Override
82     public int deleteEmInspectionPlanTaskByIds(Long[] ids)
83     {
84         return emInspectionPlanTaskMapper.deleteEmInspectionPlanTaskByIds(ids);
85     }
86
87     /**
88      * 删除点检任务信息
89      * 
90      * @param id 点检任务主键
91      * @return 结果
92      */
93     @Override
94     public int deleteEmInspectionPlanTaskById(Long id)
95     {
96         return emInspectionPlanTaskMapper.deleteEmInspectionPlanTaskById(id);
97     }
98 }