|
|
|
@ -10,6 +10,7 @@ import (
|
|
|
|
|
"dsBaseRpc/Utils/SqlKit"
|
|
|
|
|
"dsBaseRpc/models"
|
|
|
|
|
"errors"
|
|
|
|
|
"fmt"
|
|
|
|
|
"github.com/xormplus/builder"
|
|
|
|
|
"strings"
|
|
|
|
|
"time"
|
|
|
|
@ -164,8 +165,14 @@ func PageBaseOrganization(in *BaseOrganizationProto.QueryArg) ([]map[string]inte
|
|
|
|
|
myBuilder.Where(builder.Like{"t1.org_name", in.OrgName}).OrderBy("t1.sort_id asc,t1.id_int asc")
|
|
|
|
|
//关键字查询
|
|
|
|
|
sql, _ := myBuilder.Limit(limit, offset).ToBoundSQL()
|
|
|
|
|
|
|
|
|
|
//通过SQL获取带缓存的数据
|
|
|
|
|
list, count, err := SqlKit.QueryForPk(sql)
|
|
|
|
|
|
|
|
|
|
//构建一个强制转换的错误~~~~
|
|
|
|
|
fmt.Println(list[0]["bureau_id"].(int64))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改密码的显示项目
|
|
|
|
|
SysLoginpersonDao.FillPwd(&list)
|
|
|
|
|
return list, count, err
|
|
|
|
|