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