-
懒羊羊
2024-03-29 0caf8761b4af8163a691ebb56723286926529ee4
提交 | 用户 | 时间
e57a89 1 package com.jcdm.main.em.equipmentStatus.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.equipmentStatus.mapper.EmEquipmentStatusMapper;
10 import com.jcdm.main.em.equipmentStatus.domain.EmEquipmentStatus;
11 import com.jcdm.main.em.equipmentStatus.service.IEmEquipmentStatusService;
12
13 /**
14  * 设备状态Service业务层处理
15  * 
16  * @author ruimin
17  * @date 2023-12-27
18  */
19 @Service
0ce25f 20 public class EmEquipmentStatusServiceImpl extends ServiceImpl<EmEquipmentStatusMapper,EmEquipmentStatus> implements IEmEquipmentStatusService
e57a89 21 {
22     @Autowired
23     private EmEquipmentStatusMapper emEquipmentStatusMapper;
24
25     /**
26      * 查询设备状态
27      * 
28      * @param id 设备状态主键
29      * @return 设备状态
30      */
31     @Override
32     public EmEquipmentStatus selectEmEquipmentStatusById(Long id)
33     {
34         return emEquipmentStatusMapper.selectEmEquipmentStatusById(id);
35     }
36
37     /**
38      * 查询设备状态列表
39      * 
40      * @param emEquipmentStatus 设备状态
41      * @return 设备状态
42      */
43     @Override
44     public List<EmEquipmentStatus> selectEmEquipmentStatusList(EmEquipmentStatus emEquipmentStatus)
45     {
46         return emEquipmentStatusMapper.selectEmEquipmentStatusList(emEquipmentStatus);
47     }
48
49     /**
50      * 新增设备状态
51      * 
52      * @param emEquipmentStatus 设备状态
53      * @return 结果
54      */
55     @Override
56     public int insertEmEquipmentStatus(EmEquipmentStatus emEquipmentStatus)
57     {
58         return emEquipmentStatusMapper.insertEmEquipmentStatus(emEquipmentStatus);
59     }
60
61     /**
62      * 修改设备状态
63      * 
64      * @param emEquipmentStatus 设备状态
65      * @return 结果
66      */
67     @Override
68     public int updateEmEquipmentStatus(EmEquipmentStatus emEquipmentStatus)
69     {
70         emEquipmentStatus.setUpdateTime(DateUtils.getNowDate());
71         return emEquipmentStatusMapper.updateEmEquipmentStatus(emEquipmentStatus);
72     }
73
74     /**
75      * 批量删除设备状态
76      * 
77      * @param ids 需要删除的设备状态主键
78      * @return 结果
79      */
80     @Override
81     public int deleteEmEquipmentStatusByIds(Long[] ids)
82     {
83         return emEquipmentStatusMapper.deleteEmEquipmentStatusByIds(ids);
84     }
85
86     /**
87      * 删除设备状态信息
88      * 
89      * @param id 设备状态主键
90      * @return 结果
91      */
92     @Override
93     public int deleteEmEquipmentStatusById(Long id)
94     {
95         return emEquipmentStatusMapper.deleteEmEquipmentStatusById(id);
96     }
97 }