/**
* Get Employee List By Query [Rows]
 */
Get Employee List By Query [Rows]
/ ** * Get Employee List By Query [ Rows ] * /
func (this *AccountModel) GetAccountListByRows(list []*Account, rows *sql.Rows) []*Account {
	for rows.Next() {
		e := &Account{}
		err := rows.Scan(&e.AccountId, &e.Gender,
			&e.Mobile, &e.Name, &e.Timex, &e.AgentId)
		if err != nil {
			beego.Error(err)
			return list
		}
		list = append(list, e)
	}
	rows.Close()
	return list
}
func ( this * AccountModel ) GetAccountListByRows ( list [ ] * Account , rows * sql . Rows ) [ ] * Account { for rows . Next ( ) { e := & Account { } err := rows . Scan ( & e . AccountId , & e . Gender , & e . Mobile , & e . Name , & e . Timex , & e . AgentId ) if err != nil { beego . Error ( err ) return list } list = append ( list , e ) } rows . Close ( ) return list }
Get Employee List By Query [Rows]
Get Employee List By Query [ Rows ]