| | |
| | | private BuildCodeService service; |
| | | |
| | | private String basePackage = "cn.huge.module"; |
| | | private String packageName = "hot"; |
| | | private String className = "FileInfo"; |
| | | private String tableSchema = "huge-dyh2.0_v100_dev"; |
| | | private String tableName = "dyh_file_info"; |
| | | private String packageName = ""; |
| | | private String className = ""; |
| | | private String tableSchema = "gzdyh_dev"; |
| | | private String tableName = ""; |
| | | private String author = "liyj"; |
| | | private String version = "1.0.0"; |
| | | |
| | | @Test |
| | | public void buildAllTest() { |
| | | service.buildAll(basePackage, packageName, "HotVideo", tableSchema, "dyh_hot_video", author, version); |
| | | service.buildAll(basePackage, packageName, "HotNews", tableSchema, "dyh_hot_news", author, version); |
| | | service.buildAll(basePackage, packageName, className, tableSchema, tableName, author, version); |
| | | } |
| | | |
| | | /******************************************************** |
| | |
| | | */ |
| | | @Test |
| | | public void buildPoTest() { |
| | | service.buildPo(basePackage, packageName, "FlowNodeDef", tableSchema, "dyh_flow_node_def", author, version); |
| | | service.buildJson(basePackage, packageName, "FlowNodeDef", tableSchema, "dyh_flow_node_def", author, version); |
| | | service.buildDaoMapperXml(basePackage, packageName, "FlowNodeDef", tableSchema, "dyh_flow_node_def", author, version); |
| | | |
| | | service.buildPo(basePackage, packageName, "FlowNode", tableSchema, "dyh_flow_node", author, version); |
| | | service.buildJson(basePackage, packageName, "FlowNode", tableSchema, "dyh_flow_node", author, version); |
| | | service.buildDaoMapperXml(basePackage, packageName, "FlowNode", tableSchema, "dyh_flow_node", author, version); |
| | | service.buildPo(basePackage, packageName, className, tableSchema, tableName, author, version); |
| | | } |
| | | |
| | | @Test |
| | |
| | | } |
| | | |
| | | @Test |
| | | public void buildControllerTest() { |
| | | service.buildController(basePackage, packageName, className, tableSchema, tableName, author, version); |
| | | public void buildWebControllerTest() { |
| | | service.buildWebController(basePackage, packageName, className, tableSchema, tableName, author, version); |
| | | } |
| | | |
| | | @Test |
| | | public void buildWechatControllerTest() { |
| | | service.buildWechatController(basePackage, packageName, className, tableSchema, tableName, author, version); |
| | | } |
| | | |
| | | @Test |
| | | public void buildJsonTest() { |
| | | service.buildJson(basePackage, packageName, className, tableSchema, tableName, author, version); |
| | | |
| | | } |
| | | |
| | | @Test |