提交 | 用户 | 时间
|
849473
|
1 |
package com.billion.main.bs.service.impl; |
A |
2 |
|
|
3 |
import java.util.Date; |
|
4 |
import java.util.List; |
|
5 |
|
|
6 |
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
7 |
import com.billion.common.utils.DateUtils; |
|
8 |
import com.billion.common.utils.SecurityUtils; |
|
9 |
import org.springframework.beans.factory.annotation.Autowired; |
|
10 |
import org.springframework.stereotype.Service; |
|
11 |
import com.billion.main.bs.mapper.BsRouteChildInfoMapper; |
|
12 |
import com.billion.main.bs.domain.BsRouteChildInfo; |
|
13 |
import com.billion.main.bs.service.IBsRouteChildInfoService; |
|
14 |
|
|
15 |
import static org.apache.commons.lang3.SystemUtils.getUserName; |
|
16 |
|
|
17 |
/** |
|
18 |
* 工艺路线子信息Service业务层处理 |
|
19 |
* |
|
20 |
* @author Billion-Yi |
|
21 |
* @date 2024-11-23 |
|
22 |
*/ |
|
23 |
@Service |
|
24 |
public class BsRouteChildInfoServiceImpl extends ServiceImpl<BsRouteChildInfoMapper, BsRouteChildInfo> implements IBsRouteChildInfoService |
|
25 |
{ |
|
26 |
@Autowired |
|
27 |
private BsRouteChildInfoMapper bsRouteChildInfoMapper; |
|
28 |
|
|
29 |
/** |
|
30 |
* 查询工艺路线子信息 |
|
31 |
* |
|
32 |
* @param id 工艺路线子信息主键 |
|
33 |
* @return 工艺路线子信息 |
|
34 |
*/ |
|
35 |
@Override |
|
36 |
public BsRouteChildInfo selectBsRouteChildInfoById(Long id) |
|
37 |
{ |
|
38 |
return bsRouteChildInfoMapper.selectBsRouteChildInfoById(id); |
|
39 |
} |
|
40 |
|
|
41 |
/** |
|
42 |
* 查询工艺路线子信息列表 |
|
43 |
* |
|
44 |
* @param bsRouteChildInfo 工艺路线子信息 |
|
45 |
* @return 工艺路线子信息 |
|
46 |
*/ |
|
47 |
@Override |
|
48 |
public List<BsRouteChildInfo> selectBsRouteChildInfoList(BsRouteChildInfo bsRouteChildInfo) |
|
49 |
{ |
|
50 |
return bsRouteChildInfoMapper.selectBsRouteChildInfoList(bsRouteChildInfo); |
|
51 |
} |
|
52 |
|
|
53 |
/** |
|
54 |
* 新增工艺路线子信息 |
|
55 |
* |
|
56 |
* @param bsRouteChildInfo 工艺路线子信息 |
|
57 |
* @return 结果 |
|
58 |
*/ |
|
59 |
@Override |
|
60 |
public int insertBsRouteChildInfo(BsRouteChildInfo bsRouteChildInfo) |
|
61 |
{ |
|
62 |
bsRouteChildInfo.setCreateTime(DateUtils.getNowDate()); |
|
63 |
bsRouteChildInfo.setCreateBy(getUserName()); |
|
64 |
return bsRouteChildInfoMapper.insertBsRouteChildInfo(bsRouteChildInfo); |
|
65 |
} |
|
66 |
|
|
67 |
/** |
|
68 |
* 修改工艺路线子信息 |
|
69 |
* |
|
70 |
* @param bsRouteChildInfo 工艺路线子信息 |
|
71 |
* @return 结果 |
|
72 |
*/ |
|
73 |
@Override |
|
74 |
public int updateBsRouteChildInfo(BsRouteChildInfo bsRouteChildInfo) |
|
75 |
{ |
|
76 |
bsRouteChildInfo.setUpdateTime(DateUtils.getNowDate()); |
|
77 |
bsRouteChildInfo.setUpdateBy(getUserName()); |
|
78 |
return bsRouteChildInfoMapper.updateBsRouteChildInfo(bsRouteChildInfo); |
|
79 |
} |
|
80 |
|
|
81 |
/** |
|
82 |
* 批量删除工艺路线子信息 |
|
83 |
* |
|
84 |
* @param ids 需要删除的工艺路线子信息主键 |
|
85 |
* @return 结果 |
|
86 |
*/ |
|
87 |
@Override |
|
88 |
public int deleteBsRouteChildInfoByIds(Long[] ids) |
|
89 |
{ |
|
90 |
return bsRouteChildInfoMapper.deleteBsRouteChildInfoByIds(ids); |
|
91 |
} |
|
92 |
|
|
93 |
/** |
|
94 |
* 删除工艺路线子信息信息 |
|
95 |
* |
|
96 |
* @param id 工艺路线子信息主键 |
|
97 |
* @return 结果 |
|
98 |
*/ |
|
99 |
@Override |
|
100 |
public int deleteBsRouteChildInfoById(Long id) |
|
101 |
{ |
|
102 |
return bsRouteChildInfoMapper.deleteBsRouteChildInfoById(id); |
|
103 |
} |
|
104 |
} |