|
|
@@ -60,6 +60,10 @@ func GetOrderList(eg *xorm.Engine, param map[string]string) (*[]model.Order, int |
|
|
|
if param["end_at"] != "" { |
|
|
|
sess.And("create_at <= ?", param["end_at"]) |
|
|
|
} |
|
|
|
if param["date"] != "" { |
|
|
|
param["date"] = strings.ReplaceAll(param["date"], "-", "") |
|
|
|
sess.And("date = ?", param["date"]) |
|
|
|
} |
|
|
|
if param["enterprise_name"] != "" { |
|
|
|
var enterprise []model.Enterprise |
|
|
|
eg.Where("name like ?", "%"+param["enterprise_name"]+"%").Find(&enterprise) |
|
|
|