update
This commit is contained in:
parent
66eaf507fe
commit
cef31fd76c
@ -54,7 +54,7 @@
|
||||
public function add()
|
||||
{
|
||||
$params = (new MaterialPurchaseRequestValidate())->post()->goCheck('add');
|
||||
$result = MaterialPurchaseRequestLogic::add($params, $this->adminId);
|
||||
$result = MaterialPurchaseRequestLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -64,7 +64,7 @@
|
||||
public function edit()
|
||||
{
|
||||
$params = (new MaterialPurchaseRequestValidate())->post()->goCheck('edit');
|
||||
$result = MaterialPurchaseRequestLogic::edit($params, $this->adminId);
|
||||
$result = MaterialPurchaseRequestLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
|
@ -42,7 +42,7 @@
|
||||
* @author likeadmin
|
||||
* @date 2024/01/09 13:47
|
||||
*/
|
||||
public static function add(array $params, $admin_id): bool
|
||||
public static function add(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user