/**
* Get Opport List By Query [Rows]
 */
Get Opport List By Query [Rows]
/ ** * Get Opport List By Query [ Rows ] * /
func (this *BizModel) GetOpportListByRows(list []*Biz, rows *sql.Rows) []*Biz {
	for rows.Next() {
		biz := &Biz{
			Tags:    make([]*Tag, 0),
			Account: &Account{},
		}
		biz.Customer = &Customer{}
		err := rows.Scan(&biz.BizId, &biz.AccountId, &biz.Customer.CustomerId, &biz.Title, &biz.Content,
			&biz.Amount, &biz.Status, &biz.Timex, &biz.EstimateTime, &biz.RealTime, &biz.Customer.EntName, &biz.Account.Name)
		if err != nil {
			beego.Error(err)
			return list
		}
		biz, err = this.GetBizTags(biz)
		if err != nil {
			beego.Error(err)
			return list
		}
		list = append(list, biz)
	}
	rows.Close()
	return list
}
func ( this * BizModel ) GetOpportListByRows ( list [ ] * Biz , rows * sql . Rows ) [ ] * Biz { for rows . Next ( ) { biz := & Biz { Tags : make ( [ ] * Tag , 0 ) , Account : & Account { } , } biz . Customer = & Customer { } err := rows . Scan ( & biz . BizId , & biz . AccountId , & biz . Customer . CustomerId , & biz . Title , & biz . Content , & biz . Amount , & biz . Status , & biz . Timex , & biz . EstimateTime , & biz . RealTime , & biz . Customer . EntName , & biz . Account . Name ) if err != nil { beego . Error ( err ) return list } biz , err = this . GetBizTags ( biz ) if err != nil { beego . Error ( err ) return list } list = append ( list , biz ) } rows . Close ( ) return list }
Get Opport List By Query [Rows]
Get Opport List By Query [ Rows ]