更新
This commit is contained in:
@@ -873,7 +873,7 @@ class ExpressTrackingService
|
||||
}
|
||||
|
||||
/**
|
||||
* 按处方订单履约核对:已发货(5)/已签收(6) 时符合条件的订单调用 applyAssistantReleaseForShippedPrescriptionOrder。
|
||||
* 按处方订单履约核对:仅已发货(5) 时符合条件的订单调用 applyAssistantReleaseForShippedPrescriptionOrder(已完成/已签收不再扫描)。
|
||||
* 与快递 100 / 甘草来自哪个物流渠道无关;是否清空医助以该方法为准(**二中心豁免看业务单创建人**参见 apply;已 shipped 释放且 assistant_id=0 视为已处理)。
|
||||
*
|
||||
* @return array{scanned: int, cleared: int, lines: list<string>}
|
||||
@@ -888,7 +888,7 @@ class ExpressTrackingService
|
||||
->whereNull('po.delete_time')
|
||||
->whereNull('d.delete_time')
|
||||
->whereRaw('(IFNULL(d.shipped_non_er_assistant_cleared_at, 0) = 0 OR d.assistant_id > 0)')
|
||||
->whereIn('po.fulfillment_status', [5, 6])
|
||||
->where('po.fulfillment_status', 5)
|
||||
->where('po.diagnosis_id', '>', 0)
|
||||
->where(function ($w) {
|
||||
$w->where('d.assistant_id', '>', 0)
|
||||
|
||||
Reference in New Issue
Block a user