日期时间查询改进 增加 >= 和 <= 查询 Query类增加setFieldType方法 设置当前字段类型

This commit is contained in:
thinkphp
2016-07-13 16:50:34 +08:00
parent f76b261e26
commit a01304dd48
2 changed files with 44 additions and 25 deletions

View File

@@ -1287,6 +1287,18 @@ class Query
return $this;
}
/**
* 设置字段类型
* @access public
* @param array $fieldType 字段类型信息
* @return $this
*/
public function setFieldType($fieldType = [])
{
$this->options['field_type'] = $fieldType;
return $this;
}
/**
* 获取数据表信息
* @access public