update 国内法规
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
package com.jero.modules.laws.component;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: liao
|
||||||
|
* @Date: 2023/8/22 16:25
|
||||||
|
* @Description: 查询组件
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class SearchComponent {
|
||||||
|
|
||||||
|
}
|
||||||
+7
-5
@@ -73,7 +73,7 @@ public class LawsBasicInfoServiceImpl extends ServiceImpl<LawsBasicInfoMapper, L
|
|||||||
List<LawsTag> fieldList = getFieldList(FileTableIdEnum.DOMESTIC_REGULATIONS.getValue());
|
List<LawsTag> fieldList = getFieldList(FileTableIdEnum.DOMESTIC_REGULATIONS.getValue());
|
||||||
// 获取查询返回字段集合
|
// 获取查询返回字段集合
|
||||||
List<String> selectField = getSelectField(fieldList);
|
List<String> selectField = getSelectField(fieldList);
|
||||||
//封装查询条件(包含高级搜索)
|
// 封装查询条件(包含高级搜索)
|
||||||
String condition = getConditionStr(parameter);
|
String condition = getConditionStr(parameter);
|
||||||
int pageNo = Integer.parseInt(parameter.get("pageNo").toString());
|
int pageNo = Integer.parseInt(parameter.get("pageNo").toString());
|
||||||
int pageSize = Integer.parseInt(parameter.get("pageSize").toString());
|
int pageSize = Integer.parseInt(parameter.get("pageSize").toString());
|
||||||
@@ -82,7 +82,7 @@ public class LawsBasicInfoServiceImpl extends ServiceImpl<LawsBasicInfoMapper, L
|
|||||||
IPage<Map<String,Object>> page = new Page<>(pageNo, pageSize);
|
IPage<Map<String,Object>> page = new Page<>(pageNo, pageSize);
|
||||||
IPage<Map<String,Object>> infoPage = lawsTagMapper.getInfoPage(page, " " + StringUtils.join(selectField, ","), condition);
|
IPage<Map<String,Object>> infoPage = lawsTagMapper.getInfoPage(page, " " + StringUtils.join(selectField, ","), condition);
|
||||||
|
|
||||||
//树形数据字典
|
// 树形数据字典(标签内容管理数据,相关表sys_category、sys_dict)
|
||||||
List<SysCategory> categoryList = sysCategoryService.list();
|
List<SysCategory> categoryList = sysCategoryService.list();
|
||||||
|
|
||||||
//过滤出树形字段
|
//过滤出树形字段
|
||||||
@@ -93,11 +93,12 @@ public class LawsBasicInfoServiceImpl extends ServiceImpl<LawsBasicInfoMapper, L
|
|||||||
List<LawsTag> lawsTagFileList = fieldList.stream()
|
List<LawsTag> lawsTagFileList = fieldList.stream()
|
||||||
.filter(e -> FieldTypeEnum.FILE.getValue().equals(e.getFieldShowType()))
|
.filter(e -> FieldTypeEnum.FILE.getValue().equals(e.getFieldShowType()))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
// 文件类型字段名集合
|
||||||
List<String> fileList = lawsTagFileList.stream().map(LawsTag::getDbFieldName).collect(Collectors.toList());
|
List<String> fileList = lawsTagFileList.stream().map(LawsTag::getDbFieldName).collect(Collectors.toList());
|
||||||
|
// 查询返回结果集合
|
||||||
List<Map<String,Object>> records = infoPage.getRecords();
|
List<Map<String,Object>> records = infoPage.getRecords();
|
||||||
|
|
||||||
//数据字典
|
//数据字典(框架原来的数据字典)
|
||||||
List<SysDictItem> sysDictItems = sysDictItemService.selectItemsAll();
|
List<SysDictItem> sysDictItems = sysDictItemService.selectItemsAll();
|
||||||
|
|
||||||
//下拉选处理数据字典
|
//下拉选处理数据字典
|
||||||
@@ -108,6 +109,7 @@ public class LawsBasicInfoServiceImpl extends ServiceImpl<LawsBasicInfoMapper, L
|
|||||||
idList.add((String) record1.get("id"));
|
idList.add((String) record1.get("id"));
|
||||||
for (Map.Entry<String, Object> entry : record1.entrySet()) {
|
for (Map.Entry<String, Object> entry : record1.entrySet()) {
|
||||||
//下拉选处理数据字典
|
//下拉选处理数据字典
|
||||||
|
// sysDictItems框架原来的数据字典全部配置项数据、entry单独的一条国内法规数据、cut中英文、fieldList国内法规表的全部字段
|
||||||
dictItem(sysDictItems, entry, cut, fieldList,null);
|
dictItem(sysDictItems, entry, cut, fieldList,null);
|
||||||
treeDictItem(categoryList, entry, treeFieldList, cut,null);
|
treeDictItem(categoryList, entry, treeFieldList, cut,null);
|
||||||
if(fileList.contains(entry.getKey()) && StringUtils.isNotBlank((String)entry.getValue())){
|
if(fileList.contains(entry.getKey()) && StringUtils.isNotBlank((String)entry.getValue())){
|
||||||
@@ -136,7 +138,7 @@ public class LawsBasicInfoServiceImpl extends ServiceImpl<LawsBasicInfoMapper, L
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return infoPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ spring:
|
|||||||
#redis 配置
|
#redis 配置
|
||||||
redis:
|
redis:
|
||||||
database: 11
|
database: 11
|
||||||
host: localhost
|
host: 10.10.10.45
|
||||||
lettuce:
|
lettuce:
|
||||||
pool:
|
pool:
|
||||||
max-active: 8 #最大连接数据库连接数,设 0 为没有限制
|
max-active: 8 #最大连接数据库连接数,设 0 为没有限制
|
||||||
@@ -171,7 +171,7 @@ spring:
|
|||||||
max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
|
max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
|
||||||
min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
|
min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
|
||||||
shutdown-timeout: 100ms
|
shutdown-timeout: 100ms
|
||||||
password:
|
password: hzwlsoft.com
|
||||||
port: 6379
|
port: 6379
|
||||||
#rabbitmq 配置
|
#rabbitmq 配置
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
|
|||||||
Reference in New Issue
Block a user