...
|
...
|
@@ -113,7 +113,9 @@ func (cooperationApplicationService *CooperationApplicationService) ApplyForCoop |
|
|
// 校验:同一个用户,不能多次申请同一个项目
|
|
|
applicationExist, _ := cooperationApplicationDao.CheckApplicationExist(map[string]interface{}{
|
|
|
"visitorUserBaseId": applicant.UserBaseId,
|
|
|
"cooperationApplicationId": cooperationProject.CooperationProjectId,
|
|
|
"companyId": cooperationProject.Company.CompanyId,
|
|
|
"orgId": cooperationProject.Org.OrgId,
|
|
|
"cooperationProjectNumber": cooperationProject.CooperationProjectNumber,
|
|
|
})
|
|
|
if applicationExist {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, "抱歉,您已经申请过该项目")
|
...
|
...
|
@@ -173,7 +175,7 @@ func (cooperationApplicationService *CooperationApplicationService) ApplyForCoop |
|
|
"companyId": applyForCooperationCommand.CompanyId,
|
|
|
"orgId": applyForCooperationCommand.OrgId,
|
|
|
"applicantId": applicant.UserId,
|
|
|
"cooperationApplicationId": cooperationProject.CooperationProjectId,
|
|
|
"cooperationProjectNumber": cooperationProject.CooperationProjectNumber,
|
|
|
})
|
|
|
if applicationExist {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, "抱歉,您已经申请过该项目")
|
...
|
...
|
|