|
@@ -982,33 +982,33 @@ func (this *RoleAPIController) AddAdmin() {
|
982
|
982
|
if total <= 0 {
|
983
|
983
|
//新增用户
|
984
|
984
|
app_role := &models.App_Role{
|
985
|
|
- AdminUserId: adminUser.Id,
|
986
|
|
- OrgId: adminUserInfo.CurrentOrgId,
|
987
|
|
- AppId: adminUserInfo.CurrentAppId,
|
988
|
|
- Avatar: "",
|
989
|
|
- UserName: name,
|
990
|
|
- UserTitleName: user_title_name,
|
991
|
|
- Status: 1,
|
992
|
|
- UserType: int8(userType),
|
993
|
|
- UserTitle: int8(userTitle),
|
994
|
|
- CreateTime: time.Now().Unix(),
|
995
|
|
- ModifyTime: time.Now().Unix(),
|
996
|
|
- RoleIds: roleIds,
|
997
|
|
- Department: department,
|
998
|
|
- DepartmentId: department_id,
|
999
|
|
- Sex: sex,
|
1000
|
|
- Age: age,
|
1001
|
|
- Nation: nation,
|
1002
|
|
- CardType: card_type,
|
1003
|
|
- IdCard: id_card,
|
1004
|
|
- Education: education,
|
1005
|
|
- StudyMajorName: study_major_name,
|
1006
|
|
- WorkMajorName: work_major_name,
|
1007
|
|
- RoleType: role_type,
|
1008
|
|
- MedicalCode: medical_code,
|
1009
|
|
- DoctorCode: doctor_code,
|
1010
|
|
- Licensing: licensing,
|
1011
|
|
- JobNumber: job_number,
|
|
985
|
+ AdminUserId: adminUser.Id,
|
|
986
|
+ OrgId: adminUserInfo.CurrentOrgId,
|
|
987
|
+ AppId: adminUserInfo.CurrentAppId,
|
|
988
|
+ Avatar: "",
|
|
989
|
+ UserName: name,
|
|
990
|
+ UserTitleName: user_title_name,
|
|
991
|
+ Status: 1,
|
|
992
|
+ UserType: int8(userType),
|
|
993
|
+ UserTitle: int8(userTitle),
|
|
994
|
+ CreateTime: time.Now().Unix(),
|
|
995
|
+ ModifyTime: time.Now().Unix(),
|
|
996
|
+ RoleIds: roleIds,
|
|
997
|
+ Department: department,
|
|
998
|
+ DepartmentId: department_id,
|
|
999
|
+ Sex: sex,
|
|
1000
|
+ Age: age,
|
|
1001
|
+ Nation: nation,
|
|
1002
|
+ CardType: card_type,
|
|
1003
|
+ IdCard: id_card,
|
|
1004
|
+ Education: education,
|
|
1005
|
+ StudyMajorName: study_major_name,
|
|
1006
|
+ WorkMajorName: work_major_name,
|
|
1007
|
+ RoleType: role_type,
|
|
1008
|
+ MedicalCode: medical_code,
|
|
1009
|
+ DoctorCode: doctor_code,
|
|
1010
|
+ Licensing: licensing,
|
|
1011
|
+ JobNumber: job_number,
|
1012
|
1012
|
PrescriptionQualificationIdentification: prescription_qualification_identification,
|
1013
|
1013
|
IdentificationOutpatients: identification_outpatients,
|
1014
|
1014
|
StartTime: theStartTime.Unix(),
|
|
@@ -1126,7 +1126,7 @@ func (this *RoleAPIController) EditAdmin() {
|
1126
|
1126
|
department := this.GetString("department")
|
1127
|
1127
|
department_id, _ := this.GetInt64("department_id")
|
1128
|
1128
|
sort, _ := this.GetInt64("sort")
|
1129
|
|
-
|
|
1129
|
+ sex, _ := this.GetInt64("sex")
|
1130
|
1130
|
age, _ := this.GetInt64("age")
|
1131
|
1131
|
nation := this.GetString("nation")
|
1132
|
1132
|
card_type, _ := this.GetInt64("card_type")
|
|
@@ -1215,6 +1215,7 @@ func (this *RoleAPIController) EditAdmin() {
|
1215
|
1215
|
appRole.OutpatientIllnesscategory = outpatient_illnessCategory
|
1216
|
1216
|
appRole.IsActive = is_active
|
1217
|
1217
|
appRole.ActiveStatus = active_status
|
|
1218
|
+ appRole.Sex = sex
|
1218
|
1219
|
saveErr := service.SaveAppRole(appRole)
|
1219
|
1220
|
if saveErr != nil {
|
1220
|
1221
|
//beego.Error("修改App_Role失败:", saveErr)
|