Java Code Examples for org.jeecg.common.system.util.JeecgDataAutorUtils#loadDataSearchConditon()

The following examples show how to use org.jeecg.common.system.util.JeecgDataAutorUtils#loadDataSearchConditon() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QueryGenerator.java    From jeecg-cloud with Apache License 2.0 6 votes vote down vote up
/**
 * 获取请求对应的数据权限规则
 * @return
 */
public static Map<String, SysPermissionDataRuleModel> getRuleMap() {
	Map<String, SysPermissionDataRuleModel> ruleMap = new HashMap<String, SysPermissionDataRuleModel>();
	List<SysPermissionDataRuleModel> list =JeecgDataAutorUtils.loadDataSearchConditon();
	if(list != null&&list.size()>0){
		if(list.get(0)==null){
			return ruleMap;
		}
		for (SysPermissionDataRuleModel rule : list) {
			String column = rule.getRuleColumn();
			if(QueryRuleEnum.SQL_RULES.getValue().equals(rule.getRuleConditions())) {
				column = SQL_RULES_COLUMN+rule.getId();
			}
			ruleMap.put(column, rule);
		}
	}
	return ruleMap;
}
 
Example 2
Source File: QueryGenerator.java    From jeecg-boot-with-activiti with MIT License 6 votes vote down vote up
/**
 * 
 * @return
 */
public static Map<String, SysPermissionDataRule> getRuleMap() {
	Map<String, SysPermissionDataRule> ruleMap = new HashMap<String, SysPermissionDataRule>();
	List<SysPermissionDataRule> list =JeecgDataAutorUtils.loadDataSearchConditon();
	if(list != null&&list.size()>0){
		if(list.get(0)==null){
			return ruleMap;
		}
		for (SysPermissionDataRule rule : list) {
			String column = rule.getRuleColumn();
			if(QueryRuleEnum.SQL_RULES.getValue().equals(rule.getRuleConditions())) {
				column = SQL_RULES_COLUMN+rule.getId();
			}
			ruleMap.put(column, rule);
		}
	}
	return ruleMap;
}
 
Example 3
Source File: QueryGenerator.java    From teaching with Apache License 2.0 6 votes vote down vote up
/**
 * 获取请求对应的数据权限规则
 * @return
 */
public static Map<String, SysPermissionDataRuleModel> getRuleMap() {
	Map<String, SysPermissionDataRuleModel> ruleMap = new HashMap<String, SysPermissionDataRuleModel>();
	List<SysPermissionDataRuleModel> list =JeecgDataAutorUtils.loadDataSearchConditon();
	if(list != null&&list.size()>0){
		if(list.get(0)==null){
			return ruleMap;
		}
		for (SysPermissionDataRuleModel rule : list) {
			String column = rule.getRuleColumn();
			if(QueryRuleEnum.SQL_RULES.getValue().equals(rule.getRuleConditions())) {
				column = SQL_RULES_COLUMN+rule.getId();
			}
			ruleMap.put(column, rule);
		}
	}
	return ruleMap;
}
 
Example 4
Source File: QueryGenerator.java    From jeecg-boot with Apache License 2.0 6 votes vote down vote up
/**
 * 获取请求对应的数据权限规则
 * @return
 */
public static Map<String, SysPermissionDataRuleModel> getRuleMap() {
	Map<String, SysPermissionDataRuleModel> ruleMap = new HashMap<String, SysPermissionDataRuleModel>();
	List<SysPermissionDataRuleModel> list =JeecgDataAutorUtils.loadDataSearchConditon();
	if(list != null&&list.size()>0){
		if(list.get(0)==null){
			return ruleMap;
		}
		for (SysPermissionDataRuleModel rule : list) {
			String column = rule.getRuleColumn();
			if(QueryRuleEnum.SQL_RULES.getValue().equals(rule.getRuleConditions())) {
				column = SQL_RULES_COLUMN+rule.getId();
			}
			ruleMap.put(column, rule);
		}
	}
	return ruleMap;
}