hdy
2024-03-22 4ca73594828312fba2fd60afaae3928981ca6701
提交 | 用户 | 时间
4ca735 1 package com.jcdm.main.em.inspectionPlanInfo.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.inspectionPlanInfo.mapper.EmInspectionPlanInfoMapper;
8 import com.jcdm.main.em.inspectionPlanInfo.domain.EmInspectionPlanInfo;
9 import com.jcdm.main.em.inspectionPlanInfo.service.IEmInspectionPlanInfoService;
10
11 /**
12  * 设备点检保养计划Service业务层处理
13  * 
14  * @author Yi
15  * @date 2024-03-19
16  */
17 @Service
18 public class EmInspectionPlanInfoServiceImpl implements IEmInspectionPlanInfoService 
19 {
20     @Autowired
21     private EmInspectionPlanInfoMapper emInspectionPlanInfoMapper;
22
23     /**
24      * 查询设备点检保养计划
25      * 
26      * @param id 设备点检保养计划主键
27      * @return 设备点检保养计划
28      */
29     @Override
30     public EmInspectionPlanInfo selectEmInspectionPlanInfoById(Long id)
31     {
32         return emInspectionPlanInfoMapper.selectEmInspectionPlanInfoById(id);
33     }
34
35     /**
36      * 查询设备点检保养计划列表
37      * 
38      * @param emInspectionPlanInfo 设备点检保养计划
39      * @return 设备点检保养计划
40      */
41     @Override
42     public List<EmInspectionPlanInfo> selectEmInspectionPlanInfoList(EmInspectionPlanInfo emInspectionPlanInfo)
43     {
44         return emInspectionPlanInfoMapper.selectEmInspectionPlanInfoList(emInspectionPlanInfo);
45     }
46
47     /**
48      * 新增设备点检保养计划
49      * 
50      * @param emInspectionPlanInfo 设备点检保养计划
51      * @return 结果
52      */
53     @Override
54     public int insertEmInspectionPlanInfo(EmInspectionPlanInfo emInspectionPlanInfo)
55     {
56         emInspectionPlanInfo.setCreateTime(DateUtils.getNowDate());
57         return emInspectionPlanInfoMapper.insertEmInspectionPlanInfo(emInspectionPlanInfo);
58     }
59
60     /**
61      * 修改设备点检保养计划
62      * 
63      * @param emInspectionPlanInfo 设备点检保养计划
64      * @return 结果
65      */
66     @Override
67     public int updateEmInspectionPlanInfo(EmInspectionPlanInfo emInspectionPlanInfo)
68     {
69         emInspectionPlanInfo.setUpdateTime(DateUtils.getNowDate());
70         return emInspectionPlanInfoMapper.updateEmInspectionPlanInfo(emInspectionPlanInfo);
71     }
72
73     /**
74      * 批量删除设备点检保养计划
75      * 
76      * @param ids 需要删除的设备点检保养计划主键
77      * @return 结果
78      */
79     @Override
80     public int deleteEmInspectionPlanInfoByIds(Long[] ids)
81     {
82         return emInspectionPlanInfoMapper.deleteEmInspectionPlanInfoByIds(ids);
83     }
84
85     /**
86      * 删除设备点检保养计划信息
87      * 
88      * @param id 设备点检保养计划主键
89      * @return 结果
90      */
91     @Override
92     public int deleteEmInspectionPlanInfoById(Long id)
93     {
94         return emInspectionPlanInfoMapper.deleteEmInspectionPlanInfoById(id);
95     }
96 }