| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace app\admin\model\dao;
- use app\common\model\UserModel;
- use think\facade\Db;
- class MoneyLog extends BaseDao
- {
- public static $table = "db_money_log";
- public function __construct()
- {
- }
- public static function AddMoneyLog(array $moneyLog)
- {
- Db::table(self::$table)->insert($moneyLog);
- }
- public static function getMoneyLogByFromId($id)
- {
- return Db::table(self::$table)
- ->where([
- 'type' => 12,
- 'state' => 1,
- 'withdraw_log_id' => $id,
- ])
- ->find();
- }
- }
|