提交 | 用户 | 时间
|
d3409e
|
1 |
package com.jcdm.main.da.tileMatchRules.service.impl; |
懒 |
2 |
|
|
3 |
import com.jcdm.common.utils.DateUtils; |
|
4 |
import com.jcdm.main.da.tileMatchRules.domain.DaTileMatchRules; |
|
5 |
import com.jcdm.main.da.tileMatchRules.mapper.DaTileMatchRulesMapper; |
|
6 |
import com.jcdm.main.da.tileMatchRules.service.IDaTileMatchRulesService; |
|
7 |
import org.springframework.beans.factory.annotation.Autowired; |
|
8 |
import org.springframework.stereotype.Service; |
|
9 |
|
|
10 |
import java.util.List; |
|
11 |
|
|
12 |
/** |
|
13 |
* 配瓦规则Service业务层处理 |
|
14 |
* |
|
15 |
* @author jiang |
|
16 |
* @date 2024-01-24 |
|
17 |
*/ |
|
18 |
@Service |
|
19 |
public class DaTileMatchRulesServiceImpl implements IDaTileMatchRulesService |
|
20 |
{ |
|
21 |
@Autowired |
|
22 |
private DaTileMatchRulesMapper daTileMatchRulesMapper; |
|
23 |
|
|
24 |
/** |
|
25 |
* 查询配瓦规则 |
|
26 |
* |
|
27 |
* @param id 配瓦规则主键 |
|
28 |
* @return 配瓦规则 |
|
29 |
*/ |
|
30 |
@Override |
|
31 |
public DaTileMatchRules selectDaTileMatchRulesById(Long id) |
|
32 |
{ |
|
33 |
return daTileMatchRulesMapper.selectDaTileMatchRulesById(id); |
|
34 |
} |
|
35 |
|
|
36 |
/** |
|
37 |
* 查询配瓦规则列表 |
|
38 |
* |
|
39 |
* @param daTileMatchRules 配瓦规则 |
|
40 |
* @return 配瓦规则 |
|
41 |
*/ |
|
42 |
@Override |
|
43 |
public List<DaTileMatchRules> selectDaTileMatchRulesList(DaTileMatchRules daTileMatchRules) |
|
44 |
{ |
|
45 |
return daTileMatchRulesMapper.selectDaTileMatchRulesList(daTileMatchRules); |
|
46 |
} |
|
47 |
|
|
48 |
/** |
|
49 |
* 新增配瓦规则 |
|
50 |
* |
|
51 |
* @param daTileMatchRules 配瓦规则 |
|
52 |
* @return 结果 |
|
53 |
*/ |
|
54 |
@Override |
|
55 |
public int insertDaTileMatchRules(DaTileMatchRules daTileMatchRules) |
|
56 |
{ |
|
57 |
daTileMatchRules.setCreateTime(DateUtils.getNowDate()); |
|
58 |
return daTileMatchRulesMapper.insertDaTileMatchRules(daTileMatchRules); |
|
59 |
} |
|
60 |
|
|
61 |
/** |
|
62 |
* 修改配瓦规则 |
|
63 |
* |
|
64 |
* @param daTileMatchRules 配瓦规则 |
|
65 |
* @return 结果 |
|
66 |
*/ |
|
67 |
@Override |
|
68 |
public int updateDaTileMatchRules(DaTileMatchRules daTileMatchRules) |
|
69 |
{ |
|
70 |
daTileMatchRules.setUpdateTime(DateUtils.getNowDate()); |
|
71 |
return daTileMatchRulesMapper.updateDaTileMatchRules(daTileMatchRules); |
|
72 |
} |
|
73 |
|
|
74 |
/** |
|
75 |
* 批量删除配瓦规则 |
|
76 |
* |
|
77 |
* @param ids 需要删除的配瓦规则主键 |
|
78 |
* @return 结果 |
|
79 |
*/ |
|
80 |
@Override |
|
81 |
public int deleteDaTileMatchRulesByIds(Long[] ids) |
|
82 |
{ |
|
83 |
return daTileMatchRulesMapper.deleteDaTileMatchRulesByIds(ids); |
|
84 |
} |
|
85 |
|
|
86 |
/** |
|
87 |
* 删除配瓦规则信息 |
|
88 |
* |
|
89 |
* @param id 配瓦规则主键 |
|
90 |
* @return 结果 |
|
91 |
*/ |
|
92 |
@Override |
|
93 |
public int deleteDaTileMatchRulesById(Long id) |
|
94 |
{ |
|
95 |
return daTileMatchRulesMapper.deleteDaTileMatchRulesById(id); |
|
96 |
} |
|
97 |
} |