MoneyLog.php 626 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace app\admin\model\dao;
  3. use app\common\model\UserModel;
  4. use think\facade\Db;
  5. class MoneyLog extends BaseDao
  6. {
  7. public static $table = "db_money_log";
  8. public function __construct()
  9. {
  10. }
  11. public static function AddMoneyLog(array $moneyLog)
  12. {
  13. Db::table(self::$table)->insert($moneyLog);
  14. }
  15. public static function getMoneyLogByFromId($id)
  16. {
  17. return Db::table(self::$table)
  18. ->where([
  19. 'type' => 14,
  20. 'state' => 1,
  21. 'withdraw_log_id' => $id,
  22. ])
  23. ->find();
  24. }
  25. }