...
|
...
|
@@ -831,7 +831,7 @@ func (repository *CooperationContractRepository) Find(queryOptions map[string]in |
|
|
cooperationContracts := make([]*domain.CooperationContract, 0)
|
|
|
query := sqlbuilder.BuildQuery(tx.Model(&cooperationContractModels), queryOptions)
|
|
|
if cooperationContractNumber, ok := queryOptions["cooperationContractNumber"]; ok && cooperationContractNumber != "" {
|
|
|
query.Where("cooperation_contract_number like ?", fmt.Sprintf("%%%s%%", cooperationContractNumber))
|
|
|
query.Where("cooperation_contract_number ilike ?", fmt.Sprintf("%%%s%%", cooperationContractNumber))
|
|
|
}
|
|
|
if cooperationContractName, ok := queryOptions["cooperationContactName"]; ok && cooperationContractName != "" {
|
|
|
query.Where("cooperation_contract_name like ?", fmt.Sprintf("%%%s%%", cooperationContractName))
|
...
|
...
|
|