Commit a0618ce4 by Sxy

fix: 分配页面列表

parent eda88dbf
...@@ -52,22 +52,32 @@ class DeliverDao extends Dao { ...@@ -52,22 +52,32 @@ class DeliverDao extends Dao {
}; };
break; break;
case '/deliveryManagement/deliveryAllocated': case '/deliveryManagement/deliveryAllocated':
qc.where.delivery_man_id = qc.where.delivery_man_id || { if (!qc.where.$and) {
qc.where.$and = []
}
qc.where.$and.push(...[{
delivery_man_id: {
$and: [{ $not: null }, { $not: '' }], $and: [{ $not: null }, { $not: '' }],
}; }
}, {
salesman_id: {
$and: [{ $not: null }, { $not: '' }],
}
}]);
break; break;
case '/deliveryManagement/deliveryNoAllocate': case '/deliveryManagement/deliveryNoAllocate':
if (!qc.where.$or) { if (!qc.where.$or) {
qc.where.$or = [] qc.where.$or = []
} }
qc.where.$or.push({ qc.where.$or.push(...[{
delivery_man_id: { delivery_man_id: {
$or: [{ $eq: null }, { $eq: '' }], $or: [{ $eq: null }, { $eq: '' }],
}, }
}, {
salesman_id: { salesman_id: {
$or: [{ $eq: null }, { $eq: '' }], $or: [{ $eq: null }, { $eq: '' }],
} }
}); }]);
break; break;
case '/deliveryManagement/all': case '/deliveryManagement/all':
break; break;
......
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