Merge branch 'develop' of http://192.168.10.125/k18_web/NFS.git into
develop Conflicts: src/main/resources/messages/message_en.properties src/main/resources/messages/message_ru.properties src/main/resources/messages/message_zh_CN.properties src/main/resources/nis.properties 修复单个appHTTP界面cfgType多余问题 x509校验证书 字符串模板导出问题修复
This commit is contained in:
@@ -282,6 +282,28 @@ public class DictUtils {
|
||||
}
|
||||
return regionDict;
|
||||
}
|
||||
/**
|
||||
* 功能配置域字典,获取配置域信息
|
||||
* @param dictId
|
||||
* @return
|
||||
*/
|
||||
public static FunctionRegionDict getFunctionRegionDictByRegionCode(Integer functionId,Integer regionCode){
|
||||
FunctionRegionDict regionDict=null;
|
||||
List<FunctionRegionDict> allDictList = (List<FunctionRegionDict>)CacheUtils.get(Constants.CACHE_FUNCTION_REGION_DICT);
|
||||
List<FunctionRegionDict> dictList = new ArrayList();
|
||||
if(StringUtil.isEmpty(allDictList)){
|
||||
FunctionRegionDict entity = new FunctionRegionDict();
|
||||
allDictList = functionRegionDictDao.getList(entity);
|
||||
CacheUtils.put(Constants.CACHE_FUNCTION_REGION_DICT, allDictList);
|
||||
}
|
||||
for(FunctionRegionDict entity:allDictList){
|
||||
if(entity.getConfigRegionCode().equals(regionCode)&&entity.getFunctionId().equals(functionId)){
|
||||
regionDict=entity;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return regionDict;
|
||||
}
|
||||
/**
|
||||
* 功能配置域字典,获取相应功能菜单对应的配置域信息
|
||||
* @param functionId
|
||||
|
||||
@@ -448,16 +448,16 @@ public class ExportExcel {
|
||||
commentStr="";
|
||||
List<SysDataDictionaryItem> isHex=DictUtils.getDictList("IS_HEX");
|
||||
if(isHex !=null && isHex.size()>0){
|
||||
if(((","+region.getConfigHex()+",").indexOf("1") >-1)){
|
||||
if(((","+region.getConfigHex()+",").indexOf(",1,") >-1)){
|
||||
for (SysDataDictionaryItem sysDataDictionaryItem : isHex) {
|
||||
if(sysDataDictionaryItem.getItemCode().equals(1)){
|
||||
if(sysDataDictionaryItem.getItemCode().equals("1")){
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+":"+sysDataDictionaryItem.getItemValue()+"\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!((","+region.getConfigHex()+",").indexOf("1") >-1)){
|
||||
if(!((","+region.getConfigHex()+",").indexOf(",1,") >-1)){
|
||||
for (SysDataDictionaryItem sysDataDictionaryItem : isHex) {
|
||||
if(sysDataDictionaryItem.getItemCode().equals(0)){
|
||||
if(sysDataDictionaryItem.getItemCode().equals("0")){
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+":"+sysDataDictionaryItem.getItemValue()+"\n";
|
||||
}
|
||||
}
|
||||
@@ -478,16 +478,16 @@ public class ExportExcel {
|
||||
commentStr="";
|
||||
List<SysDataDictionaryItem> isCaseSenstive=DictUtils.getDictList("CASE_INSENSTIVE");
|
||||
if(isCaseSenstive !=null && isCaseSenstive.size()>0){
|
||||
if(((","+region.getConfigHex()+",").indexOf("2") >-1)){
|
||||
if(((","+region.getConfigHex()+",").indexOf(",2,") >-1)){
|
||||
for (SysDataDictionaryItem sysDataDictionaryItem : isCaseSenstive) {
|
||||
if(sysDataDictionaryItem.getItemCode().equals(1)){
|
||||
if(sysDataDictionaryItem.getItemCode().equals("1")){
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+":"+sysDataDictionaryItem.getItemValue()+"\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!((","+region.getConfigHex()+",").indexOf("2") >-1)){
|
||||
if(!((","+region.getConfigHex()+",").indexOf(",2,") >-1)){
|
||||
for (SysDataDictionaryItem sysDataDictionaryItem : isCaseSenstive) {
|
||||
if(sysDataDictionaryItem.getItemCode().equals(1)){
|
||||
if(sysDataDictionaryItem.getItemCode().equals("0")){
|
||||
commentStr=commentStr+sysDataDictionaryItem.getItemCode()+":"+sysDataDictionaryItem.getItemValue()+"\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user