| 12345678910111213141516171819202122232425 |
- <?php
- namespace app\common\dao\profit;
- use app\common\dao\BaseDao;
- use app\common\model\profit\ZeroUserProfits;
- class ZeroUserProfitDao extends BaseDao
- {
- protected function getModel(): string
- {
- return ZeroUserProfits::class;
- }
- /**
- * @param $data
- * @return mixed
- * 插入数据并获取id
- */
- public function insertGetId($data)
- {
- return $this->getModel()::getDB()->insertGetId($data);
- }
- }
|