春风项目四线(合箱线、总装线)
懒羊羊
2024-01-08 fd220719968cd03cf50bb43dfca021ad0d256b4e
提交 | 用户 | 时间
fd2207 1 package com.jcdm.main.rm.repairRecord.service.impl;
2
3 import java.util.List;
4 import com.jcdm.common.utils.DateUtils;
5 import org.springframework.beans.factory.annotation.Autowired;
6 import org.springframework.stereotype.Service;
7 import com.jcdm.main.rm.repairRecord.mapper.RmRepairRecordMapper;
8 import com.jcdm.main.rm.repairRecord.domain.RmRepairRecord;
9 import com.jcdm.main.rm.repairRecord.service.IRmRepairRecordService;
10
11 /**
12  * 返修记录Service业务层处理
13  * 
14  * @author Yi
15  * @date 2023-12-22
16  */
17 @Service
18 public class RmRepairRecordServiceImpl implements IRmRepairRecordService 
19 {
20     @Autowired
21     private RmRepairRecordMapper rmRepairRecordMapper;
22
23     /**
24      * 查询返修记录
25      * 
26      * @param id 返修记录主键
27      * @return 返修记录
28      */
29     @Override
30     public RmRepairRecord selectRmRepairRecordById(Long id)
31     {
32         return rmRepairRecordMapper.selectRmRepairRecordById(id);
33     }
34
35     /**
36      * 查询返修记录列表
37      * 
38      * @param rmRepairRecord 返修记录
39      * @return 返修记录
40      */
41     @Override
42     public List<RmRepairRecord> selectRmRepairRecordList(RmRepairRecord rmRepairRecord)
43     {
44         return rmRepairRecordMapper.selectRmRepairRecordList(rmRepairRecord);
45     }
46
47     /**
48      * 新增返修记录
49      * 
50      * @param rmRepairRecord 返修记录
51      * @return 结果
52      */
53     @Override
54     public int insertRmRepairRecord(RmRepairRecord rmRepairRecord)
55     {
56         rmRepairRecord.setCreateTime(DateUtils.getNowDate());
57         return rmRepairRecordMapper.insertRmRepairRecord(rmRepairRecord);
58     }
59
60     /**
61      * 修改返修记录
62      * 
63      * @param rmRepairRecord 返修记录
64      * @return 结果
65      */
66     @Override
67     public int updateRmRepairRecord(RmRepairRecord rmRepairRecord)
68     {
69         rmRepairRecord.setUpdateTime(DateUtils.getNowDate());
70         return rmRepairRecordMapper.updateRmRepairRecord(rmRepairRecord);
71     }
72
73     /**
74      * 批量删除返修记录
75      * 
76      * @param ids 需要删除的返修记录主键
77      * @return 结果
78      */
79     @Override
80     public int deleteRmRepairRecordByIds(Long[] ids)
81     {
82         return rmRepairRecordMapper.deleteRmRepairRecordByIds(ids);
83     }
84
85     /**
86      * 删除返修记录信息
87      * 
88      * @param id 返修记录主键
89      * @return 结果
90      */
91     @Override
92     public int deleteRmRepairRecordById(Long id)
93     {
94         return rmRepairRecordMapper.deleteRmRepairRecordById(id);
95     }
96 }