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