...
|
...
|
@@ -49,11 +49,11 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
|
underTakers := []allied_creation_cooperation.Undertaker{}
|
|
|
for _, v := range createCooperationContractCommand.Undertakers {
|
|
|
u := allied_creation_cooperation.Undertaker{
|
|
|
RelevantId: v.UndertakerId,
|
|
|
UserId: v.UserId,
|
|
|
ReferrerId: v.RerferrerId,
|
|
|
SalesmanId: v.SalesmanId,
|
|
|
Attachment: v.Attachment,
|
|
|
UndertakerId: v.UndertakerId,
|
|
|
UserId: v.UserId,
|
|
|
ReferrerId: v.RerferrerId,
|
|
|
SalesmanId: v.SalesmanId,
|
|
|
Attachment: v.Attachment,
|
|
|
}
|
|
|
underTakers = append(underTakers, u)
|
|
|
}
|
...
|
...
|
@@ -85,8 +85,15 @@ func (cooperationContractService *CooperationContractService) EnableCooperationC |
|
|
if err := enableCooperationContractCommand.ValidateCommand(); err != nil {
|
|
|
return nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
|
|
|
return nil, nil
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(enableCooperationContractCommand.Operator)
|
|
|
_, err := creationCooperationGateway.CooperationContractsBatchOperate(allied_creation_cooperation.ReqCooperationContractsBatchOperate{
|
|
|
CooperationContractIds: enableCooperationContractCommand.CooperationContractId,
|
|
|
Action: enableCooperationContractCommand.Status,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
return enableCooperationContractCommand, nil
|
|
|
}
|
|
|
|
|
|
// 返回共创合约详情
|
...
|
...
|
@@ -165,11 +172,11 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
underTakers := []allied_creation_cooperation.Undertaker{}
|
|
|
for _, v := range updateCooperationContractCommand.Undertakers {
|
|
|
u := allied_creation_cooperation.Undertaker{
|
|
|
RelevantId: v.UndertakerId,
|
|
|
UserId: v.UserId,
|
|
|
ReferrerId: v.RerferrerId,
|
|
|
SalesmanId: v.SalesmanId,
|
|
|
Attachment: v.Attachment,
|
|
|
UndertakerId: v.UndertakerId,
|
|
|
UserId: v.UserId,
|
|
|
ReferrerId: v.RerferrerId,
|
|
|
SalesmanId: v.SalesmanId,
|
|
|
Attachment: v.Attachment,
|
|
|
}
|
|
|
underTakers = append(underTakers, u)
|
|
|
}
|
...
|
...
|
|