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