wujian
2024-03-28 1e39c55183c1f54d1587bf3a86b4c2210bcd592e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package com.jcdm.main.em.equipmentArchives.service.impl;
 
import java.util.List;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jcdm.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jcdm.main.em.equipmentArchives.mapper.EmEquipmentArchivesMapper;
import com.jcdm.main.em.equipmentArchives.domain.EmEquipmentArchives;
import com.jcdm.main.em.equipmentArchives.service.IEmEquipmentArchivesService;
 
/**
 * 设备档案Service业务层处理
 * 
 * @author Yi
 * @date 2023-12-26
 */
@Service
public class EmEquipmentArchivesServiceImpl extends ServiceImpl<EmEquipmentArchivesMapper,EmEquipmentArchives> implements IEmEquipmentArchivesService
{
    @Autowired
    private EmEquipmentArchivesMapper emEquipmentArchivesMapper;
 
    /**
     * 查询设备档案
     * 
     * @param id 设备档案主键
     * @return 设备档案
     */
    @Override
    public EmEquipmentArchives selectEmEquipmentArchivesById(Long id)
    {
        return emEquipmentArchivesMapper.selectEmEquipmentArchivesById(id);
    }
 
    /**
     * 查询设备档案列表
     * 
     * @param emEquipmentArchives 设备档案
     * @return 设备档案
     */
    @Override
    public List<EmEquipmentArchives> selectEmEquipmentArchivesList(EmEquipmentArchives emEquipmentArchives)
    {
        return emEquipmentArchivesMapper.selectEmEquipmentArchivesList(emEquipmentArchives);
    }
 
    /**
     * 新增设备档案
     * 
     * @param emEquipmentArchives 设备档案
     * @return 结果
     */
    @Override
    public int insertEmEquipmentArchives(EmEquipmentArchives emEquipmentArchives)
    {
        emEquipmentArchives.setCreateTime(DateUtils.getNowDate());
        return emEquipmentArchivesMapper.insertEmEquipmentArchives(emEquipmentArchives);
    }
 
    /**
     * 修改设备档案
     * 
     * @param emEquipmentArchives 设备档案
     * @return 结果
     */
    @Override
    public int updateEmEquipmentArchives(EmEquipmentArchives emEquipmentArchives)
    {
        emEquipmentArchives.setUpdateTime(DateUtils.getNowDate());
        return emEquipmentArchivesMapper.updateEmEquipmentArchives(emEquipmentArchives);
    }
 
    /**
     * 批量删除设备档案
     * 
     * @param ids 需要删除的设备档案主键
     * @return 结果
     */
    @Override
    public int deleteEmEquipmentArchivesByIds(Long[] ids)
    {
        return emEquipmentArchivesMapper.deleteEmEquipmentArchivesByIds(ids);
    }
 
    /**
     * 删除设备档案信息
     * 
     * @param id 设备档案主键
     * @return 结果
     */
    @Override
    public int deleteEmEquipmentArchivesById(Long id)
    {
        return emEquipmentArchivesMapper.deleteEmEquipmentArchivesById(id);
    }
}