Commit 59db59e9 by Sxy

fix: 未分配bug

parent ba6f4a8e
......@@ -45,16 +45,14 @@ 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'] = []
}
if (qc.where['$or']) {
qc.where['$or'].push({
salesman_opcode: {
delivery_man_opcode: {
$eq: null
}
})
}
break
case "/deliveryManagement/all":
break
......@@ -129,11 +127,14 @@ class DeliverDao extends Dao {
});
break
case "/wangwenManagement/deliveryNoAllocate":
filters.push({
if (!qc.where['$or']) {
qc.where['$or'] = []
}
qc.where['$or'].push({
delivery_man_opcode: {
$eq: null
}
});
})
break
case "/wangwenManagement/all":
break
......@@ -160,11 +161,14 @@ class DeliverDao extends Dao {
});
break
case "/foodManagement/deliveryNoAllocate":
filters.push({
if (!qc.where['$or']) {
qc.where['$or'] = []
}
qc.where['$or'].push({
delivery_man_opcode: {
$eq: null
}
});
})
break
case "/foodManagement/all":
break
......@@ -191,11 +195,14 @@ class DeliverDao extends Dao {
});
break
case "/guangboManagement/deliveryNoAllocate":
filters.push({
if (!qc.where['$or']) {
qc.where['$or'] = []
}
qc.where['$or'].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