提交 | 用户 | 时间
|
e57a89
|
1 |
package com.jcdm.main.bs.processes.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 com.jcdm.main.bs.processes.domain.BsProcessesInfo; |
|
8 |
import com.jcdm.main.bs.processes.mapper.BsProcessesInfoMapper; |
|
9 |
import com.jcdm.main.bs.processes.service.IBsProcessesInfoService; |
|
10 |
import org.springframework.beans.factory.annotation.Autowired; |
|
11 |
import org.springframework.stereotype.Service; |
|
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 BsProcessesInfoServiceImpl extends ServiceImpl<BsProcessesInfoMapper,BsProcessesInfo> implements IBsProcessesInfoService |
e57a89
|
23 |
{ |
懒 |
24 |
@Autowired |
|
25 |
private BsProcessesInfoMapper bsProcessesInfoMapper; |
|
26 |
|
|
27 |
/** |
|
28 |
* 查询工序信息 |
|
29 |
* |
|
30 |
* @param id 工序信息主键 |
|
31 |
* @return 工序信息 |
|
32 |
*/ |
|
33 |
@Override |
|
34 |
public BsProcessesInfo selectBsProcessesInfoById(Long id) |
|
35 |
{ |
|
36 |
return bsProcessesInfoMapper.selectBsProcessesInfoById(id); |
|
37 |
} |
|
38 |
|
|
39 |
/** |
|
40 |
* 查询工序信息列表 |
|
41 |
* |
|
42 |
* @param bsProcessesInfo 工序信息 |
|
43 |
* @return 工序信息 |
|
44 |
*/ |
|
45 |
@Override |
|
46 |
public List<BsProcessesInfo> selectBsProcessesInfoList(BsProcessesInfo bsProcessesInfo) |
|
47 |
{ |
|
48 |
return bsProcessesInfoMapper.selectBsProcessesInfoList(bsProcessesInfo); |
|
49 |
} |
|
50 |
|
|
51 |
/** |
|
52 |
* 新增工序信息 |
|
53 |
* |
|
54 |
* @param bsProcessesInfo 工序信息 |
|
55 |
* @return 结果 |
|
56 |
*/ |
|
57 |
@Override |
|
58 |
public int insertBsProcessesInfo(BsProcessesInfo bsProcessesInfo) |
|
59 |
{ |
|
60 |
bsProcessesInfo.setCreateTime(DateUtils.getNowDate()); |
|
61 |
bsProcessesInfo.setCreateUser(getUserName()); |
|
62 |
return bsProcessesInfoMapper.insertBsProcessesInfo(bsProcessesInfo); |
|
63 |
} |
|
64 |
|
|
65 |
/** |
|
66 |
* 修改工序信息 |
|
67 |
* |
|
68 |
* @param bsProcessesInfo 工序信息 |
|
69 |
* @return 结果 |
|
70 |
*/ |
|
71 |
@Override |
|
72 |
public int updateBsProcessesInfo(BsProcessesInfo bsProcessesInfo) |
|
73 |
{ |
|
74 |
bsProcessesInfo.setUpdateTime(DateUtils.getNowDate()); |
|
75 |
bsProcessesInfo.setUpdateUser(getUserName()); |
|
76 |
return bsProcessesInfoMapper.updateBsProcessesInfo(bsProcessesInfo); |
|
77 |
} |
|
78 |
|
|
79 |
/** |
|
80 |
* 批量删除工序信息 |
|
81 |
* |
|
82 |
* @param ids 需要删除的工序信息主键 |
|
83 |
* @return 结果 |
|
84 |
*/ |
|
85 |
@Override |
|
86 |
public int deleteBsProcessesInfoByIds(Long[] ids) |
|
87 |
{ |
|
88 |
return bsProcessesInfoMapper.deleteBsProcessesInfoByIds(ids); |
|
89 |
} |
|
90 |
|
|
91 |
/** |
|
92 |
* 删除工序信息信息 |
|
93 |
* |
|
94 |
* @param id 工序信息主键 |
|
95 |
* @return 结果 |
|
96 |
*/ |
|
97 |
@Override |
|
98 |
public int deleteBsProcessesInfoById(Long id) |
|
99 |
{ |
|
100 |
return bsProcessesInfoMapper.deleteBsProcessesInfoById(id); |
|
101 |
} |
|
102 |
} |