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