feat:完善项目管理,增加专家列表信息

This commit is contained in:
henry
2021-12-10 18:16:41 +08:00
parent 2ee564d540
commit fdcd46bf49
14 changed files with 265 additions and 109 deletions

View File

@ -192,3 +192,15 @@ func TestA(t *testing.T) {
err := mysql.Table(NewSysIndustry().TableName()).Create(out).Error
t.Log(err)
}
func TestNewUserInstance(t *testing.T) {
mysql := mysql()
out := make([]string, 0)
mysql.Table(NewUserInstance().TableName()).
Where("is_deleted = ?", DeleteStatusForNot).
Where(fmt.Sprintf("id IN (%v) OR id IN (%v)", strings.Join([]string{"1"}, ","), strings.Join([]string{"2"}, ","))).
Pluck("id", &out)
t.Log(out)
t.Log(len(out))
}