余额变动修改

This commit is contained in:
2026-04-22 16:38:50 +08:00
parent ad74accfcc
commit 95684c784e
12 changed files with 306 additions and 32 deletions

View File

@@ -2,6 +2,7 @@
namespace app\admin\model;
use think\model\relation\HasMany;
use Throwable;
use think\model;
use think\Exception;
@@ -77,4 +78,14 @@ class UserMoneyLog extends model
{
return $this->belongsTo(User::class, 'user_id');
}
public function admin(): BelongsTo
{
return $this->belongsTo(Admin::class, 'created_by');
}
public function scoreLog(): hasMany
{
return $this->hasMany(UserScoreLog::class, 'money_log_id');
}
}