Commit 2818887b by 尛爺鑫 Committed by Gitee

test类修改

parent 48a43a29
...@@ -6,13 +6,20 @@ ...@@ -6,13 +6,20 @@
*/ */
package com.flying.cattle.mdg; package com.flying.cattle.mdg;
/**
* @filename:UserController 2019年4月9日
* @project wallet-manage V1.0
* Copyright(c) 2018 flying-cattle Co. Ltd.
* All right reserved.
*/
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Date; import java.util.Date;
import com.github.flying.cattle.mdg.entity.BasisInfo; import com.github.mybatis.fl.entity.BasisInfo;
import com.github.flying.cattle.mdg.util.EntityInfoUtil; import com.github.mybatis.fl.util.EntityInfoUtil;
import com.github.flying.cattle.mdg.util.Generator; import com.github.mybatis.fl.util.Generator;
import com.github.flying.cattle.mdg.util.MySqlToJavaUtil; import com.github.mybatis.fl.util.MySqlToJavaUtil;
/** /**
* Copyright: Copyright (c) 2019 * Copyright: Copyright (c) 2019
* *
...@@ -46,8 +53,7 @@ public class MyGenerator { ...@@ -46,8 +53,7 @@ public class MyGenerator {
public static final String IS_SWAGGER = "true"; public static final String IS_SWAGGER = "true";
public static void main(String[] args) { public static void main(String[] args) {
BasisInfo bi = new BasisInfo(PROJECT, AUTHOR, VERSION, URL, NAME, PASS, DATABASE, TIME, AGILE, ENTITY_URL, BasisInfo bi = new BasisInfo(PROJECT, AUTHOR, VERSION, URL, NAME, PASS, DATABASE, CLASSNAME, AGILE, ENTITY_URL, DAO_URL, XML_URL, SERVICE_URL, SERVICE_IMPL_URL, CONTROLLER_URL);
DAO_URL, XML_URL, SERVICE_URL, SERVICE_IMPL_URL, CONTROLLER_URL,IS_SWAGGER);
bi.setTable(TABLE); bi.setTable(TABLE);
bi.setEntityName(MySqlToJavaUtil.getClassName(TABLE)); bi.setEntityName(MySqlToJavaUtil.getClassName(TABLE));
bi.setObjectName(MySqlToJavaUtil.changeToJavaFiled(TABLE)); bi.setObjectName(MySqlToJavaUtil.changeToJavaFiled(TABLE));
...@@ -62,14 +68,11 @@ public class MyGenerator { ...@@ -62,14 +68,11 @@ public class MyGenerator {
String aa4 = Generator.createService(fileUrl, bi).toString(); String aa4 = Generator.createService(fileUrl, bi).toString();
String aa5 = Generator.createServiceImpl(fileUrl, bi).toString(); String aa5 = Generator.createServiceImpl(fileUrl, bi).toString();
String aa6 = Generator.createController(fileUrl, bi).toString(); String aa6 = Generator.createController(fileUrl, bi).toString();
// 是否创建swagger配置文件
String aa7 = Generator.createSwaggerConfig(fileUrl, bi).toString();
System.out.println(aa1); System.out.println(aa1);
System.out.println(aa2); System.out.println(aa3); System.out.println(aa4); System.out.println(aa2); System.out.println(aa3); System.out.println(aa4);
System.out.println(aa5); System.out.println(aa6); System.out.println(aa7); System.out.println(aa5); System.out.println(aa6);
//System.out.println(aa7);
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment