Commit 0311bb17 by Sxy

fix: 未分配查询

parent 51616eb3
......@@ -57,9 +57,17 @@ class DeliverDao extends Dao {
};
break;
case '/deliveryManagement/deliveryNoAllocate':
qc.where.delivery_man_id = qc.where.delivery_man_id || {
$or: [{ $eq: null }, { $eq: '' }],
};
if (!qc.where.$or) {
qc.where.$or = []
}
qc.where.$or.push({
delivery_man_id: {
$or: [{ $eq: null }, { $eq: '' }],
},
salesman_id: {
$or: [{ $eq: null }, { $eq: '' }],
}
});
break;
case '/deliveryManagement/all':
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