|
|
|
@ -50,7 +50,7 @@ type schoolStruct struct {
|
|
|
|
|
type LoginAccount struct {
|
|
|
|
|
LoginName string //登录名
|
|
|
|
|
Pwd string //密码,支持ldap
|
|
|
|
|
OriginalPwd string //原始密码
|
|
|
|
|
OriginalPwd string //初始密码
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetLoginIdIntMax(count int64) int64 {
|
|
|
|
@ -58,7 +58,7 @@ func GetLoginIdIntMax(count int64) int64 {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
功能:生成登录帐号
|
|
|
|
|
功能:生成登录账号
|
|
|
|
|
作者:黄海
|
|
|
|
|
时间:2020-06-11
|
|
|
|
|
*/
|
|
|
|
@ -141,7 +141,7 @@ func addBureau(areaCode string, jiaoYuJuId string, areaName string, provinceCode
|
|
|
|
|
model.SortId = 1
|
|
|
|
|
model.BUse = 1
|
|
|
|
|
arrayTBaseOrganization = append(arrayTBaseOrganization, *model)
|
|
|
|
|
//生成登录帐号
|
|
|
|
|
//生成登录账号
|
|
|
|
|
addManager(model.OrgId, model.OrgName, model.OrgType, model.ProvinceCode, model.CityCode, model.DistrictCode, accountArray[i])
|
|
|
|
|
fmt.Println("准备教辅单位数据:" + model.OrgName)
|
|
|
|
|
}
|
|
|
|
@ -302,7 +302,7 @@ func addTeacher(bureauId string, provinceCode string, cityCode string, districtC
|
|
|
|
|
model.MainSchoolId = mainSchoolId
|
|
|
|
|
//调用DAO保存
|
|
|
|
|
arrayTBaseTeacher = append(arrayTBaseTeacher, *model)
|
|
|
|
|
// 生成教师帐号
|
|
|
|
|
// 生成教师账号
|
|
|
|
|
addLoginPerson(2, model.PersonId, model.Xm, accountArray[i])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -415,7 +415,7 @@ func addStudent(bureauId string, classId string, provinceCode string, cityCode s
|
|
|
|
|
model.BureauId = bureauId
|
|
|
|
|
//添加学生
|
|
|
|
|
arrayTBaseStudent = append(arrayTBaseStudent, *model)
|
|
|
|
|
//为学生创建帐号
|
|
|
|
|
//为学生创建账号
|
|
|
|
|
addLoginPerson(3, model.PersonId, model.Xm, studentAccountArray[i])
|
|
|
|
|
|
|
|
|
|
//为学生创建对应的家长
|
|
|
|
|