|
|
|
@ -156,6 +156,10 @@ func PageBaseOrganization(in *BaseOrganizationProto.QueryArg) ([]map[string]inte
|
|
|
|
|
//只查主校+普通校
|
|
|
|
|
if in.IsMainSchool {
|
|
|
|
|
myBuilder.Where(builder.In("t1.main_school_type", []int{1, 2}))
|
|
|
|
|
//如果要排除某个学校
|
|
|
|
|
if in.BureauId!=""{
|
|
|
|
|
myBuilder.Where(builder.Neq{"t1.org_id":in.BureauId})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
myBuilder.Where(builder.Like{"t1.org_name", in.OrgName}).OrderBy("t1.sort_id asc,t1.id_int asc")
|
|
|
|
|
//关键字查询
|
|
|
|
|