Commit ac5d6205 by Sxy

fix: 未分配查询

parent a0618ce4
......@@ -53,31 +53,34 @@ class DeliverDao extends Dao {
break;
case '/deliveryManagement/deliveryAllocated':
if (!qc.where.$and) {
qc.where.$and = []
qc.where.$and = [];
}
qc.where.$and.push(...[{
delivery_man_id: {
delivery_man_opcode: {
$and: [{ $not: null }, { $not: '' }],
}
}, {
salesman_id: {
salesman_opcode: {
$and: [{ $not: null }, { $not: '' }],
}
}]);
break;
case '/deliveryManagement/deliveryNoAllocate':
if (!qc.where.$or) {
qc.where.$or = []
delete qc.where.$or;
if (!qc.where.$and) {
qc.where.$and = [];
}
qc.where.$or.push(...[{
delivery_man_id: {
qc.where.$and.push({
$or: [{
delivery_man_opcode: {
$or: [{ $eq: null }, { $eq: '' }],
}
}, {
salesman_id: {
salesman_opcode: {
$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