ZeroUserProfitDao.php 455 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\common\dao\profit;
  3. use app\common\dao\BaseDao;
  4. use app\common\model\profit\ZeroUserProfits;
  5. class ZeroUserProfitDao extends BaseDao
  6. {
  7. protected function getModel(): string
  8. {
  9. return ZeroUserProfits::class;
  10. }
  11. /**
  12. * @param $data
  13. * @return mixed
  14. * 插入数据并获取id
  15. */
  16. public function insertGetId($data)
  17. {
  18. return $this->getModel()::getDB()->insertGetId($data);
  19. }
  20. }