You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
461 B
22 lines
461 B
package Test
|
|
|
|
import (
|
|
"dsAutoCode/Dao/CommonDao"
|
|
"dsAutoCode/Utils/CommonUtil"
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestConvertTableName(t *testing.T) {
|
|
var tableName = "BaseOrganization"
|
|
fmt.Println(CommonUtil.ConvertTrueTableName(tableName))
|
|
|
|
pk,_ := CommonDao.GetTablePk("t_sys_loginperson")
|
|
fmt.Println(pk)
|
|
}
|
|
|
|
func TestGetAllFieldsByTableName(t *testing.T) {
|
|
//str:=GetAllFieldsByTableName("t_base_student",[]string{"last_updated_time"})
|
|
//fmt.Println(str)
|
|
}
|