tp3.2.3 增减某一字段的值
setInc('score',3); // 用户的积分加3
setDec('score'); // 用户的积分减1
2.where组合查询
https://www.kancloud.cn/manual/thinkphp/1771
if($name !=''){
$where = [];
$where['title'] = ['like','%' . $name . '%'];
$where['company_title'] = ['like','%' . $name . '%'];
$where['_logic'] = 'or';
$map['_complex'] = $where;
}