This commit is contained in:
xman 2025-06-17 15:34:28 +08:00
parent 6b4af27857
commit 4c7101ab80

View File

@ -3,6 +3,7 @@
namespace app\admin\controller\orders;
use app\admin\model\OrderDispatch;
use app\admin\model\OrderDispatchRecord;
use app\common\controller\Backend;
use think\Db;
use think\Exception;
@ -157,8 +158,8 @@ class Dispatchrecord extends Backend
$dispatch->record_count ++;
//将其它的状态改掉
Dispatchrecord::where('dispatch_id',$dispatch->id)->where('status',0)->update([
'status' => 1,
OrderDispatchRecord::where('dispatch_id',$dispatch->id)->where('status',0)->update([
'status' => 1
]);
//$params['admin_id'] = $this->auth->id;