客户对账 解决 并行查询问题

test
张同海 2 weeks ago
parent 20e62ac6ad
commit 5551179f7d

@ -199,6 +199,7 @@
] ]
var currentPageInfo: any = getPaginationRef() var currentPageInfo: any = getPaginationRef()
let otherQueryCondition: any = [] let otherQueryCondition: any = []
let ConditionalList: any = []
let queryCondition: any = [] let queryCondition: any = []
let postParam: API.PageRequest = { let postParam: API.PageRequest = {
queryCondition: '[]', queryCondition: '[]',
@ -212,7 +213,7 @@
for (let key in p) { for (let key in p) {
Arr.forEach((item) => { Arr.forEach((item) => {
if ((key.includes(':') && key.includes(item) && p[key]) || (key == item && p[key])) { if (key.includes(':') && key.includes(item) && p[key]) {
// billNo // billNo
if (item == 'billNo') { if (item == 'billNo') {
queryCondition.push({ queryCondition.push({
@ -221,15 +222,38 @@
ConditionalType: 1, ConditionalType: 1,
}) })
} else { } else {
otherQueryCondition.push({ // if (ConditionalList.length) {
FieldName: item, // ConditionalList.push({
FieldValue: p[key], // Key: 1,
ConditionalType: 1, // Value: {
// FieldName: item,
// FieldValue: p[key],
// ConditionalType: 1,
// },
// })
// } else {
ConditionalList.push({
Key: 1,
Value: {
FieldName: item,
FieldValue: p[key],
ConditionalType: 1,
},
}) })
// }
} }
} else if (key == item && p[key]) {
otherQueryCondition.push({
FieldName: item,
FieldValue: p[key],
ConditionalType: 1,
})
} }
}) })
} }
console.log(otherQueryCondition)
otherQueryCondition.push({ ConditionalList })
postParam.otherQueryCondition = JSON.stringify(otherQueryCondition) postParam.otherQueryCondition = JSON.stringify(otherQueryCondition)
postParam.queryCondition = JSON.stringify(queryCondition) postParam.queryCondition = JSON.stringify(queryCondition)
return postParam return postParam

Loading…
Cancel
Save