Commit 580cc116 by Sxy

fix: 未分配页面数据查询

parent 1de4d7d4
...@@ -46,10 +46,12 @@ class DeliverybillDao extends Dao { ...@@ -46,10 +46,12 @@ class DeliverybillDao extends Dao {
qw.delivery_man_id = qobj.userid; qw.delivery_man_id = qobj.userid;
} }
if (qobj.bizpath.indexOf('deliveryNoAllocate') > 0) { //未分配列表 if (qobj.bizpath.indexOf('deliveryNoAllocate') > 0) { //未分配列表
if (!qw.$or) { delete qw.delivery_man_opcode;
qw.$or = [] if (!qw.$and) {
qw.$and = []
} }
qw.$or.push(...[{ qw.$and.push({
$or: [{
delivery_man_id: { delivery_man_id: {
$or: [{ $eq: null }, { $eq: '' }], $or: [{ $eq: null }, { $eq: '' }],
} }
...@@ -57,7 +59,8 @@ class DeliverybillDao extends Dao { ...@@ -57,7 +59,8 @@ class DeliverybillDao extends Dao {
salesman_id: { salesman_id: {
$or: [{ $eq: null }, { $eq: '' }], $or: [{ $eq: null }, { $eq: '' }],
} }
}]); }]
});
} }
if (qobj.bizpath.indexOf('deliveryAllocated') > 0) { //已分配列表 if (qobj.bizpath.indexOf('deliveryAllocated') > 0) { //已分配列表
qw.delivery_man_id = { $and: [{ $not: null }, { $not: '' }] }; 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