...
|
...
|
@@ -286,15 +286,29 @@ func (unifiedUserCenterService *UnifiedUserCenterService) SyncEmployeeCallback(s |
|
|
break
|
|
|
case "changePhoneAllCompany": // 修改手机号
|
|
|
// 修改用户数据
|
|
|
if ok, err := employeeDao.EmployeeExist(oldPhone); err != nil {
|
|
|
return false, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
} else {
|
|
|
if ok {
|
|
|
err := employeeDao.ChangePhone(oldPhone, newPhone)
|
|
|
if err != nil {
|
|
|
return false, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 修改业务数据-素币兑换清单
|
|
|
if ok, err := cashPoolDao.ExchangeCashPersonListExist(oldPhone); err != nil {
|
|
|
return false, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
} else {
|
|
|
if ok {
|
|
|
errUpdateExchangeCashPersonList := cashPoolDao.UpdateExchangeCashPersonListUserInfo(oldPhone, newPhone)
|
|
|
if errUpdateExchangeCashPersonList != nil {
|
|
|
return false, application.ThrowError(application.TRANSACTION_ERROR, errUpdateExchangeCashPersonList.Error())
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 发布修改手机号事件
|
|
|
if err := changePhoneService.ChangePhone(oldPhone, newPhone); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
...
|
...
|
|