| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace app\admin\model\dao;
- use app\common\model\UserModel;
- use think\facade\Db;
- class WithdrawLog extends BaseDao
- {
- protected $model;
- public static $table = "db_withdraw_log";
- public function __construct()
- {
- $this->model = new UserModel();
- }
- public static function getWithdrawLogById($id)
- {
- return Db::table(self::$table)->where(['id' => $id])->find();
- }
- public static function updateServiceMoney($id, $serviceMoney)
- {
- return Db::table(self::$table)->where(['id' => $id])
- ->update([
- 'service_money' => $serviceMoney,
- 'update_at' => date('Y-m-d H:i:s')
- ]);
- }
- }
|