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