$cardNoBegin = 1; $cardNoEnd = 10000; $where['number'] = array('between' , [$cardNoBegin , $cardNoEnd]); $list = VipCardModel::where($where)->field('id,number,issue_uid,rank')->select();foreach($list as &$value){ // 只想到foreach来处理,但是这样很奇怪,觉得这样处理不对。 $value['name'] = UserModel::where(array('id' => $value['issue_uid']))->value('name'); }
holdtom
相关分类