春风项目四线(合箱线、总装线)
yyt
2024-05-06 bbc5784cc34d65e64d639d949e75b978fe07bdb3
提交 | 用户 | 时间
fd2207 1 package com.jcdm.main.bs.lineInfo.service.impl;
2
3 import java.util.List;
4 import com.jcdm.common.utils.DateUtils;
5 import org.springframework.beans.factory.annotation.Autowired;
6 import org.springframework.stereotype.Service;
7 import com.jcdm.main.bs.lineInfo.mapper.BsLineInfoMapper;
8 import com.jcdm.main.bs.lineInfo.domain.BsLineInfo;
9 import com.jcdm.main.bs.lineInfo.service.IBsLineInfoService;
10
11 import static org.apache.commons.lang3.SystemUtils.getUserName;
12
13 /**
14  * 产线信息Service业务层处理
15  * 
16  * @author Yi
17  * @date 2023-12-09
18  */
19 @Service
20 public class BsLineInfoServiceImpl implements IBsLineInfoService 
21 {
22     @Autowired
23     private BsLineInfoMapper bsLineInfoMapper;
24
25     /**
26      * 查询产线信息
27      * 
28      * @param id 产线信息主键
29      * @return 产线信息
30      */
31     @Override
32     public BsLineInfo selectBsLineInfoById(Long id)
33     {
34         return bsLineInfoMapper.selectBsLineInfoById(id);
35     }
36
37     /**
38      * 查询产线信息列表
39      * 
40      * @param bsLineInfo 产线信息
41      * @return 产线信息
42      */
43     @Override
44     public List<BsLineInfo> selectBsLineInfoList(BsLineInfo bsLineInfo)
45     {
46         return bsLineInfoMapper.selectBsLineInfoList(bsLineInfo);
47     }
48
49     /**
50      * 新增产线信息
51      * 
52      * @param bsLineInfo 产线信息
53      * @return 结果
54      */
55     @Override
56     public int insertBsLineInfo(BsLineInfo bsLineInfo)
57     {
58         bsLineInfo.setCreateTime(DateUtils.getNowDate());
59         bsLineInfo.setCreateUser(getUserName());
60         return bsLineInfoMapper.insertBsLineInfo(bsLineInfo);
61     }
62
63     /**
64      * 修改产线信息
65      * 
66      * @param bsLineInfo 产线信息
67      * @return 结果
68      */
69     @Override
70     public int updateBsLineInfo(BsLineInfo bsLineInfo)
71     {
72         bsLineInfo.setUpdateTime(DateUtils.getNowDate());
73         bsLineInfo.setUpdateUser(getUserName());
74         return bsLineInfoMapper.updateBsLineInfo(bsLineInfo);
75     }
76
77     /**
78      * 批量删除产线信息
79      * 
80      * @param ids 需要删除的产线信息主键
81      * @return 结果
82      */
83     @Override
84     public int deleteBsLineInfoByIds(Long[] ids)
85     {
86         return bsLineInfoMapper.deleteBsLineInfoByIds(ids);
87     }
88
89     /**
90      * 删除产线信息信息
91      * 
92      * @param id 产线信息主键
93      * @return 结果
94      */
95     @Override
96     public int deleteBsLineInfoById(Long id)
97     {
98         return bsLineInfoMapper.deleteBsLineInfoById(id);
99     }
100 }