feat: 添加编辑仓储商品单的API功能
This commit is contained in:
parent
80aedd5c13
commit
f0f05332de
@ -147,6 +147,20 @@ class WarehouseOrderController extends BaseAdminController
|
|||||||
return $this->fail(WarehouseOrderLogic::getError());
|
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 删除仓储商品单
|
* @notes 删除仓储商品单
|
||||||
|
@ -159,6 +159,21 @@ class WarehouseOrderLogic extends BaseLogic
|
|||||||
return true;
|
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 获取仓储商品单详情
|
* @notes 获取仓储商品单详情
|
||||||
|
Loading…
x
Reference in New Issue
Block a user