|
|
@@ -146,7 +146,7 @@ class SparePartLogic extends BaseLogic
|
|
|
public static function isExamineOk($service_work_id)
|
|
|
{
|
|
|
$tm = time() - 3 * 86400;
|
|
|
- $count = ServiceWorkSpare::where("create_time",'<', $tm)->where("service_work_id",$service_work_id)->whereIn('status', [0,2])->count();
|
|
|
+ $count = ServiceWorkSpare::where("service_work_id",$service_work_id)->whereIn('status', [0,2])->count();
|
|
|
$serviceWorkInfo = ServiceWork::find($service_work_id);
|
|
|
if((int)$serviceWorkInfo['work_pay_status'] !== 3){
|
|
|
throw new \Exception('该工单非待结算状态');
|