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