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