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