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