@@ -107,7 +107,7 @@ class DictModel extends ZskkDefaultModel {
{
$data = ConstantModel::where('parent_id','exam_class')
->cache('exam_class',43200)
- ->field('constant_value AS name')
+ ->field('CONSTANT_VALUE AS name')
->select();
return $data;
}
@@ -92,7 +92,7 @@ class TemplateModel extends ZskkDefaultModel {
public function getTemplate($id)
- $info = $this->where('id',$id)->field('title AS label,impression,description,exam_class_id,parent_id')->find();
+ $info = $this->where('id',$id)->field('*,title AS label')->find();
return $info;