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