|
楼主 |
发表于 2016-12-20 09:10:05
|
显示全部楼层
本帖最后由 zhangqg123 于 2016-12-20 09:16 编辑
p3-cg-config.properties
#default code path
source_root_package=src
#vm resource url
templatepath_vm=/resources/jd/template/vm
#ftl resource url qunar.insurtemplate.ftl dgtemplate
templatepath_ftl=/p3/cg/template/ftl
system_encoding=utf-8
#Table key [User defined]
generate_table_id=obid
#Search Param num [User defined]
ui_search_filed_num=1
#code_cg_by=vm
code_cg_by=ftl
table_file_path=
isReplace=true
author=junfeng.zhou
#BaseAccountDao GenericDaoDefault BaseAccountSlaveDao BaseOperateDao BasePayServerDao BaseCouponSlaveDao BaseInsuranceDao
baseDao=GenericDaoDefault
database=database
code_cg_tables=jw_system_auth,jw_system_auth_mutex,jw_system_role,jw_system_role_auth_rel,jw_system_user,jw_system_user_auth_rel,jw_system_user_role_rel
base_package=com.jeecg.p3
bussi_package=weixinInterface
workspace_path=F:/TDDOWNLOAD/jeecg-p3-weixin-master/p3-weixin
path_src=P3-Biz-gzbargain/src/main/java
#path_src=TestCG/src
#is or not create
sqlmap_flag=Y
domain_flag=Y
domain_query_flag=N
dao_flag=Y
dao_impl_flag=Y
service_flag=Y
service_test_flag=N
service_impl_flag=Y
controller_flag=Y
page_flag=Y
===================================================
CodeToolUtil.java
public class CodeToolUtil {
public static void main(String[] args) {
/** 此处修改成你的 表名 和 中文注释***/
// String codeCgTables = CodeResourceUtil.getConfigInfo("code_cg_tables");
String code_cg_tables="wx_act_jiugongge";
if(StringUtils.isEmpty(code_cg_tables)){
return;
}
String[] tables =code_cg_tables.split(",");
for(String tableName:tables){
CodeGenerateFactory.codeGenerateByFTL(tableName, "",FtlDef.KEY_TYPE_02);
}
// String dbtableName = "wx_act_jsbargain_coupon";
// String title = "砍价活动配置";
// CodeGenerateFactory.codeGenerateByFTL(dbtableName, title,FtlDef.KEY_TYPE_02);
}
}
|
|