game2006api/webapp/models/Transaction.php
aozhiwei 0929ee9a4d 1
2022-10-31 21:16:29 +08:00

36 lines
705 B
PHP

<?php
namespace models;
use mt;
use phpcommon\SqlHelper;
class Transaction extends BaseModel {
public static function all()
{
$rows = SqlHelper::ormSelect(
myself()->_getSelfMysql(),
't_transaction',
array(
'account_id' => myself()->_getAccountId()
)
);
return rows;
}
public static function find($transId)
{
$row = SqlHelper::ormSelectOne(
myself()->_getMarketMysql(),
't_transaction',
array(
'account_id' => myself()->_getAccountId(),
'trans_id' => $transId,
)
);
return $row;
}
}