提交 | 用户 | 时间
|
9d822f
|
1 |
package com.billion.main.da.service.impl; |
A |
2 |
|
|
3 |
import java.util.List; |
|
4 |
|
|
5 |
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
6 |
import org.springframework.beans.factory.annotation.Autowired; |
|
7 |
import org.springframework.stereotype.Service; |
|
8 |
import com.billion.main.da.mapper.DaMaterialCollectionMapper; |
|
9 |
import com.billion.main.da.domain.DaMaterialCollection; |
|
10 |
import com.billion.main.da.service.IDaMaterialCollectionService; |
|
11 |
|
|
12 |
/** |
|
13 |
* 物料采集Service业务层处理 |
|
14 |
* |
|
15 |
* @author Billion-Yi |
|
16 |
* @date 2024-11-22 |
|
17 |
*/ |
|
18 |
@Service |
|
19 |
public class DaMaterialCollectionServiceImpl extends ServiceImpl<DaMaterialCollectionMapper, DaMaterialCollection> implements IDaMaterialCollectionService |
|
20 |
{ |
|
21 |
@Autowired |
|
22 |
private DaMaterialCollectionMapper daMaterialCollectionMapper; |
|
23 |
|
|
24 |
/** |
|
25 |
* 查询物料采集 |
|
26 |
* |
|
27 |
* @param id 物料采集主键 |
|
28 |
* @return 物料采集 |
|
29 |
*/ |
|
30 |
@Override |
|
31 |
public DaMaterialCollection selectDaMaterialCollectionById(Long id) |
|
32 |
{ |
|
33 |
return daMaterialCollectionMapper.selectDaMaterialCollectionById(id); |
|
34 |
} |
|
35 |
|
|
36 |
/** |
|
37 |
* 查询物料采集列表 |
|
38 |
* |
|
39 |
* @param daMaterialCollection 物料采集 |
|
40 |
* @return 物料采集 |
|
41 |
*/ |
|
42 |
@Override |
|
43 |
public List<DaMaterialCollection> selectDaMaterialCollectionList(DaMaterialCollection daMaterialCollection) |
|
44 |
{ |
|
45 |
return daMaterialCollectionMapper.selectDaMaterialCollectionList(daMaterialCollection); |
|
46 |
} |
|
47 |
|
|
48 |
/** |
|
49 |
* 新增物料采集 |
|
50 |
* |
|
51 |
* @param daMaterialCollection 物料采集 |
|
52 |
* @return 结果 |
|
53 |
*/ |
|
54 |
@Override |
|
55 |
public void insertDaMaterialCollection(DaMaterialCollection daMaterialCollection) |
|
56 |
{ |
|
57 |
this.save(daMaterialCollection); |
|
58 |
} |
|
59 |
|
|
60 |
/** |
|
61 |
* 修改物料采集 |
|
62 |
* |
|
63 |
* @param daMaterialCollection 物料采集 |
|
64 |
* @return 结果 |
|
65 |
*/ |
|
66 |
@Override |
|
67 |
public int updateDaMaterialCollection(DaMaterialCollection daMaterialCollection) |
|
68 |
{ |
|
69 |
return daMaterialCollectionMapper.updateDaMaterialCollection(daMaterialCollection); |
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* 批量删除物料采集 |
|
74 |
* |
|
75 |
* @param ids 需要删除的物料采集主键 |
|
76 |
* @return 结果 |
|
77 |
*/ |
|
78 |
@Override |
|
79 |
public int deleteDaMaterialCollectionByIds(Long[] ids) |
|
80 |
{ |
|
81 |
return daMaterialCollectionMapper.deleteDaMaterialCollectionByIds(ids); |
|
82 |
} |
|
83 |
|
|
84 |
/** |
|
85 |
* 删除物料采集信息 |
|
86 |
* |
|
87 |
* @param id 物料采集主键 |
|
88 |
* @return 结果 |
|
89 |
*/ |
|
90 |
@Override |
|
91 |
public int deleteDaMaterialCollectionById(Long id) |
|
92 |
{ |
|
93 |
return daMaterialCollectionMapper.deleteDaMaterialCollectionById(id); |
|
94 |
} |
|
95 |
} |