春风项目四线(合箱线、总装线)
懒羊羊
2024-01-15 f119894e61a56d584c140b40baa6a4420dc8e8d6
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
package com.jcdm.main.rm.repairRecord.service.impl;
 
import java.util.List;
import com.jcdm.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jcdm.main.rm.repairRecord.mapper.RmRepairRecordMapper;
import com.jcdm.main.rm.repairRecord.domain.RmRepairRecord;
import com.jcdm.main.rm.repairRecord.service.IRmRepairRecordService;
 
/**
 * 返修记录Service业务层处理
 * 
 * @author Yi
 * @date 2023-12-22
 */
@Service
public class RmRepairRecordServiceImpl 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);
    }
}