feat(inventory_store): 添加管理员ID字段
- 在编辑库存时,添加管理员ID字段 - 在逻辑层更新库存时,记录管理员ID
This commit is contained in:
parent
d718fd567d
commit
ea5687eabe
@ -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);
|
||||
|
@ -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']
|
||||
]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user