diff --git a/app/db/db_order_list.go b/app/db/db_order_list.go index 99b691c..7f20b44 100644 --- a/app/db/db_order_list.go +++ b/app/db/db_order_list.go @@ -68,8 +68,8 @@ func GetOrderList(eg *xorm.Engine, param map[string]string) (*[]model.Order, int sess.And("date = ?", param["date"]) } if param["make_date"] != "" { - param["date"] = strings.ReplaceAll(param["date"], "-", "") - sess.And("make_date = ?", param["date"]) + param["make_date"] = strings.ReplaceAll(param["make_date"], "-", "") + sess.And("make_date = ?", param["make_date"]) } if param["enterprise_name"] != "" { var enterprise []model.Enterprise