提交 | 用户 | 时间
|
b5450a
|
1 |
package com.jcdm.main.em.inspectionPlanItems.service.impl; |
H |
2 |
|
|
3 |
import java.util.List; |
0ce25f
|
4 |
|
W |
5 |
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
b5450a
|
6 |
import com.jcdm.common.utils.DateUtils; |
H |
7 |
import org.springframework.beans.factory.annotation.Autowired; |
|
8 |
import org.springframework.stereotype.Service; |
|
9 |
import com.jcdm.main.em.inspectionPlanItems.mapper.EmInspectionPlanItemsMapper; |
|
10 |
import com.jcdm.main.em.inspectionPlanItems.domain.EmInspectionPlanItems; |
|
11 |
import com.jcdm.main.em.inspectionPlanItems.service.IEmInspectionPlanItemsService; |
|
12 |
|
|
13 |
/** |
|
14 |
* 点检保养计划点检项目子Service业务层处理 |
|
15 |
* |
|
16 |
* @author Yi |
|
17 |
* @date 2024-03-13 |
|
18 |
*/ |
|
19 |
@Service |
0ce25f
|
20 |
public class EmInspectionPlanItemsServiceImpl extends ServiceImpl<EmInspectionPlanItemsMapper,EmInspectionPlanItems> implements IEmInspectionPlanItemsService |
b5450a
|
21 |
{ |
H |
22 |
@Autowired |
|
23 |
private EmInspectionPlanItemsMapper emInspectionPlanItemsMapper; |
|
24 |
|
|
25 |
/** |
|
26 |
* 查询点检保养计划点检项目子 |
|
27 |
* |
|
28 |
* @param id 点检保养计划点检项目子主键 |
|
29 |
* @return 点检保养计划点检项目子 |
|
30 |
*/ |
|
31 |
@Override |
|
32 |
public EmInspectionPlanItems selectEmInspectionPlanItemsById(Long id) |
|
33 |
{ |
|
34 |
return emInspectionPlanItemsMapper.selectEmInspectionPlanItemsById(id); |
|
35 |
} |
|
36 |
|
|
37 |
/** |
|
38 |
* 查询点检保养计划点检项目子列表 |
|
39 |
* |
|
40 |
* @param emInspectionPlanItems 点检保养计划点检项目子 |
|
41 |
* @return 点检保养计划点检项目子 |
|
42 |
*/ |
|
43 |
@Override |
|
44 |
public List<EmInspectionPlanItems> selectEmInspectionPlanItemsList(EmInspectionPlanItems emInspectionPlanItems) |
|
45 |
{ |
|
46 |
return emInspectionPlanItemsMapper.selectEmInspectionPlanItemsList(emInspectionPlanItems); |
|
47 |
} |
|
48 |
|
|
49 |
/** |
|
50 |
* 新增点检保养计划点检项目子 |
|
51 |
* |
|
52 |
* @param emInspectionPlanItems 点检保养计划点检项目子 |
|
53 |
* @return 结果 |
|
54 |
*/ |
|
55 |
@Override |
|
56 |
public int insertEmInspectionPlanItems(EmInspectionPlanItems emInspectionPlanItems) |
|
57 |
{ |
|
58 |
emInspectionPlanItems.setCreateTime(DateUtils.getNowDate()); |
|
59 |
return emInspectionPlanItemsMapper.insertEmInspectionPlanItems(emInspectionPlanItems); |
|
60 |
} |
|
61 |
|
|
62 |
/** |
|
63 |
* 修改点检保养计划点检项目子 |
|
64 |
* |
|
65 |
* @param emInspectionPlanItems 点检保养计划点检项目子 |
|
66 |
* @return 结果 |
|
67 |
*/ |
|
68 |
@Override |
|
69 |
public int updateEmInspectionPlanItems(EmInspectionPlanItems emInspectionPlanItems) |
|
70 |
{ |
|
71 |
emInspectionPlanItems.setUpdateTime(DateUtils.getNowDate()); |
|
72 |
return emInspectionPlanItemsMapper.updateEmInspectionPlanItems(emInspectionPlanItems); |
|
73 |
} |
|
74 |
|
|
75 |
/** |
|
76 |
* 批量删除点检保养计划点检项目子 |
|
77 |
* |
|
78 |
* @param ids 需要删除的点检保养计划点检项目子主键 |
|
79 |
* @return 结果 |
|
80 |
*/ |
|
81 |
@Override |
|
82 |
public int deleteEmInspectionPlanItemsByIds(Long[] ids) |
|
83 |
{ |
|
84 |
return emInspectionPlanItemsMapper.deleteEmInspectionPlanItemsByIds(ids); |
|
85 |
} |
|
86 |
|
|
87 |
/** |
|
88 |
* 删除点检保养计划点检项目子信息 |
|
89 |
* |
|
90 |
* @param id 点检保养计划点检项目子主键 |
|
91 |
* @return 结果 |
|
92 |
*/ |
|
93 |
@Override |
|
94 |
public int deleteEmInspectionPlanItemsById(Long id) |
|
95 |
{ |
|
96 |
return emInspectionPlanItemsMapper.deleteEmInspectionPlanItemsById(id); |
|
97 |
} |
|
98 |
} |