//db.DB.Get(&order_item, "select "+field+" from lie_order_items where rec_id = ? and goods_id != ? and goods_price > ? and status = ?", rand_num, 0, 0.1, 1)
db.DB.Get(&order_item,"select "+field+" from lie_order_items where rec_id = ? and goods_id != ? and goods_price > ? and status = ?",rand_num,0,0.1,1)
iforder_item.RecId==0{
returnGetOneOrderItem()
}
db.DB.Get(&order_item,"select "+field+" from lie_order_items as a join (select round( rand() * (select max(rec_id) from lie_order_items)) as brec_id) as b "+
"on a.rec_id > b.brec_id and a.goods_price > 0.1 LIMIT 1")