|
|
@@ -149,34 +149,19 @@ class TestController extends Controller
|
|
|
}
|
|
|
public function test()
|
|
|
{
|
|
|
- $a = 1;
|
|
|
- $b = 1;
|
|
|
- dd(!!$a|!!$b);
|
|
|
+ DB::connection("mysql_haiRobotics")->table("ks_bin")->where("ks_bin_code","IDE0000563")->update([
|
|
|
+ "ks_bin_space_code" => null,"ks_bin_space_id"=>null,"orig_ks_bin_space_code"=>null,"orig_ks_bin_space_id"=>null,
|
|
|
+ "status"=>4,
|
|
|
+ ]);
|
|
|
}
|
|
|
public function orderCreateBill()
|
|
|
{
|
|
|
+
|
|
|
$order = Order::query()->find(\request("id"));
|
|
|
$ser = new OrderService();
|
|
|
$ser->createInstantBill($order);
|
|
|
dd("order create bill success");
|
|
|
}
|
|
|
- function mp(){
|
|
|
- $stationTaskCommodities=StationTaskCommodity::query()->where('id',19942)->get();
|
|
|
- StationTaskCommodity::query()
|
|
|
- ->whereIn('id',data_get($stationTaskCommodities,'*.id')??[])
|
|
|
- ->update(['status'=>'完成']);
|
|
|
- $stationTaskMaterialBoxes=StationTaskMaterialBox::query()
|
|
|
- ->whereIn('id', data_get($stationTaskCommodities, '*.station_task_material_box_id') ?? [])
|
|
|
- ->get('material_box_id');
|
|
|
- $storages= \App\Storage::query()->whereIn('commodity_id',data_get($stationTaskCommodities,'*.commodity_id')??[])
|
|
|
- ->whereIn('material_box_id',data_get($stationTaskMaterialBoxes,'*.material_box_id')??[])
|
|
|
- ->get();
|
|
|
- foreach($storages as $storage){
|
|
|
- $amountReducing=$stationTaskCommodities->where('material_box_id',$storage['material_box_id'])->first()['amount']??0;
|
|
|
- $storage['amount']-=$amountReducing;
|
|
|
- $storage->update();
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
public function supplementMarchOwnerReport()
|
|
|
{
|