|
|
@@ -41,6 +41,7 @@ class FluxOrderFix extends Command
|
|
|
public function handle()
|
|
|
{
|
|
|
$this->fixEdisendflagAtWrong();
|
|
|
+ $this->youWuFixEdisendflagAtWrong();
|
|
|
}
|
|
|
|
|
|
public function fixEdisendflagAtWrong(){
|
|
|
@@ -55,5 +56,21 @@ class FluxOrderFix extends Command
|
|
|
->where('edisendtime','>',Carbon::now()->subDays(2))
|
|
|
->where('ediremarks2','<>','不支持的单据类型')
|
|
|
->update(['edisendflag'=>'N','manualflag'=>'N']);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public function youWuFixEdisendflagAtWrong(){
|
|
|
+ OracleDOCOrderHeader::where('yw_edisendflag','W')
|
|
|
+ ->where('customerid','YOUWU')
|
|
|
+ ->whereNull('EDI_RESENDTIME')
|
|
|
+ ->where('yw_edisendtime','>',Carbon::now()->subDays(2))
|
|
|
+ ->where('yw_edisendflag','W')
|
|
|
+ ->update(['yw_edisendflag'=>'N','manualflag'=>'N','EDI_RESENDTIME'=>Carbon::now()]);
|
|
|
+
|
|
|
+ OracleDOCOrderHeader::where('yw_edisendflag','W')
|
|
|
+ ->where('customerid','YOUWU')
|
|
|
+ ->where('EDI_RESENDTIME','>',Carbon::now()->subDays(2))
|
|
|
+ ->where('yw_edisendtime','>',Carbon::now()->subDays(2))
|
|
|
+ ->update(['yw_edisendflag'=>'N','manualflag'=>'N']);
|
|
|
}
|
|
|
}
|