提交 | 用户 | 时间
|
0cceb6
|
1 |
package com.jcdm.main.bs.modelNumber.service.impl; |
Y |
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.bs.modelNumber.mapper.BsModelNumberMapper; |
|
8 |
import com.jcdm.main.bs.modelNumber.domain.BsModelNumber; |
|
9 |
import com.jcdm.main.bs.modelNumber.service.IBsModelNumberService; |
|
10 |
|
|
11 |
/** |
|
12 |
* 机型序号Service业务层处理 |
|
13 |
* |
|
14 |
* @author jiang |
|
15 |
* @date 2024-01-15 |
|
16 |
*/ |
|
17 |
@Service |
|
18 |
public class BsModelNumberServiceImpl implements IBsModelNumberService |
|
19 |
{ |
|
20 |
@Autowired |
|
21 |
private BsModelNumberMapper bsModelNumberMapper; |
|
22 |
|
|
23 |
/** |
|
24 |
* 查询机型序号 |
|
25 |
* |
|
26 |
* @param id 机型序号主键 |
|
27 |
* @return 机型序号 |
|
28 |
*/ |
|
29 |
@Override |
|
30 |
public BsModelNumber selectBsModelNumberById(Long id) |
|
31 |
{ |
|
32 |
return bsModelNumberMapper.selectBsModelNumberById(id); |
|
33 |
} |
|
34 |
|
|
35 |
/** |
|
36 |
* 查询机型序号列表 |
|
37 |
* |
|
38 |
* @param bsModelNumber 机型序号 |
|
39 |
* @return 机型序号 |
|
40 |
*/ |
|
41 |
@Override |
|
42 |
public List<BsModelNumber> selectBsModelNumberList(BsModelNumber bsModelNumber) |
|
43 |
{ |
|
44 |
return bsModelNumberMapper.selectBsModelNumberList(bsModelNumber); |
|
45 |
} |
|
46 |
|
|
47 |
/** |
|
48 |
* 新增机型序号 |
|
49 |
* |
|
50 |
* @param bsModelNumber 机型序号 |
|
51 |
* @return 结果 |
|
52 |
*/ |
|
53 |
@Override |
|
54 |
public int insertBsModelNumber(BsModelNumber bsModelNumber) |
|
55 |
{ |
|
56 |
bsModelNumber.setCreateTime(DateUtils.getNowDate()); |
|
57 |
return bsModelNumberMapper.insertBsModelNumber(bsModelNumber); |
|
58 |
} |
|
59 |
|
|
60 |
/** |
|
61 |
* 修改机型序号 |
|
62 |
* |
|
63 |
* @param bsModelNumber 机型序号 |
|
64 |
* @return 结果 |
|
65 |
*/ |
|
66 |
@Override |
|
67 |
public int updateBsModelNumber(BsModelNumber bsModelNumber) |
|
68 |
{ |
|
69 |
bsModelNumber.setUpdateTime(DateUtils.getNowDate()); |
|
70 |
return bsModelNumberMapper.updateBsModelNumber(bsModelNumber); |
|
71 |
} |
|
72 |
|
|
73 |
/** |
|
74 |
* 批量删除机型序号 |
|
75 |
* |
|
76 |
* @param ids 需要删除的机型序号主键 |
|
77 |
* @return 结果 |
|
78 |
*/ |
|
79 |
@Override |
|
80 |
public int deleteBsModelNumberByIds(Long[] ids) |
|
81 |
{ |
|
82 |
return bsModelNumberMapper.deleteBsModelNumberByIds(ids); |
|
83 |
} |
|
84 |
|
|
85 |
/** |
|
86 |
* 删除机型序号信息 |
|
87 |
* |
|
88 |
* @param id 机型序号主键 |
|
89 |
* @return 结果 |
|
90 |
*/ |
|
91 |
@Override |
|
92 |
public int deleteBsModelNumberById(Long id) |
|
93 |
{ |
|
94 |
return bsModelNumberMapper.deleteBsModelNumberById(id); |
|
95 |
} |
|
96 |
} |