huangjiajun 2 месяцев назад
Родитель
Сommit
d98bea84b4
2 измененных файлов: 10 добавлений и 0 удалений
  1. +9
    -0
      app/db/db_store.go
  2. +1
    -0
      app/svc/svc_store_order.go

+ 9
- 0
app/db/db_store.go Просмотреть файл

@@ -24,6 +24,15 @@ func GetStore(eg *xorm.Engine, arg map[string]string) []map[string]string {
if arg["city"] != "" {
where += " and address like '%" + arg["city"] + "%'"
}
if arg["province_id"] != "" {
where += " and province_id = '" + arg["province_id"] + "'"
}
if arg["city_id"] != "" {
where += " and city_id = '" + arg["city_id"] + "'"
}
if arg["district_id"] != "" {
where += " and district_id = '" + arg["district_id"] + "'"
}
if arg["name"] != "" {
where += " and name like '%" + arg["name"] + "'"
}


+ 1
- 0
app/svc/svc_store_order.go Просмотреть файл

@@ -213,6 +213,7 @@ func StoreOrderDetail(c *gin.Context) {
"label": "自提",
"username": nickname,
"head_img": headImg,
"commission": data.Commission,
"state": utils.IntToStr(data.State),
"state_str": state[data.State],
"amount": data.Amount,


Загрузка…
Отмена
Сохранить