zhangchuanxing il y a 5 mois
Parent
commit
5b7f6282e5
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      services/company.go

+ 3 - 0
services/company.go

@@ -2521,6 +2521,9 @@ func GetShareCompanyPermissionButton(roleTypeCode, statuses string, productId in
 
 // AddWxUserMoveLog 添加用户移动日志记录
 func AddWxUserMoveLog(wxUser *models.WxUser, adminUser *system.Admin, newCompanyId int) (err error) {
+	if wxUser.CompanyId == newCompanyId {
+		return
+	}
 	defer func() {
 		if err != nil {
 			go alarm_msg.SendAlarmMsg("添加用户移动日志记录失败,AddWxUserMoveLog "+fmt.Sprint("UserId:", wxUser.UserId, ";err:", err), 3)