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