Files
fdesk/app/common/logic/FinReceiptLogic.php
T

21 lines
383 B
PHP
Raw Normal View History

2025-11-03 18:16:51 +08:00
<?php
namespace app\common\logic;
use app\common\traits\crud\CrudLogicTrait;
use app\common\model\FinReceipt;
class FinReceiptLogic
{
use CrudLogicTrait;
/**
* 指定当前要操作的模型
*/
protected string $modelClass = FinReceipt::class;
2025-11-04 10:36:52 +08:00
public function credit($id, $data)
2025-11-03 18:16:51 +08:00
{
2025-11-04 10:36:52 +08:00
return FinReceipt::where('id', $id)->update($data);
2025-11-03 18:16:51 +08:00
}
}