Commit 4cb62cb4 by Sxy

fix: 分配bug

parent 59db59e9
......@@ -40,19 +40,15 @@ class DeliverDao extends Dao {
}
break
case "/deliveryManagement/deliveryAllocated":
qc.where.delivery_man_id = qc.where.delivery_man_id || {
qc.where.delivery_man_opcode = {
$and: [{ $not: null }, { $not: "" }]
}
break
case "/deliveryManagement/deliveryNoAllocate":
if (!qc.where['$or']) {
qc.where['$or'] = []
qc.where['$or'] = [];
qc.where.delivery_man_opcode = {
$or: [{ $eq: null }, { $eq: "" }]
}
qc.where['$or'].push({
delivery_man_opcode: {
$eq: null
}
})
break
case "/deliveryManagement/all":
break
......@@ -127,14 +123,12 @@ class DeliverDao extends Dao {
});
break
case "/wangwenManagement/deliveryNoAllocate":
if (!qc.where['$or']) {
qc.where['$or'] = []
}
qc.where['$or'].push({
qc.where['$or'] = [];
filters.push({
delivery_man_opcode: {
$eq: null
}
})
});
break
case "/wangwenManagement/all":
break
......@@ -161,14 +155,12 @@ class DeliverDao extends Dao {
});
break
case "/foodManagement/deliveryNoAllocate":
if (!qc.where['$or']) {
qc.where['$or'] = []
}
qc.where['$or'].push({
qc.where['$or'] = [];
filters.push({
delivery_man_opcode: {
$eq: null
}
})
});
break
case "/foodManagement/all":
break
......@@ -195,14 +187,12 @@ class DeliverDao extends Dao {
});
break
case "/guangboManagement/deliveryNoAllocate":
if (!qc.where['$or']) {
qc.where['$or'] = []
}
qc.where['$or'].push({
qc.where['$or'] = []
filters.push({
delivery_man_opcode: {
$eq: null
}
})
});
break
case "/guangboManagement/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