admin
2024-10-15 6d313a4a6f9f9d7ea65ec50ab0d4491e595edb97
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
99
package com.jcdm.main.rm.repairRecord.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jcdm.common.utils.DateUtils;
import com.jcdm.main.rm.repairRecord.domain.RmRepairRecord;
import com.jcdm.main.rm.repairRecord.mapper.RmRepairRecordMapper;
import com.jcdm.main.rm.repairRecord.service.IRmRepairRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * 返修记录Service业务层处理
 * 
 * @author Yi
 * @date 2023-12-22
 */
@Service
public class RmRepairRecordServiceImpl extends ServiceImpl<RmRepairRecordMapper,RmRepairRecord> implements IRmRepairRecordService
{
    @Autowired
    private RmRepairRecordMapper rmRepairRecordMapper;
 
    /**
     * 查询返修记录
     * 
     * @param id 返修记录主键
     * @return 返修记录
     */
    @Override
    public RmRepairRecord selectRmRepairRecordById(Long id)
    {
        return rmRepairRecordMapper.selectRmRepairRecordById(id);
    }
 
    /**
     * 查询返修记录列表
     * 
     * @param rmRepairRecord 返修记录
     * @return 返修记录
     */
    @Override
    public List<RmRepairRecord> selectRmRepairRecordList(RmRepairRecord rmRepairRecord)
    {
        return rmRepairRecordMapper.selectRmRepairRecordList(rmRepairRecord);
    }
 
    /**
     * 新增返修记录
     * 
     * @param rmRepairRecord 返修记录
     * @return 结果
     */
    @Override
    public int insertRmRepairRecord(RmRepairRecord rmRepairRecord)
    {
        rmRepairRecord.setCreateTime(DateUtils.getNowDate());
        return rmRepairRecordMapper.insertRmRepairRecord(rmRepairRecord);
    }
 
    /**
     * 修改返修记录
     * 
     * @param rmRepairRecord 返修记录
     * @return 结果
     */
    @Override
    public int updateRmRepairRecord(RmRepairRecord rmRepairRecord)
    {
        rmRepairRecord.setUpdateTime(DateUtils.getNowDate());
        return rmRepairRecordMapper.updateRmRepairRecord(rmRepairRecord);
    }
 
    /**
     * 批量删除返修记录
     * 
     * @param ids 需要删除的返修记录主键
     * @return 结果
     */
    @Override
    public int deleteRmRepairRecordByIds(Long[] ids)
    {
        return rmRepairRecordMapper.deleteRmRepairRecordByIds(ids);
    }
 
    /**
     * 删除返修记录信息
     * 
     * @param id 返修记录主键
     * @return 结果
     */
    @Override
    public int deleteRmRepairRecordById(Long id)
    {
        return rmRepairRecordMapper.deleteRmRepairRecordById(id);
    }
}