src/Biz/Testpaper/Service/Impl/TestpaperServiceImpl.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Biz\Testpaper\Service\Impl;
use Biz\BaseService;
use Biz\Activity\Type\Testpaper;
use AppBundle\Common\ArrayToolkit;
use Biz\Common\CommonException;
use Biz\Testpaper\Dao\TestpaperDao;
use Biz\Course\Service\CourseService;
use Biz\File\Service\UploadFileService;
use Biz\Testpaper\Dao\TestpaperItemDao;
use Biz\Testpaper\TestpaperException;
use Biz\User\UserException;
use Codeages\Biz\Framework\Event\Event;
use Biz\Question\Service\QuestionService;
use Biz\Testpaper\Dao\TestpaperResultDao;
use Biz\Testpaper\Service\TestpaperService;
use Biz\Testpaper\Dao\TestpaperItemResultDao;
use Biz\Testpaper\Builder\TestpaperBuilderInterface;
class TestpaperServiceImpl extends BaseService implements TestpaperService
{
public function getTestpaper($id)
{
return $this->getTestpaperDao()->get($id);
}
public function getTestpaperByIdAndType($id, $type)
{
return $this->getTestpaperDao()->getByIdAndType($id, $type);
}
public function findTestpapersByIdsAndType($ids, $type)
{
return $this->getTestpaperDao()->findTestpapersByIdsAndType($ids, $type);
}
public function createTestpaper($fields)
{
$user = $this->getCurrentUser();
$fields['createdUserId'] = $user['id'];
$fields['updatedUserId'] = $user['id'];
$testpaper = $this->getTestpaperDao()->create($fields);
return $testpaper;
}
public function batchCreateTestpaper($testpapers)
{
if (empty($testpapers)) {
return;
}
return $this->getTestpaperDao()->batchCreate($testpapers);
}
public function updateTestpaper($id, $fields)
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。