36 lines
705 B
PHP
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;
|
|
}
|
|
|
|
}
|