feat(inventory_store): 添加管理员ID字段

- 在编辑库存时,添加管理员ID字段
- 在逻辑层更新库存时,记录管理员ID
This commit is contained in:
mkm 2025-02-14 16:24:23 +08:00
parent d718fd567d
commit ea5687eabe
2 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class InventoryStoreController extends BaseAdminController
public function edit()
{
$params = (new InventoryStoreValidate())->post()->goCheck('edit');
$params['admin_id']=$this->adminId;
$result = InventoryStoreLogic::edit($params);
if (true === $result) {
return $this->success('编辑成功', [], 1, 1);

View File

@ -53,6 +53,7 @@ class InventoryStoreLogic extends BaseLogic
Db::startTrans();
try {
InventoryStore::where('id', $params['id'])->update([
'admin_id'=>$params['admin_id']??0,
'enter_nums'=>$params['nums']
]);