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