from sql to model

use gii,with el's sql,not hxrs