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