|
@@ -33,6 +33,8 @@ func (dao *CooperationApplicationDao) CheckApplicationExist(queryOptions map[str |
|
@@ -33,6 +33,8 @@ func (dao *CooperationApplicationDao) CheckApplicationExist(queryOptions map[str |
33
|
if applicantBaseId, ok := queryOptions["applicantBaseId"]; ok && applicantBaseId.(int64) != 0 {
|
33
|
if applicantBaseId, ok := queryOptions["applicantBaseId"]; ok && applicantBaseId.(int64) != 0 {
|
34
|
query = query.Where(`cooperation_application.cooperation_application_applicant @>'{"userBaseId":"?"}'`, applicantBaseId)
|
34
|
query = query.Where(`cooperation_application.cooperation_application_applicant @>'{"userBaseId":"?"}'`, applicantBaseId)
|
35
|
}
|
35
|
}
|
|
|
36
|
+ query.Where("cooperation_application.cooperation_application_status <> 3")
|
|
|
37
|
+ query.Where("cooperation_application.is_canceled <> 2")
|
36
|
ok, err := query.Exists()
|
38
|
ok, err := query.Exists()
|
37
|
return ok, err
|
39
|
return ok, err
|
38
|
}
|
40
|
}
|