feat: 添加编辑仓储商品单的API功能

This commit is contained in:
mkm 2024-08-24 15:54:38 +08:00
parent 80aedd5c13
commit f0f05332de
2 changed files with 29 additions and 0 deletions

View File

@ -147,6 +147,20 @@ class WarehouseOrderController extends BaseAdminController
return $this->fail(WarehouseOrderLogic::getError());
}
/**
* @notes 编辑仓储商品单
* @return \think\response\Json
* @author admin
* @date 2024/08/20 10:50
*/
public function update_edit(){
$params = $this->request->post();
$result = WarehouseOrderLogic::update_edit($params);
if (true === $result) {
return $this->success('编辑成功', [], 1, 1);
}
return $this->fail('编辑失败');
}
/**
* @notes 删除仓储商品单

View File

@ -159,6 +159,21 @@ class WarehouseOrderLogic extends BaseLogic
return true;
}
/**
* @notes 编辑仓储商品单
* @param $data
* @return bool
* @author admin
* @date 2024/08/20 10:50
*/
public static function update_edit($data){
$res=WarehouseOrder::update($data);
if($res){
return true;
}else{
return false;
}
}
/**
* @notes 获取仓储商品单详情