WithdrawLog.php 707 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace app\admin\model\dao;
  3. use app\common\model\UserModel;
  4. use think\facade\Db;
  5. class WithdrawLog extends BaseDao
  6. {
  7. protected $model;
  8. public static $table = "db_withdraw_log";
  9. public function __construct()
  10. {
  11. $this->model = new UserModel();
  12. }
  13. public static function getWithdrawLogById($id)
  14. {
  15. return Db::table(self::$table)->where(['id' => $id])->find();
  16. }
  17. public static function updateServiceMoney($id, $serviceMoney)
  18. {
  19. return Db::table(self::$table)->where(['id' => $id])
  20. ->update([
  21. 'service_money' => $serviceMoney,
  22. 'update_at' => date('Y-m-d H:i:s')
  23. ]);
  24. }
  25. }