|
@@ -4,6 +4,7 @@ namespace app\api\dao\butt;
|
|
|
|
|
|
|
|
use app\api\actions\ZskkCache;
|
|
use app\api\actions\ZskkCache;
|
|
|
use app\api\dao\ZskkDefaultDao;
|
|
use app\api\dao\ZskkDefaultDao;
|
|
|
|
|
+use app\api\model\dmlog\DmlogModel;
|
|
|
use app\api\model\hr\HrModel;
|
|
use app\api\model\hr\HrModel;
|
|
|
use app\api\model\institution\InstitutionModel;
|
|
use app\api\model\institution\InstitutionModel;
|
|
|
use app\api\model\monitor\MonitorexamModel;
|
|
use app\api\model\monitor\MonitorexamModel;
|
|
@@ -24,13 +25,15 @@ class ButtDao extends ZskkDefaultDao {
|
|
|
protected $hrModel = null;
|
|
protected $hrModel = null;
|
|
|
protected $monitorreportModel = null;
|
|
protected $monitorreportModel = null;
|
|
|
protected $institutionModel = null;
|
|
protected $institutionModel = null;
|
|
|
- public function __construct(ReportModel $reportModel,HrModel $hrModel,MonitorreportModel $monitorreportModel,InstitutionModel $institutionModel)
|
|
|
|
|
|
|
+ protected $dmlog = null;
|
|
|
|
|
+ public function __construct(ReportModel $reportModel,HrModel $hrModel,MonitorreportModel $monitorreportModel,InstitutionModel $institutionModel,DmlogModel $dmlog)
|
|
|
{
|
|
{
|
|
|
parent::__construct();
|
|
parent::__construct();
|
|
|
$this->report = $reportModel;
|
|
$this->report = $reportModel;
|
|
|
$this->hrModel = $hrModel;
|
|
$this->hrModel = $hrModel;
|
|
|
$this->monitorreportModel = $monitorreportModel;
|
|
$this->monitorreportModel = $monitorreportModel;
|
|
|
$this->institutionModel = $institutionModel;
|
|
$this->institutionModel = $institutionModel;
|
|
|
|
|
+ $this->dmlog = $dmlog;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -368,6 +371,11 @@ class ButtDao extends ZskkDefaultDao {
|
|
|
return $this->report->where($where)->field($field)->find();
|
|
return $this->report->where($where)->field($field)->find();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public function insertDmLog($insert)
|
|
|
|
|
+ {
|
|
|
|
|
+ return $this->dmlog->insert($insert);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function insertReport($data)
|
|
public function insertReport($data)
|
|
|
{
|
|
{
|
|
|
return $this->report->insert($data);
|
|
return $this->report->insert($data);
|