|
@@ -423,13 +423,13 @@ func Utiltags(tag map[string]interface{}) string {
|
|
if len(tab.Sexistfields) > 0 {
|
|
if len(tab.Sexistfields) > 0 {
|
|
tmpsfields := strings.Split(tab.Sexistfields, ",")
|
|
tmpsfields := strings.Split(tab.Sexistfields, ",")
|
|
for _, v := range tmpsfields {
|
|
for _, v := range tmpsfields {
|
|
- fqBoolObject.MustNot = append(fqBoolObject.MustNot, sql.ExistfieldsObjectMust{
|
|
|
|
|
|
+ ffBoolObject.Must = append(ffBoolObject.Must, sql.ExistfieldsObjectMust{
|
|
ExistfieldsObject: &sql.ExistfieldsObject{Filter: struct {
|
|
ExistfieldsObject: &sql.ExistfieldsObject{Filter: struct {
|
|
- Missing struct {
|
|
|
|
|
|
+ Exists struct {
|
|
Field string `json:"field,omitempty"`
|
|
Field string `json:"field,omitempty"`
|
|
- } `json:"missing,omitempty"`
|
|
|
|
|
|
+ } `json:"exists,omitempty"`
|
|
}{
|
|
}{
|
|
- Missing: struct {
|
|
|
|
|
|
+ Exists: struct {
|
|
Field string `json:"field,omitempty"`
|
|
Field string `json:"field,omitempty"`
|
|
}{Field: v},
|
|
}{Field: v},
|
|
},
|
|
},
|
|
@@ -529,11 +529,11 @@ func Utiltags(tag map[string]interface{}) string {
|
|
if tab.SbidamountFieldExist == 1 {
|
|
if tab.SbidamountFieldExist == 1 {
|
|
fqBoolObject.MustNot = append(fqBoolObject.MustNot, sql.ExistfieldsObjectMust{
|
|
fqBoolObject.MustNot = append(fqBoolObject.MustNot, sql.ExistfieldsObjectMust{
|
|
ExistfieldsObject: &sql.ExistfieldsObject{Filter: struct {
|
|
ExistfieldsObject: &sql.ExistfieldsObject{Filter: struct {
|
|
- Missing struct {
|
|
|
|
|
|
+ Exists struct {
|
|
Field string `json:"field,omitempty"`
|
|
Field string `json:"field,omitempty"`
|
|
- } `json:"missing,omitempty"`
|
|
|
|
|
|
+ } `json:"exists,omitempty"`
|
|
}{
|
|
}{
|
|
- Missing: struct {
|
|
|
|
|
|
+ Exists: struct {
|
|
Field string `json:"field,omitempty"`
|
|
Field string `json:"field,omitempty"`
|
|
}{Field: "bidamount"},
|
|
}{Field: "bidamount"},
|
|
},
|
|
},
|
|
@@ -565,11 +565,11 @@ func Utiltags(tag map[string]interface{}) string {
|
|
if tab.SbudgetFieldExist == 1 {
|
|
if tab.SbudgetFieldExist == 1 {
|
|
fqBoolObject.MustNot = append(fqBoolObject.MustNot, sql.ExistfieldsObjectMust{
|
|
fqBoolObject.MustNot = append(fqBoolObject.MustNot, sql.ExistfieldsObjectMust{
|
|
ExistfieldsObject: &sql.ExistfieldsObject{Filter: struct {
|
|
ExistfieldsObject: &sql.ExistfieldsObject{Filter: struct {
|
|
- Missing struct {
|
|
|
|
|
|
+ Exists struct {
|
|
Field string `json:"field,omitempty"`
|
|
Field string `json:"field,omitempty"`
|
|
- } `json:"missing,omitempty"`
|
|
|
|
|
|
+ } `json:"exists,omitempty"`
|
|
}{
|
|
}{
|
|
- Missing: struct {
|
|
|
|
|
|
+ Exists: struct {
|
|
Field string `json:"field,omitempty"`
|
|
Field string `json:"field,omitempty"`
|
|
}{Field: "budget"},
|
|
}{Field: "budget"},
|
|
},
|
|
},
|