@ -71,7 +71,7 @@ public class DataInit {
< # list project . modules as module >
< # list module . tables as table >
< # list table . fields as field >
< # if field . fieldType = = ' Dict ' & & module . moduleN ame ! = ' wsys ' >
< # if field . fieldType = = ' Dict ' & & module . n ame ! = ' wsys ' >
{ // ${field.fieldComment?default('')}
createDict ( "${field.fieldName?default('')}" , "${field.fieldComment?default('')}" , new String [ ] [ ] {
< # list field . selectItems as item >
@ -230,32 +230,32 @@ public class DataInit {
< # assign index = "0" + index / >
< / # if >
< # if module . getNeedGenerate ( ) >
forMgr . add ( createRes ( "${index}" , "${module. moduleComment}菜单", "WEB" , "${module.moduleN ame?upper_case}") ) ;
forMgr . add ( createRes ( "${index}" , "${module. note}菜单", "WEB" , "${module.n ame?upper_case}") ) ;
< # list module . tables as table >
< # if table . html >
forMgr . add ( createRes ( "${index}01" , "${table.tableComment}管理菜单" , "WEB" , "${module. moduleN ame?upper_case}_${table.tableName?upper_case}") ) ;
forMgr . add ( createRes ( "${index}0101" , "${table.tableComment}管理页" , "WEB" , "/${module. moduleN ame}/${table.getFName()}.htm") ) ;
forMgr . add ( createRes ( "${index}010101" , "${table.tableComment}模板" , "WEB" , "/ajax/${module. moduleN ame}/${table.getFName()}/template") ) ;
forMgr . add ( createRes ( "${index}010102" , "${table.tableComment}导入" , "WEB" , "/ajax/${module. moduleN ame}/${table.getFName()}/imports") ) ;
forMgr . add ( createRes ( "${index}010103" , "${table.tableComment}导出" , "WEB" , "/ajax/${module. moduleN ame}/${table.getFName()}/exports") ) ;
forMgr . add ( createRes ( "${index}01" , "${table.tableComment}管理菜单" , "WEB" , "${module. n ame?upper_case}_${table.tableName?upper_case}") ) ;
forMgr . add ( createRes ( "${index}0101" , "${table.tableComment}管理页" , "WEB" , "/${module. n ame}/${table.getFName()}.htm") ) ;
forMgr . add ( createRes ( "${index}010101" , "${table.tableComment}模板" , "WEB" , "/ajax/${module. n ame}/${table.getFName()}/template") ) ;
forMgr . add ( createRes ( "${index}010102" , "${table.tableComment}导入" , "WEB" , "/ajax/${module. n ame}/${table.getFName()}/imports") ) ;
forMgr . add ( createRes ( "${index}010103" , "${table.tableComment}导出" , "WEB" , "/ajax/${module. n ame}/${table.getFName()}/exports") ) ;
< / # if >
< # if table . create >
forMgr . add ( createRes ( "${index}010104" , "${table.tableComment}新增" , "WEB" , "/ajax/${module. moduleN ame}/${table.getFName()}/create") ) ;
forMgr . add ( createRes ( "${index}010104" , "${table.tableComment}新增" , "WEB" , "/ajax/${module. n ame}/${table.getFName()}/create") ) ;
< / # if >
< # if table . delete >
forMgr . add ( createRes ( "${index}010105" , "${table.tableComment}删除" , "WEB" , "/ajax/${module. moduleN ame}/${table.getFName()}/delete") ) ;
forMgr . add ( createRes ( "${index}010105" , "${table.tableComment}删除" , "WEB" , "/ajax/${module. n ame}/${table.getFName()}/delete") ) ;
< / # if >
< # if table . update >
forMgr . add ( createRes ( "${index}010106" , "${table.tableComment}更新" , "WEB" , "/ajax/${module. moduleN ame}/${table.getFName()}/update") ) ;
forMgr . add ( createRes ( "${index}010106" , "${table.tableComment}更新" , "WEB" , "/ajax/${module. n ame}/${table.getFName()}/update") ) ;
< / # if >
< # if table . find >
forMgr . add ( createRes ( "${index}010107" , "${table.tableComment}查询" , "WEB" , "/ajax/${module. moduleN ame}/${table.getFName()}/find") ) ;
forMgr . add ( createRes ( "${index}010107" , "${table.tableComment}查询" , "WEB" , "/ajax/${module. n ame}/${table.getFName()}/find") ) ;
< / # if >
< # if table . get >
forMgr . add ( createRes ( "${index}010108" , "${table.tableComment}获取" , "WEB" , "/ajax/${module. moduleN ame}/${table.getFName()}/get") ) ;
forMgr . add ( createRes ( "${index}010108" , "${table.tableComment}获取" , "WEB" , "/ajax/${module. n ame}/${table.getFName()}/get") ) ;
< / # if >
< # if table . search >
forMgr . add ( createRes ( "${index}010109" , "${table.tableComment}搜索" , "WEB" , "/ajax/${module. moduleN ame}/${table.getFName()}/search") ) ;
forMgr . add ( createRes ( "${index}010109" , "${table.tableComment}搜索" , "WEB" , "/ajax/${module. n ame}/${table.getFName()}/search") ) ;
< / # if >
< / # list >
< / # if >
@ -276,26 +276,26 @@ public class DataInit {
< # if index < 10 >
< # assign index = "0" + index / >
< / # if >
forMgr . add ( createRes ( "A${index}" , "${module. moduleComment}", "API" , "A${module.moduleN ame?upper_case}") ) ;
forMgr . add ( createRes ( "A${index}" , "${module. note}", "API" , "A${module.n ame?upper_case}") ) ;
< # list module . tables as table >
forMgr . add ( createRes ( "A${index}01" , "${table.tableComment}" , "API" , "A${module. moduleN ame?upper_case}_${table.tableName?upper_case}") ) ;
forMgr . add ( createRes ( "A${index}01" , "${table.tableComment}" , "API" , "A${module. n ame?upper_case}_${table.tableName?upper_case}") ) ;
< # if table . create >
forMgr . add ( createRes ( "A${index}0101" , "${table.tableComment}新增" , "API" , "/api/${module. moduleN ame}/${table.getFName()}/create") ) ;
forMgr . add ( createRes ( "A${index}0101" , "${table.tableComment}新增" , "API" , "/api/${module. n ame}/${table.getFName()}/create") ) ;
< / # if >
< # if table . delete >
forMgr . add ( createRes ( "A${index}0102" , "${table.tableComment}删除" , "API" , "/api/${module. moduleN ame}/${table.getFName()}/delete") ) ;
forMgr . add ( createRes ( "A${index}0102" , "${table.tableComment}删除" , "API" , "/api/${module. n ame}/${table.getFName()}/delete") ) ;
< / # if >
< # if table . update >
forMgr . add ( createRes ( "A${index}0103" , "${table.tableComment}更新" , "API" , "/api/${module. moduleN ame}/${table.getFName()}/update") ) ;
forMgr . add ( createRes ( "A${index}0103" , "${table.tableComment}更新" , "API" , "/api/${module. n ame}/${table.getFName()}/update") ) ;
< / # if >
< # if table . find >
forMgr . add ( createRes ( "A${index}0104" , "${table.tableComment}查询" , "API" , "/api/${module. moduleN ame}/${table.getFName()}/find") ) ;
forMgr . add ( createRes ( "A${index}0104" , "${table.tableComment}查询" , "API" , "/api/${module. n ame}/${table.getFName()}/find") ) ;
< / # if >
< # if table . get >
forMgr . add ( createRes ( "A${index}0105" , "${table.tableComment}获取" , "API" , "/api/${module. moduleN ame}/${table.getFName()}/get") ) ;
forMgr . add ( createRes ( "A${index}0105" , "${table.tableComment}获取" , "API" , "/api/${module. n ame}/${table.getFName()}/get") ) ;
< / # if >
< # if table . search >
forMgr . add ( createRes ( "A${index}0107" , "${table.tableComment}搜索" , "API" , "/api/${module. moduleN ame}/${table.getFName()}/search") ) ;
forMgr . add ( createRes ( "A${index}0107" , "${table.tableComment}搜索" , "API" , "/api/${module. n ame}/${table.getFName()}/search") ) ;
< / # if >
< / # list >
< / # list >