| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace app\common\dao\user;
- use app\common\dao\BaseDao;
- use app\common\model\user\UserSignVr;
- use app\entity\CommonEntity;
- use app\entity\data\user\UserSignVrEntity;
- class UserSignVrDao extends BaseDao
- {
- protected function getModel(): string
- {
- return UserSignVr::class;
- }
- /**
- * @param array $idList
- * @return CommonEntity[]
- */
- public function getStoreSignVrEntityListByIdList(array $idList): array
- {
- $entityList = [];
- try {
- /** @var UserSignVr $model */
- $model = $this->getModel();
- $dataRes = $model::getDB()
- ->whereIn('id', $idList)
- ->select()
- ->toArray();
- if (!empty($dataRes)) {
- $entityList = array_map(function ($data) {
- return UserSignVrEntity::newInstance($data);
- }, $dataRes);
- }
- } catch (\Exception $e) {
- }
- return $entityList;
- }
- }
|