|
@@ -1111,6 +1111,36 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
@@ -1111,6 +1111,36 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
1111
|
// 变更承接人
|
1111
|
// 变更承接人
|
1112
|
var undertakersChanged string
|
1112
|
var undertakersChanged string
|
1113
|
for i, undertaker := range cooperationContractSaved.Undertakers {
|
1113
|
for i, undertaker := range cooperationContractSaved.Undertakers {
|
|
|
1114
|
+ if undertaker.Referrer == nil {
|
|
|
1115
|
+ undertaker.Referrer = &domain.Referrer{
|
|
|
1116
|
+ UserId: 0,
|
|
|
1117
|
+ UserBaseId: 0,
|
|
|
1118
|
+ Roles: nil,
|
|
|
1119
|
+ Orgs: nil,
|
|
|
1120
|
+ Org: nil,
|
|
|
1121
|
+ Department: nil,
|
|
|
1122
|
+ Company: nil,
|
|
|
1123
|
+ UserInfo: nil,
|
|
|
1124
|
+ UserType: 0,
|
|
|
1125
|
+ UserName: "",
|
|
|
1126
|
+ UserPhone: "",
|
|
|
1127
|
+ }
|
|
|
1128
|
+ }
|
|
|
1129
|
+ if undertaker.Salesman == nil {
|
|
|
1130
|
+ undertaker.Salesman = &domain.Salesman{
|
|
|
1131
|
+ UserId: 0,
|
|
|
1132
|
+ UserBaseId: 0,
|
|
|
1133
|
+ Roles: nil,
|
|
|
1134
|
+ Orgs: nil,
|
|
|
1135
|
+ Org: nil,
|
|
|
1136
|
+ Department: nil,
|
|
|
1137
|
+ Company: nil,
|
|
|
1138
|
+ UserInfo: nil,
|
|
|
1139
|
+ UserType: 0,
|
|
|
1140
|
+ UserName: "",
|
|
|
1141
|
+ UserPhone: "",
|
|
|
1142
|
+ }
|
|
|
1143
|
+ }
|
1114
|
undertakersChanged = undertakersChanged + strconv.FormatInt(int64(i), 10) + "(" + undertaker.UserName + "," + undertaker.Referrer.UserName + "," + undertaker.Salesman.UserName + ")"
|
1144
|
undertakersChanged = undertakersChanged + strconv.FormatInt(int64(i), 10) + "(" + undertaker.UserName + "," + undertaker.Referrer.UserName + "," + undertaker.Salesman.UserName + ")"
|
1115
|
}
|
1145
|
}
|
1116
|
undertakerChangeTemp2 := "【" + undertakersChanged + "】"
|
1146
|
undertakerChangeTemp2 := "【" + undertakersChanged + "】"
|