LineConfigServiceImpl.java
2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package com.ruoyi.config.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.config.mapper.LineConfigMapper;
import com.ruoyi.config.domain.LineConfig;
import com.ruoyi.config.service.ILineConfigService;
/**
* 线路配置Service业务层处理
*
* @author Bsth
* @date 2024-02-05
*/
@Service
public class LineConfigServiceImpl implements ILineConfigService
{
@Autowired
private LineConfigMapper lineConfigMapper;
/**
* 查询线路配置
*
* @param id 线路配置主键
* @return 线路配置
*/
@Override
public LineConfig selectLineConfigById(Long id)
{
return lineConfigMapper.selectLineConfigById(id);
}
/**
* 查询线路配置列表
*
* @param lineConfig 线路配置
* @return 线路配置
*/
@Override
public List<LineConfig> selectLineConfigList(LineConfig lineConfig)
{
return lineConfigMapper.selectLineConfigList(lineConfig);
}
/**
* 新增线路配置
*
* @param lineConfig 线路配置
* @return 结果
*/
@Override
public int insertLineConfig(LineConfig lineConfig)
{
lineConfig.setCreateTime(DateUtils.getNowDate());
lineConfig.setCreateBy(SecurityUtils.getUsername());
return lineConfigMapper.insertLineConfig(lineConfig);
}
/**
* 修改线路配置
*
* @param lineConfig 线路配置
* @return 结果
*/
@Override
public int updateLineConfig(LineConfig lineConfig)
{
lineConfig.setUpdateTime(DateUtils.getNowDate());
lineConfig.setUpdateBy(SecurityUtils.getUsername());
return lineConfigMapper.updateLineConfig(lineConfig);
}
/**
* 批量删除线路配置
*
* @param ids 需要删除的线路配置主键
* @return 结果
*/
@Override
public int deleteLineConfigByIds(Long[] ids)
{
return lineConfigMapper.deleteLineConfigByIds(ids);
}
/**
* 删除线路配置信息
*
* @param id 线路配置主键
* @return 结果
*/
@Override
public int deleteLineConfigById(Long id)
{
return lineConfigMapper.deleteLineConfigById(id);
}
}