ny
23 小时以前 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
package jnpf.base.service.impl;
 
import jnpf.base.entity.FilterEntity;
import jnpf.base.entity.VisualdevEntity;
import jnpf.base.mapper.FilterMapper;
import jnpf.base.model.filter.RuleInfo;
import jnpf.base.service.FilterService;
import jnpf.base.service.SuperServiceImpl;
import org.mybatis.dynamic.sql.SqlTable;
import org.mybatis.dynamic.sql.select.QueryExpressionDSL;
import org.mybatis.dynamic.sql.select.SelectModel;
import org.springframework.stereotype.Service;
 
import java.util.List;
import java.util.Map;
 
@Service
public class FilterServiceImpl extends SuperServiceImpl<FilterMapper, FilterEntity> implements FilterService {
 
    @Override
    public void saveRuleList(String moduleId, VisualdevEntity visualdevEntity, Integer app, Integer pc, Map<String, String> tableMap) {
        this.baseMapper.saveRuleList(moduleId, visualdevEntity, app, pc, tableMap);
    }
 
    @Override
    public void updateRuleList(String moduleId, VisualdevEntity visualdevEntity, Integer app, Integer pc, Map<String, String> tableMap) {
        this.baseMapper.updateRuleList(moduleId, visualdevEntity, app, pc, tableMap);
    }
 
    @Override
    public void handleWhereCondition(SqlTable sqlTable, QueryExpressionDSL<SelectModel>.QueryExpressionWhereBuilder where, String id, Map<String, SqlTable> subSqlTableMap, String databaseProductName, Map<String, Object> params) {
        this.baseMapper.handleWhereCondition(sqlTable, where, id, subSqlTableMap, databaseProductName, params);
    }
 
    /**
     * 在线过滤查询
     *
     * @param sqlTable
     * @param where
     * @param id
     * @param subSqlTableMap
     * @param databaseProductName
     */
    @Override
    public void handleWhereCondition(SqlTable sqlTable, QueryExpressionDSL<SelectModel>.QueryExpressionWhereBuilder where, String id, Map<String, SqlTable> subSqlTableMap, String databaseProductName) {
        this.baseMapper.handleWhereCondition(sqlTable, where, id, subSqlTableMap, databaseProductName, null);
    }
 
    /**
     * 获取过滤配置
     *
     * @param id
     * @return
     */
    @Override
    public List<RuleInfo> getCondition(String id) {
        return this.baseMapper.getCondition(id);
    }
}