...
|
...
|
@@ -113,7 +113,7 @@ func (cooperationApplicationService *CooperationApplicationService) ApplyForCoop |
|
|
CooperationApplyTime: time.Now(),
|
|
|
CooperationProject: cooperationProject,
|
|
|
Org: organization,
|
|
|
IsCanceled: false,
|
|
|
IsCanceled: 1,
|
|
|
Company: company,
|
|
|
CreatedAt: time.Now(),
|
|
|
DeletedAt: time.Time{},
|
...
|
...
|
@@ -281,6 +281,7 @@ func (cooperationApplicationService *CooperationApplicationService) BatchApprova |
|
|
}
|
|
|
cooperationApplications[i].CooperationApplicationVerifier = verifier
|
|
|
cooperationApplications[i].CooperationApplicationVerifyTime = time.Now()
|
|
|
cooperationApplications[i].IsCanceled = 1
|
|
|
}
|
|
|
cooperationApplicationsApproved, err := cooperationApplicationRepository.UpdateMany(cooperationApplications)
|
|
|
if err != nil {
|
...
|
...
|
@@ -463,7 +464,7 @@ func (cooperationApplicationService *CooperationApplicationService) CreateCooper |
|
|
CooperationApplyTime: time.Now(),
|
|
|
CooperationProject: cooperationProject,
|
|
|
Org: organization,
|
|
|
IsCanceled: false,
|
|
|
IsCanceled: 1,
|
|
|
Company: company,
|
|
|
CreatedAt: time.Now(),
|
|
|
DeletedAt: time.Time{},
|
...
|
...
|
@@ -732,7 +733,7 @@ func (cooperationApplicationService *CooperationApplicationService) CancelCooper |
|
|
return nil, application.ThrowError(application.RES_NO_FIND_ERROR, fmt.Sprintf("%s", strconv.FormatInt(cooperationApplicationId, 10)))
|
|
|
}
|
|
|
if err := cooperationApplication.Update(map[string]interface{}{
|
|
|
"isCanceled": true,
|
|
|
"isCanceled": int32(2),
|
|
|
}); err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
}
|
...
|
...
|
|