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