wujian
2024-03-28 1e39c55183c1f54d1587bf3a86b4c2210bcd592e
提交 | 用户 | 时间
e57a89 1 package com.jcdm.main.em.equipmentArchives.service.impl;
2
3 import java.util.List;
0ce25f 4
W 5 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
e57a89 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.equipmentArchives.mapper.EmEquipmentArchivesMapper;
10 import com.jcdm.main.em.equipmentArchives.domain.EmEquipmentArchives;
11 import com.jcdm.main.em.equipmentArchives.service.IEmEquipmentArchivesService;
12
13 /**
14  * 设备档案Service业务层处理
15  * 
16  * @author Yi
17  * @date 2023-12-26
18  */
19 @Service
0ce25f 20 public class EmEquipmentArchivesServiceImpl extends ServiceImpl<EmEquipmentArchivesMapper,EmEquipmentArchives> implements IEmEquipmentArchivesService
e57a89 21 {
22     @Autowired
23     private EmEquipmentArchivesMapper emEquipmentArchivesMapper;
24
25     /**
26      * 查询设备档案
27      * 
28      * @param id 设备档案主键
29      * @return 设备档案
30      */
31     @Override
32     public EmEquipmentArchives selectEmEquipmentArchivesById(Long id)
33     {
34         return emEquipmentArchivesMapper.selectEmEquipmentArchivesById(id);
35     }
36
37     /**
38      * 查询设备档案列表
39      * 
40      * @param emEquipmentArchives 设备档案
41      * @return 设备档案
42      */
43     @Override
44     public List<EmEquipmentArchives> selectEmEquipmentArchivesList(EmEquipmentArchives emEquipmentArchives)
45     {
46         return emEquipmentArchivesMapper.selectEmEquipmentArchivesList(emEquipmentArchives);
47     }
48
49     /**
50      * 新增设备档案
51      * 
52      * @param emEquipmentArchives 设备档案
53      * @return 结果
54      */
55     @Override
56     public int insertEmEquipmentArchives(EmEquipmentArchives emEquipmentArchives)
57     {
58         emEquipmentArchives.setCreateTime(DateUtils.getNowDate());
59         return emEquipmentArchivesMapper.insertEmEquipmentArchives(emEquipmentArchives);
60     }
61
62     /**
63      * 修改设备档案
64      * 
65      * @param emEquipmentArchives 设备档案
66      * @return 结果
67      */
68     @Override
69     public int updateEmEquipmentArchives(EmEquipmentArchives emEquipmentArchives)
70     {
71         emEquipmentArchives.setUpdateTime(DateUtils.getNowDate());
72         return emEquipmentArchivesMapper.updateEmEquipmentArchives(emEquipmentArchives);
73     }
74
75     /**
76      * 批量删除设备档案
77      * 
78      * @param ids 需要删除的设备档案主键
79      * @return 结果
80      */
81     @Override
82     public int deleteEmEquipmentArchivesByIds(Long[] ids)
83     {
84         return emEquipmentArchivesMapper.deleteEmEquipmentArchivesByIds(ids);
85     }
86
87     /**
88      * 删除设备档案信息
89      * 
90      * @param id 设备档案主键
91      * @return 结果
92      */
93     @Override
94     public int deleteEmEquipmentArchivesById(Long id)
95     {
96         return emEquipmentArchivesMapper.deleteEmEquipmentArchivesById(id);
97     }
98 }