Commit 1e0cc4f5 authored by yanzg's avatar yanzg

将源码打包进jar包

parent 63f84068
......@@ -2,6 +2,7 @@ import com.yanzuoguang.dao.DaoConst;
import com.yanzuoguang.dao.impl.SqlData;
import com.yanzuoguang.dao.impl.TableSqlCache;
import com.yanzuoguang.dao.impl.TableStruct;
import com.yanzuoguang.db.ConfigDb;
import com.yanzuoguang.db.impl.DbPrintSql;
import com.yanzuoguang.util.helper.JsonHelper;
import org.junit.Test;
......@@ -12,7 +13,7 @@ import java.util.List;
public class TestDbPrintSql {
@Test
public void test() {
DbPrintSql printSql = new DbPrintSql();
DbPrintSql printSql = new DbPrintSql(new ConfigDb());
String stringSql = printSql.getStringSql("select * from where id = ? AND name = ? and removeFlag = 0 ", "1");
System.out.println(stringSql);
}
......@@ -27,6 +28,7 @@ public class TestDbPrintSql {
SqlData sqlData = cache.getNameCache().get(DaoConst.GROUP_ADD);
System.out.println(JsonHelper.serialize(sqlData, true));
}
@Test
public void testTableStruct1() {
TableSqlCache cache = new TableSqlCache();
......@@ -49,7 +51,6 @@ public class TestDbPrintSql {
}
@Test
public void testTableStructSort() {
TableSqlCache cache = new TableSqlCache();
......@@ -63,7 +64,7 @@ public class TestDbPrintSql {
list.add(new TestTableGroupVo("3"));
List listTo = cache.getKeySort(list);
String json = JsonHelper.serialize(listTo,true);
String json = JsonHelper.serialize(listTo, true);
System.out.println(json);
}
......
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