|
|
@ -265,7 +265,7 @@ func GetChildSchoolCount(mainSchoolId string) (int64, error) {
|
|
|
|
时间:2020-06-03
|
|
|
|
时间:2020-06-03
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
func GetBureauAdministrativeDivision(BureauId string) (string, string, string, string, string, error) {
|
|
|
|
func GetBureauAdministrativeDivision(BureauId string) (string, string, string, string, string, error) {
|
|
|
|
list := SqlKit.QueryMapArrayByIds([]string{BureauId}, "t_base_organization")
|
|
|
|
list := SqlKit.QueryByIds([]string{BureauId}, "t_base_organization")
|
|
|
|
if len(list) > 0 {
|
|
|
|
if len(list) > 0 {
|
|
|
|
return list[0]["area_code"].(string), list[0]["province_code"].(string), list[0]["city_code"].(string), list[0]["district_code"].(string),
|
|
|
|
return list[0]["area_code"].(string), list[0]["province_code"].(string), list[0]["city_code"].(string), list[0]["district_code"].(string),
|
|
|
|
list[0]["main_school_id"].(string), nil
|
|
|
|
list[0]["main_school_id"].(string), nil
|
|
|
@ -280,7 +280,7 @@ func GetBureauAdministrativeDivision(BureauId string) (string, string, string, s
|
|
|
|
时间:2020-06-03
|
|
|
|
时间:2020-06-03
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
func GetMultipleBaseOrganization(Ids []string) ([]map[string]interface{}, int32, error) {
|
|
|
|
func GetMultipleBaseOrganization(Ids []string) ([]map[string]interface{}, int32, error) {
|
|
|
|
list := SqlKit.QueryMapArrayByIds(Ids, "t_base_organization")
|
|
|
|
list := SqlKit.QueryByIds(Ids, "t_base_organization")
|
|
|
|
return list, int32(len(list)), nil
|
|
|
|
return list, int32(len(list)), nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|