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