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