yyt
8 天以前 0cceb649e1dc443c2a91d26d81eacb0867c96db3
提交 | 用户 | 时间
0cceb6 1 package com.jcdm.main.bs.productBomChild.service.impl;
Y 2
3 import java.util.List;
4
5 import com.jcdm.main.bs.productBomChild.domain.BsProductBomChildInfo;
6 import com.jcdm.main.bs.productBomChild.mapper.BsProductBomChildInfoMapper;
7 import com.jcdm.main.bs.productBomChild.service.IBsProductBomChildInfoService;
8 import org.springframework.beans.factory.annotation.Autowired;
9 import org.springframework.stereotype.Service;
10
11 /**
12  * 基础BOM子信息Service业务层处理
13  * 
14  * @author yyt
15  * @date 2023-12-11
16  */
17 @Service
18 public class BsProductBomChildInfoServiceImpl implements IBsProductBomChildInfoService
19 {
20     @Autowired
21     private BsProductBomChildInfoMapper bsProductBomChildInfoMapper;
22
23     /**
24      * 查询基础BOM子信息
25      * 
26      * @param id 基础BOM子信息主键
27      * @return 基础BOM子信息
28      */
29     @Override
30     public BsProductBomChildInfo selectBsProductBomChildInfoById(Long id)
31     {
32         return bsProductBomChildInfoMapper.selectBsProductBomChildInfoById(id);
33     }
34
35     /**
36      * 查询基础BOM子信息列表
37      * 
38      * @param bsProductBomChildInfo 基础BOM子信息
39      * @return 基础BOM子信息
40      */
41     @Override
42     public List<BsProductBomChildInfo> selectBsProductBomChildInfoList(BsProductBomChildInfo bsProductBomChildInfo)
43     {
44         return bsProductBomChildInfoMapper.selectBsProductBomChildInfoList(bsProductBomChildInfo);
45     }
46
47     /**
48      * 新增基础BOM子信息
49      * 
50      * @param bsProductBomChildInfo 基础BOM子信息
51      * @return 结果
52      */
53     @Override
54     public int insertBsProductBomChildInfo(BsProductBomChildInfo bsProductBomChildInfo)
55     {
56         return bsProductBomChildInfoMapper.insertBsProductBomChildInfo(bsProductBomChildInfo);
57     }
58
59     /**
60      * 修改基础BOM子信息
61      * 
62      * @param bsProductBomChildInfo 基础BOM子信息
63      * @return 结果
64      */
65     @Override
66     public int updateBsProductBomChildInfo(BsProductBomChildInfo bsProductBomChildInfo)
67     {
68         return bsProductBomChildInfoMapper.updateBsProductBomChildInfo(bsProductBomChildInfo);
69     }
70
71     /**
72      * 批量删除基础BOM子信息
73      * 
74      * @param ids 需要删除的基础BOM子信息主键
75      * @return 结果
76      */
77     @Override
78     public int deleteBsProductBomChildInfoByIds(Long[] ids)
79     {
80         return bsProductBomChildInfoMapper.deleteBsProductBomChildInfoByIds(ids);
81     }
82
83     /**
84      * 删除基础BOM子信息信息
85      * 
86      * @param id 基础BOM子信息主键
87      * @return 结果
88      */
89     @Override
90     public int deleteBsProductBomChildInfoById(Long id)
91     {
92         return bsProductBomChildInfoMapper.deleteBsProductBomChildInfoById(id);
93     }
94 }