|
|
|
@ -132,12 +132,13 @@ func PageBaseOrganization(in *BaseOrganizationProto.QueryArg) ([]map[string]inte
|
|
|
|
|
InnerJoin("t_sys_loginperson as t3", "t2.person_id=t3.person_id")
|
|
|
|
|
//是市,还是区?
|
|
|
|
|
areaCode := in.AreaCode
|
|
|
|
|
//1是教育局,需要要城市及所辖县区的教育局
|
|
|
|
|
if in.OrgType == 1 || in.OrgType == -1 {
|
|
|
|
|
|
|
|
|
|
if areaCode[4:] == "00" { //市
|
|
|
|
|
myBuilder.Where(builder.Eq{"t1.city_code": areaCode})
|
|
|
|
|
} else {
|
|
|
|
|
myBuilder.Where(builder.Eq{"t1.area_code": areaCode})
|
|
|
|
|
} else { //区
|
|
|
|
|
myBuilder.Where(builder.Eq{"t1.district_code": areaCode})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//是全部,还是要启用,禁用的?
|
|
|
|
|
if in.BUse != 0 {
|
|
|
|
|
myBuilder.Where(builder.Eq{"t1.b_use": in.BUse})
|
|
|
|
|