提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.main.rm.repairData.service.impl; |
懒 |
2 |
|
|
3 |
import com.jcdm.common.utils.DateUtils; |
8aafc5
|
4 |
import com.jcdm.main.rm.repairData.domain.RmRepairData; |
W |
5 |
import com.jcdm.main.rm.repairData.mapper.RmRepairDataMapper; |
|
6 |
import com.jcdm.main.rm.repairData.service.IRmRepairDataService; |
fd2207
|
7 |
import org.springframework.beans.factory.annotation.Autowired; |
懒 |
8 |
import org.springframework.stereotype.Service; |
8aafc5
|
9 |
|
W |
10 |
import java.util.List; |
fd2207
|
11 |
|
懒 |
12 |
/** |
|
13 |
* 返修数据Service业务层处理 |
|
14 |
* |
|
15 |
* @author Yi |
|
16 |
* @date 2023-12-22 |
|
17 |
*/ |
|
18 |
@Service |
|
19 |
public class RmRepairDataServiceImpl implements IRmRepairDataService |
|
20 |
{ |
|
21 |
@Autowired |
|
22 |
private RmRepairDataMapper rmRepairDataMapper; |
|
23 |
|
|
24 |
/** |
|
25 |
* 查询返修数据 |
|
26 |
* |
|
27 |
* @param id 返修数据主键 |
|
28 |
* @return 返修数据 |
|
29 |
*/ |
|
30 |
@Override |
|
31 |
public RmRepairData selectRmRepairDataById(Long id) |
|
32 |
{ |
|
33 |
return rmRepairDataMapper.selectRmRepairDataById(id); |
|
34 |
} |
|
35 |
|
|
36 |
/** |
|
37 |
* 查询返修数据列表 |
|
38 |
* |
|
39 |
* @param rmRepairData 返修数据 |
|
40 |
* @return 返修数据 |
|
41 |
*/ |
|
42 |
@Override |
|
43 |
public List<RmRepairData> selectRmRepairDataList(RmRepairData rmRepairData) |
|
44 |
{ |
|
45 |
return rmRepairDataMapper.selectRmRepairDataList(rmRepairData); |
|
46 |
} |
|
47 |
|
|
48 |
/** |
|
49 |
* 新增返修数据 |
|
50 |
* |
|
51 |
* @param rmRepairData 返修数据 |
|
52 |
* @return 结果 |
|
53 |
*/ |
|
54 |
@Override |
|
55 |
public int insertRmRepairData(RmRepairData rmRepairData) |
|
56 |
{ |
|
57 |
rmRepairData.setCreateTime(DateUtils.getNowDate()); |
|
58 |
return rmRepairDataMapper.insertRmRepairData(rmRepairData); |
|
59 |
} |
|
60 |
|
|
61 |
/** |
|
62 |
* 修改返修数据 |
|
63 |
* |
|
64 |
* @param rmRepairData 返修数据 |
|
65 |
* @return 结果 |
|
66 |
*/ |
|
67 |
@Override |
|
68 |
public int updateRmRepairData(RmRepairData rmRepairData) |
|
69 |
{ |
|
70 |
rmRepairData.setUpdateTime(DateUtils.getNowDate()); |
|
71 |
return rmRepairDataMapper.updateRmRepairData(rmRepairData); |
|
72 |
} |
|
73 |
|
|
74 |
/** |
|
75 |
* 批量删除返修数据 |
|
76 |
* |
|
77 |
* @param ids 需要删除的返修数据主键 |
|
78 |
* @return 结果 |
|
79 |
*/ |
|
80 |
@Override |
|
81 |
public int deleteRmRepairDataByIds(Long[] ids) |
|
82 |
{ |
|
83 |
return rmRepairDataMapper.deleteRmRepairDataByIds(ids); |
|
84 |
} |
|
85 |
|
|
86 |
/** |
|
87 |
* 删除返修数据信息 |
|
88 |
* |
|
89 |
* @param id 返修数据主键 |
|
90 |
* @return 结果 |
|
91 |
*/ |
|
92 |
@Override |
|
93 |
public int deleteRmRepairDataById(Long id) |
|
94 |
{ |
|
95 |
return rmRepairDataMapper.deleteRmRepairDataById(id); |
|
96 |
} |
|
97 |
} |