|
@@ -22,11 +22,12 @@ import java.util.stream.Collectors;
|
|
|
* @description 数据模型接口
|
|
|
*/
|
|
|
public interface DataModel {
|
|
|
- /*生产环境*/
|
|
|
- Boolean once= SystemUtils.isLinux();
|
|
|
+ /*生产环境SystemUtils.isLinux()*/
|
|
|
+ Boolean once=SystemUtils.isLinux();
|
|
|
|
|
|
List<Class<?>> classes=new ArrayList<>();
|
|
|
LinkedHashMap<String,List<WbsFormElementVO>> tableElementMap = new LinkedHashMap<>();
|
|
|
+ LinkedHashMap<String,List<WbsFormElementVO>> tableElementMapTbn = new LinkedHashMap<>();
|
|
|
Map<String,Class<?>> tbnClassMap = new HashMap<>();
|
|
|
/*扫描路径*/
|
|
|
String PATH="org.springblade.manager.vo";
|
|
@@ -79,14 +80,14 @@ public interface DataModel {
|
|
|
/*返回值{TBN,List<WbsFormElementVO>}*/
|
|
|
static LinkedHashMap<String,List<WbsFormElementVO>> getTableElementsMapTbn(){
|
|
|
/*初始化或者本地开发环境的时候每次都生成*/
|
|
|
- if(tableElementMap.isEmpty()||!once){
|
|
|
- tableElementMap.clear();
|
|
|
+ if(tableElementMapTbn.isEmpty()||!once){
|
|
|
+ tableElementMapTbn.clear();
|
|
|
getClasses().forEach(c->{
|
|
|
- tableElementMap.put(getStaticFieldValue(c,TBN_FN),toElementVos(c));
|
|
|
+ tableElementMapTbn.put(getStaticFieldValue(c,TBN_FN),toElementVos(c));
|
|
|
});
|
|
|
|
|
|
}
|
|
|
- return tableElementMap;
|
|
|
+ return tableElementMapTbn;
|
|
|
}
|
|
|
/*返回值{TBN,List<WbsFormElementVO>}*/
|
|
|
static Map<String,Class<?>> getTbnClassMap(){
|