Commit f86993d9 by 朱继来

调整订单导出同步判断

parent 7a27307f
Showing with 6 additions and 4 deletions
......@@ -539,10 +539,12 @@ Class OrderController extends Controller
})
->where(function ($query) use ($map) {
// 同步状态
if ($map['erp_order_id'] == 1) {
$query->where('o.erp_order_id', '<>', '');
} else {
$query->where('o.erp_order_id', '=', '');
if (!empty($map['erp_order_id'])) {
if ($map['erp_order_id'] == 1) {
$query->where('o.erp_order_id', '<>', '');
} else {
$query->where('o.erp_order_id', '=', '');
}
}
})
->where(function ($query) use ($map) {
......
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 sign in to comment