|
@@ -15,6 +15,7 @@ use App\WMSReflectReceive;
|
|
|
use Carbon\Carbon;
|
|
use Carbon\Carbon;
|
|
|
use Illuminate\Contracts\Foundation\Application;
|
|
use Illuminate\Contracts\Foundation\Application;
|
|
|
use Illuminate\Contracts\View\Factory;
|
|
use Illuminate\Contracts\View\Factory;
|
|
|
|
|
+use Illuminate\Database\Eloquent\Builder;
|
|
|
use Illuminate\Http\RedirectResponse;
|
|
use Illuminate\Http\RedirectResponse;
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Request;
|
|
|
use Illuminate\Http\Response;
|
|
use Illuminate\Http\Response;
|
|
@@ -182,8 +183,11 @@ class StoreController extends Controller
|
|
|
public function quickStorage($asnno,$quality,$depository_code,$isVerification = true)
|
|
public function quickStorage($asnno,$quality,$depository_code,$isVerification = true)
|
|
|
{
|
|
{
|
|
|
$task = Store::query()->where("asn_code",$asnno)
|
|
$task = Store::query()->where("asn_code",$asnno)
|
|
|
- ->where("stored_method","快速入库")
|
|
|
|
|
- ->orWhere('is_fast_stored','快速入库')
|
|
|
|
|
|
|
+ ->where(function ($query){
|
|
|
|
|
+ /** @var Builder $query */
|
|
|
|
|
+ $query->where("stored_method","快速入库")
|
|
|
|
|
+ ->orWhere('is_fast_stored','快速入库');
|
|
|
|
|
+ })
|
|
|
->where("status","已入库")->first();
|
|
->where("status","已入库")->first();
|
|
|
if ($task)return ['success'=>false, 'data'=>"已被快速入库"];
|
|
if ($task)return ['success'=>false, 'data'=>"已被快速入库"];
|
|
|
$db = DB::connection('oracle');
|
|
$db = DB::connection('oracle');
|