|
@@ -447,8 +447,10 @@ func UpdateCygxRaiServeBillByCompanyIds() (err error) {
|
|
|
return
|
|
|
}
|
|
|
mapUserMaker := make(map[int]bool)
|
|
|
+ mapUserMobileUserId := make(map[string]int)
|
|
|
for _, v := range listisMakeruser {
|
|
|
mapUserMaker[v.UserId] = true
|
|
|
+ mapUserMobileUserId[v.Mobile] = v.UserId
|
|
|
}
|
|
|
|
|
|
var condition string
|
|
@@ -664,6 +666,10 @@ func UpdateCygxRaiServeBillByCompanyIds() (err error) {
|
|
|
item.ServeTypeId = 2
|
|
|
item.ServeTypeName = "线下活动"
|
|
|
}
|
|
|
+ if v.UserId == 0 && v.Mobile != "" {
|
|
|
+ v.UserId = mapUserMobileUserId[v.Mobile] // 空降的部分联系人 userid 为0这里做一下修复
|
|
|
+ }
|
|
|
+
|
|
|
item.UserId = v.UserId
|
|
|
item.Mobile = v.Mobile
|
|
|
item.Email = v.Email
|