Commit 580cc116 by Sxy

fix: 未分配页面数据查询

parent 1de4d7d4
......@@ -46,18 +46,21 @@ class DeliverybillDao extends Dao {
qw.delivery_man_id = qobj.userid;
}
if (qobj.bizpath.indexOf('deliveryNoAllocate') > 0) { //未分配列表
if (!qw.$or) {
qw.$or = []
delete qw.delivery_man_opcode;
if (!qw.$and) {
qw.$and = []
}
qw.$or.push(...[{
delivery_man_id: {
$or: [{ $eq: null }, { $eq: '' }],
}
}, {
salesman_id: {
$or: [{ $eq: null }, { $eq: '' }],
}
}]);
qw.$and.push({
$or: [{
delivery_man_id: {
$or: [{ $eq: null }, { $eq: '' }],
}
}, {
salesman_id: {
$or: [{ $eq: null }, { $eq: '' }],
}
}]
});
}
if (qobj.bizpath.indexOf('deliveryAllocated') > 0) { //已分配列表
qw.delivery_man_id = { $and: [{ $not: null }, { $not: '' }] };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment