用户int64转string

This commit is contained in:
2023-06-29 11:08:13 +08:00
parent 3263520334
commit 966057fa5b
3 changed files with 99 additions and 3 deletions
-2
View File
@@ -1,7 +1,6 @@
package dao
import (
"fmt"
"gorm.io/gorm"
"hospital-admin-api/api/model"
"hospital-admin-api/api/requests"
@@ -89,7 +88,6 @@ func (r *AdminUserDao) GetAdminUserPageSearch(getUserPage requests.GetUserPage,
})
if getUserPage.PostName != "" {
fmt.Println(1111)
subQuery := global.Db.Model(&model.AdminPost{}).
Select("post_id").
Where("post_name LIKE ?", "%"+getUserPage.PostName+"%")