2 changed files with 68 additions and 0 deletions
@ -0,0 +1,34 @@ |
|||||
|
<?php |
||||
|
declare (strict_types = 1); |
||||
|
|
||||
|
namespace app\model; |
||||
|
|
||||
|
use think\Model; |
||||
|
|
||||
|
/** |
||||
|
* @mixin \think\Model |
||||
|
*/ |
||||
|
class AdminDownScoresRecords extends Model |
||||
|
{ |
||||
|
/** |
||||
|
* 创建下分记录 |
||||
|
* @param $aid |
||||
|
* @param $admin_id |
||||
|
* @param $withdrawal_amount |
||||
|
* @param $withdrawal_balance |
||||
|
* @return mixed |
||||
|
*/ |
||||
|
public static function createRecords($aid,$admin_id,$withdrawal_amount,$withdrawal_balance) |
||||
|
{ |
||||
|
$Records = new AdminDownScoresRecords(); |
||||
|
|
||||
|
$Records->aid = $aid; |
||||
|
$Records->admin_id = $admin_id; |
||||
|
$Records->withdrawal_amount = $withdrawal_amount; |
||||
|
$Records->withdrawal_balance = $withdrawal_balance; |
||||
|
$Records->create_time = date("Y-m-d H:i:s",time()); |
||||
|
$Records->save(); |
||||
|
|
||||
|
return $Records->id; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,34 @@ |
|||||
|
<?php |
||||
|
declare (strict_types = 1); |
||||
|
|
||||
|
namespace app\model; |
||||
|
|
||||
|
use think\Model; |
||||
|
|
||||
|
/** |
||||
|
* @mixin \think\Model |
||||
|
*/ |
||||
|
class AdminUpScoresRecords extends Model |
||||
|
{ |
||||
|
/** |
||||
|
* 创建上分记录 |
||||
|
* @param $aid |
||||
|
* @param $admin_id |
||||
|
* @param $balance |
||||
|
* @param $residue_amount |
||||
|
* @return mixed |
||||
|
*/ |
||||
|
public static function createRecords($aid,$admin_id,$balance,$residue_amount) |
||||
|
{ |
||||
|
$Records = new AgentUpScoresRecords(); |
||||
|
|
||||
|
$Records->aid = $aid; |
||||
|
$Records->admin_id = $admin_id; |
||||
|
$Records->balance = $balance; |
||||
|
$Records->residue_amount = $residue_amount; |
||||
|
$Records->create_time = date("Y-m-d H:i:s",time()); |
||||
|
$Records->save(); |
||||
|
|
||||
|
return $Records->id; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue