提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.main.bs.processFile.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.processFile.mapper.BsProcessFileMapper; |
|
8 |
import com.jcdm.main.bs.processFile.domain.BsProcessFile; |
|
9 |
import com.jcdm.main.bs.processFile.service.IBsProcessFileService; |
|
10 |
|
|
11 |
/** |
|
12 |
* 工艺文档Service业务层处理 |
|
13 |
* |
|
14 |
* @author Yi |
|
15 |
* @date 2024-01-03 |
|
16 |
*/ |
|
17 |
@Service |
|
18 |
public class BsProcessFileServiceImpl implements IBsProcessFileService |
|
19 |
{ |
|
20 |
@Autowired |
|
21 |
private BsProcessFileMapper bsProcessFileMapper; |
|
22 |
|
|
23 |
/** |
|
24 |
* 查询工艺文档 |
|
25 |
* |
|
26 |
* @param id 工艺文档主键 |
|
27 |
* @return 工艺文档 |
|
28 |
*/ |
|
29 |
@Override |
|
30 |
public BsProcessFile selectBsProcessFileById(Long id) |
|
31 |
{ |
|
32 |
return bsProcessFileMapper.selectBsProcessFileById(id); |
|
33 |
} |
|
34 |
|
|
35 |
/** |
|
36 |
* 查询工艺文档列表 |
|
37 |
* |
|
38 |
* @param bsProcessFile 工艺文档 |
|
39 |
* @return 工艺文档 |
|
40 |
*/ |
|
41 |
@Override |
|
42 |
public List<BsProcessFile> selectBsProcessFileList(BsProcessFile bsProcessFile) |
|
43 |
{ |
|
44 |
return bsProcessFileMapper.selectBsProcessFileList(bsProcessFile); |
|
45 |
} |
|
46 |
|
|
47 |
/** |
|
48 |
* 新增工艺文档 |
|
49 |
* |
|
50 |
* @param bsProcessFile 工艺文档 |
|
51 |
* @return 结果 |
|
52 |
*/ |
|
53 |
@Override |
|
54 |
public int insertBsProcessFile(BsProcessFile bsProcessFile) |
|
55 |
{ |
|
56 |
bsProcessFile.setCreateTime(DateUtils.getNowDate()); |
|
57 |
return bsProcessFileMapper.insertBsProcessFile(bsProcessFile); |
|
58 |
} |
|
59 |
|
|
60 |
/** |
|
61 |
* 修改工艺文档 |
|
62 |
* |
|
63 |
* @param bsProcessFile 工艺文档 |
|
64 |
* @return 结果 |
|
65 |
*/ |
|
66 |
@Override |
|
67 |
public int updateBsProcessFile(BsProcessFile bsProcessFile) |
|
68 |
{ |
|
69 |
bsProcessFile.setUpdateTime(DateUtils.getNowDate()); |
|
70 |
return bsProcessFileMapper.updateBsProcessFile(bsProcessFile); |
|
71 |
} |
|
72 |
|
|
73 |
/** |
|
74 |
* 批量删除工艺文档 |
|
75 |
* |
|
76 |
* @param ids 需要删除的工艺文档主键 |
|
77 |
* @return 结果 |
|
78 |
*/ |
|
79 |
@Override |
|
80 |
public int deleteBsProcessFileByIds(Long[] ids) |
|
81 |
{ |
|
82 |
return bsProcessFileMapper.deleteBsProcessFileByIds(ids); |
|
83 |
} |
|
84 |
|
|
85 |
/** |
|
86 |
* 删除工艺文档信息 |
|
87 |
* |
|
88 |
* @param id 工艺文档主键 |
|
89 |
* @return 结果 |
|
90 |
*/ |
|
91 |
@Override |
|
92 |
public int deleteBsProcessFileById(Long id) |
|
93 |
{ |
|
94 |
return bsProcessFileMapper.deleteBsProcessFileById(id); |
|
95 |
} |
|
96 |
} |