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