|
@@ -8,8 +8,10 @@ import ( |
|
|
|
|
|
|
|
|
func GetOrderGoodsListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.OrderGoods, int64) { |
|
|
func GetOrderGoodsListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.OrderGoods, int64) { |
|
|
var order []model.OrderGoods |
|
|
var order []model.OrderGoods |
|
|
sess := eg.Where("state<4") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sess := eg.Where("state!=5 ") |
|
|
|
|
|
if param["sorting"] == "1" { |
|
|
|
|
|
sess.And("state!=4") |
|
|
|
|
|
} |
|
|
if param["oid"] != "" { |
|
|
if param["oid"] != "" { |
|
|
sess.And("oid = ?", param["oid"]) |
|
|
sess.And("oid = ?", param["oid"]) |
|
|
} |
|
|
} |
|
|