...
|
...
|
@@ -49,7 +49,7 @@ func (cooperationContractService *CooperationContractService) CreateCooperationC |
|
|
underTakers := []allied_creation_cooperation.Undertaker{}
|
|
|
for _, v := range createCooperationContractCommand.Undertakers {
|
|
|
u := allied_creation_cooperation.Undertaker{
|
|
|
RelevantId: v.UndertakerId,
|
|
|
UndertakerId: v.UndertakerId,
|
|
|
UserId: v.UserId,
|
|
|
ReferrerId: v.RerferrerId,
|
|
|
SalesmanId: v.SalesmanId,
|
...
|
...
|
@@ -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,7 +172,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
underTakers := []allied_creation_cooperation.Undertaker{}
|
|
|
for _, v := range updateCooperationContractCommand.Undertakers {
|
|
|
u := allied_creation_cooperation.Undertaker{
|
|
|
RelevantId: v.UndertakerId,
|
|
|
UndertakerId: v.UndertakerId,
|
|
|
UserId: v.UserId,
|
|
|
ReferrerId: v.RerferrerId,
|
|
|
SalesmanId: v.SalesmanId,
|
...
|
...
|
|