春风项目四线(合箱线、总装线)
懒羊羊
2024-01-16 f1d9df303a33ef98066e4bf044b1114e1f3f629d
提交 | 用户 | 时间
fd2207 1 package com.jcdm.main.bs.material.service.impl;
2
3 import java.util.List;
4 import com.jcdm.common.utils.DateUtils;
5 import com.jcdm.main.bs.material.domain.BsMaterialInfo;
6 import com.jcdm.main.bs.material.mapper.BsMaterialInfoMapper;
7 import com.jcdm.main.bs.material.service.IBsMaterialInfoService;
8 import org.springframework.beans.factory.annotation.Autowired;
9 import org.springframework.stereotype.Service;
10
11 /**
12  * 物料信息Service业务层处理
13  * 
14  * @author yyt
15  * @date 2023-12-09
16  */
17 @Service
18 public class BsMaterialInfoServiceImpl implements IBsMaterialInfoService
19 {
20     @Autowired
21     private BsMaterialInfoMapper bsMaterialInfoMapper;
22
23     /**
24      * 查询物料信息
25      * 
26      * @param id 物料信息主键
27      * @return 物料信息
28      */
29     @Override
30     public BsMaterialInfo selectBsMaterialInfoById(Long id)
31     {
32         return bsMaterialInfoMapper.selectBsMaterialInfoById(id);
33     }
34
35     /**
36      * 查询物料信息列表
37      * 
38      * @param bsMaterialInfo 物料信息
39      * @return 物料信息
40      */
41     @Override
42     public List<BsMaterialInfo> selectBsMaterialInfoList(BsMaterialInfo bsMaterialInfo)
43     {
44         return bsMaterialInfoMapper.selectBsMaterialInfoList(bsMaterialInfo);
45     }
46
47     /**
48      * 新增物料信息
49      * 
50      * @param bsMaterialInfo 物料信息
51      * @return 结果
52      */
53     @Override
54     public int insertBsMaterialInfo(BsMaterialInfo bsMaterialInfo)
55     {
56         return bsMaterialInfoMapper.insertBsMaterialInfo(bsMaterialInfo);
57     }
58
59     /**
60      * 修改物料信息
61      * 
62      * @param bsMaterialInfo 物料信息
63      * @return 结果
64      */
65     @Override
66     public int updateBsMaterialInfo(BsMaterialInfo bsMaterialInfo)
67     {
68         return bsMaterialInfoMapper.updateBsMaterialInfo(bsMaterialInfo);
69     }
70
71     /**
72      * 批量删除物料信息
73      * 
74      * @param ids 需要删除的物料信息主键
75      * @return 结果
76      */
77     @Override
78     public int deleteBsMaterialInfoByIds(Long[] ids)
79     {
80         return bsMaterialInfoMapper.deleteBsMaterialInfoByIds(ids);
81     }
82
83     /**
84      * 删除物料信息信息
85      * 
86      * @param id 物料信息主键
87      * @return 结果
88      */
89     @Override
90     public int deleteBsMaterialInfoById(Long id)
91     {
92         return bsMaterialInfoMapper.deleteBsMaterialInfoById(id);
93     }
94 }