|
@@ -3,6 +3,7 @@
|
|
|
namespace app\api\dao\xz;
|
|
namespace app\api\dao\xz;
|
|
|
use app\api\actions\ZskkCache;
|
|
use app\api\actions\ZskkCache;
|
|
|
use app\api\dao\ZskkDefaultDao;
|
|
use app\api\dao\ZskkDefaultDao;
|
|
|
|
|
+use app\api\model\exam\ExamModel;
|
|
|
use app\api\model\monitor\MonitorexamModel;
|
|
use app\api\model\monitor\MonitorexamModel;
|
|
|
use app\api\model\xz\XzModel;
|
|
use app\api\model\xz\XzModel;
|
|
|
|
|
|
|
@@ -17,11 +18,13 @@ class XzDao extends ZskkDefaultDao {
|
|
|
protected $flag = true;
|
|
protected $flag = true;
|
|
|
protected $logName = "XzDao";
|
|
protected $logName = "XzDao";
|
|
|
protected $xz = null;
|
|
protected $xz = null;
|
|
|
|
|
+ protected $exam = null;
|
|
|
protected $monitorexamModel = null;
|
|
protected $monitorexamModel = null;
|
|
|
- public function __construct(XzModel $xzModel,MonitorexamModel $monitorexamModel)
|
|
|
|
|
|
|
+ public function __construct(XzModel $xzModel,MonitorexamModel $monitorexamModel,ExamModel $examModel)
|
|
|
{
|
|
{
|
|
|
parent::__construct();
|
|
parent::__construct();
|
|
|
$this->xz = $xzModel;
|
|
$this->xz = $xzModel;
|
|
|
|
|
+ $this->exam = $examModel;
|
|
|
$this->monitorexamModel = $monitorexamModel;
|
|
$this->monitorexamModel = $monitorexamModel;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -133,6 +136,11 @@ class XzDao extends ZskkDefaultDao {
|
|
|
return $id;
|
|
return $id;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public function checkExam($where)
|
|
|
|
|
+ {
|
|
|
|
|
+ return $this->exam->where($where)->order('createdAt desc')->find();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function getWaterLog($examId,$insId)
|
|
public function getWaterLog($examId,$insId)
|
|
|
{
|
|
{
|
|
|
$id = $this->xz->getWaterLog($examId,$insId);
|
|
$id = $this->xz->getWaterLog($examId,$insId);
|