|
|
|
@ -194,8 +194,19 @@ export function formatParams(params = {}, equal: any = [], otherQuery: any = [])
|
|
|
|
|
const orKeys = key.split(':')
|
|
|
|
|
const ConditionalList = { ConditionalList: [] }
|
|
|
|
|
if (params[key]) {
|
|
|
|
|
orKeys.forEach((item) => {
|
|
|
|
|
let obj = {
|
|
|
|
|
orKeys.forEach((item, index) => {
|
|
|
|
|
let obj = []
|
|
|
|
|
if (index == 0) {
|
|
|
|
|
obj = {
|
|
|
|
|
Key: 0,
|
|
|
|
|
Value: {
|
|
|
|
|
FieldName: item,
|
|
|
|
|
FieldValue: params[key],
|
|
|
|
|
ConditionalType: 1,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
obj = {
|
|
|
|
|
Key: 1,
|
|
|
|
|
Value: {
|
|
|
|
|
FieldName: item,
|
|
|
|
@ -203,13 +214,13 @@ export function formatParams(params = {}, equal: any = [], otherQuery: any = [])
|
|
|
|
|
ConditionalType: 1,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ConditionalList.ConditionalList.push(obj)
|
|
|
|
|
})
|
|
|
|
|
conditions.push(ConditionalList)
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
let isEqual = false
|
|
|
|
|
|
|
|
|
|
if (equal.length) {
|
|
|
|
|
isEqual = equal.includes(key)
|
|
|
|
|
}
|
|
|
|
|