game2006api/webapp/models/DailySelection.php
aozhiwei 05bcd74c39 1
2023-08-02 22:01:45 +08:00

42 lines
876 B
PHP

<?php
namespace models;
use mt;
use phpcommon\SqlHelper;
class DailySelection extends BaseModel {
public static function get()
{
$row = SqlHelper::ormSelectOne(
myself()->_getSelfMysql(),
't_daily_selection',
array(
'account_id' => myself()->_getAccountId(),
)
);
return $row;
}
public static function add()
{
SqlHelper::upsert(
myself()->_getSelfMysql(),
't_daily_selection',
array(
'account_id' => myself()->_getAccountId(),
),
array(
),
array(
'account_id' => myself()->_getAccountId(),
'createtime' => myself()->_getNowTime(),
'modifytime' => myself()->_getNowTime(),
)
);
}
}