提交 | 用户 | 时间
|
0aaaba
|
1 |
package com.jcdm.main.bs.formulaChildInfoTemp.service.impl; |
A |
2 |
|
|
3 |
import java.util.List; |
|
4 |
|
|
5 |
import com.baomidou.mybatisplus.extension.service.IService; |
|
6 |
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
7 |
import com.jcdm.common.utils.DateUtils; |
|
8 |
import com.jcdm.main.bs.lineInfo.domain.BsLineInfo; |
|
9 |
import com.jcdm.main.bs.lineInfo.mapper.BsLineInfoMapper; |
|
10 |
import com.jcdm.main.bs.lineInfo.service.IBsLineInfoService; |
|
11 |
import org.springframework.beans.factory.annotation.Autowired; |
|
12 |
import org.springframework.stereotype.Service; |
|
13 |
import com.jcdm.main.bs.formulaChildInfoTemp.mapper.BsFormulaChildInfoTempMapper; |
|
14 |
import com.jcdm.main.bs.formulaChildInfoTemp.domain.BsFormulaChildInfoTemp; |
|
15 |
import com.jcdm.main.bs.formulaChildInfoTemp.service.IBsFormulaChildInfoTempService; |
|
16 |
|
|
17 |
/** |
|
18 |
* 配方配置子信息-备份Service业务层处理 |
|
19 |
* |
|
20 |
* @author Yi |
|
21 |
* @date 2024-07-15 |
|
22 |
*/ |
|
23 |
@Service |
|
24 |
public class BsFormulaChildInfoTempServiceImpl extends ServiceImpl<BsFormulaChildInfoTempMapper, BsFormulaChildInfoTemp> implements IBsFormulaChildInfoTempService |
|
25 |
{ |
|
26 |
@Autowired |
|
27 |
private BsFormulaChildInfoTempMapper bsFormulaChildInfoTempMapper; |
|
28 |
|
|
29 |
/** |
|
30 |
* 查询配方配置子信息-备份 |
|
31 |
* |
|
32 |
* @param id 配方配置子信息-备份主键 |
|
33 |
* @return 配方配置子信息-备份 |
|
34 |
*/ |
|
35 |
@Override |
|
36 |
public BsFormulaChildInfoTemp selectBsFormulaChildInfoTempById(Long id) |
|
37 |
{ |
|
38 |
return bsFormulaChildInfoTempMapper.selectBsFormulaChildInfoTempById(id); |
|
39 |
} |
|
40 |
|
|
41 |
/** |
|
42 |
* 查询配方配置子信息-备份列表 |
|
43 |
* |
|
44 |
* @param bsFormulaChildInfoTemp 配方配置子信息-备份 |
|
45 |
* @return 配方配置子信息-备份 |
|
46 |
*/ |
|
47 |
@Override |
|
48 |
public List<BsFormulaChildInfoTemp> selectBsFormulaChildInfoTempList(BsFormulaChildInfoTemp bsFormulaChildInfoTemp) |
|
49 |
{ |
|
50 |
return bsFormulaChildInfoTempMapper.selectBsFormulaChildInfoTempList(bsFormulaChildInfoTemp); |
|
51 |
} |
|
52 |
|
|
53 |
/** |
|
54 |
* 新增配方配置子信息-备份 |
|
55 |
* |
|
56 |
* @param bsFormulaChildInfoTemp 配方配置子信息-备份 |
|
57 |
* @return 结果 |
|
58 |
*/ |
|
59 |
@Override |
|
60 |
public int insertBsFormulaChildInfoTemp(BsFormulaChildInfoTemp bsFormulaChildInfoTemp) |
|
61 |
{ |
|
62 |
bsFormulaChildInfoTemp.setCreateTime(DateUtils.getNowDate()); |
|
63 |
return bsFormulaChildInfoTempMapper.insertBsFormulaChildInfoTemp(bsFormulaChildInfoTemp); |
|
64 |
} |
|
65 |
|
|
66 |
/** |
|
67 |
* 修改配方配置子信息-备份 |
|
68 |
* |
|
69 |
* @param bsFormulaChildInfoTemp 配方配置子信息-备份 |
|
70 |
* @return 结果 |
|
71 |
*/ |
|
72 |
@Override |
|
73 |
public int updateBsFormulaChildInfoTemp(BsFormulaChildInfoTemp bsFormulaChildInfoTemp) |
|
74 |
{ |
|
75 |
bsFormulaChildInfoTemp.setUpdateTime(DateUtils.getNowDate()); |
|
76 |
return bsFormulaChildInfoTempMapper.updateBsFormulaChildInfoTemp(bsFormulaChildInfoTemp); |
|
77 |
} |
|
78 |
|
|
79 |
/** |
|
80 |
* 批量删除配方配置子信息-备份 |
|
81 |
* |
|
82 |
* @param ids 需要删除的配方配置子信息-备份主键 |
|
83 |
* @return 结果 |
|
84 |
*/ |
|
85 |
@Override |
|
86 |
public int deleteBsFormulaChildInfoTempByIds(Long[] ids) |
|
87 |
{ |
|
88 |
return bsFormulaChildInfoTempMapper.deleteBsFormulaChildInfoTempByIds(ids); |
|
89 |
} |
|
90 |
|
|
91 |
/** |
|
92 |
* 删除配方配置子信息-备份信息 |
|
93 |
* |
|
94 |
* @param id 配方配置子信息-备份主键 |
|
95 |
* @return 结果 |
|
96 |
*/ |
|
97 |
@Override |
|
98 |
public int deleteBsFormulaChildInfoTempById(Long id) |
|
99 |
{ |
|
100 |
return bsFormulaChildInfoTempMapper.deleteBsFormulaChildInfoTempById(id); |
|
101 |
} |
|
102 |
} |