作者 tangxvhui

bug 修复

... ... @@ -344,8 +344,8 @@ func AddUserCompanyData(centerCompany *ModuleCompanytData, newcompany *models.Co
uc = &models.UserCompany{
UserId: newuser.Id,
CompanyId: newcompany.Id,
Enable: models.USERCOMPANY_ENABLE_YES,
ChargeStatus: models.USERCOMPANY_CHARGE_YES,
Enable: adminUserData.Status,
ChargeStatus: adminUserData.ChargeStatus,
Id: adminUserData.Id,
NickName: adminUserData.Name,
OpenId: adminUserData.OpenId,
... ... @@ -359,8 +359,8 @@ func AddUserCompanyData(centerCompany *ModuleCompanytData, newcompany *models.Co
IsBusiness: adminUserData.IsBusiness,
Avatar: adminUserData.Avatar,
Remarks: adminUserData.Remarks,
// AdminType: adminUserData.AdminType,
ExtraText: adminUserData.ExtraText,
AdminType: adminUserData.AdminType,
ExtraText: adminUserData.ExtraText,
}
_, err = models.AddUserCompany(uc, o)
if err != nil {
... ...
... ... @@ -359,6 +359,7 @@ func UpdateEmployeeData(data ModuleEmployee) error {
ucompany.Remarks = data.Remarks
ucompany.ChargeStatus = data.ChargeStatus
ucompany.ExtraText = data.ExtraText
ucompany.AdminType = data.AdminType
cols := []string{"NickName", "OpenId", "Sex", "JobNum",
"Phone", "PrivatePhone", "Email", "ExtensionNum", "Workspace",
"IsBusiness", "Avatar", "Remarks", "AdminType", "ChargeStatus",
... ...