Pārlūkot izejas kodu

1后台 端

master
huangjiajun pirms 6 mēnešiem
vecāks
revīzija
d9ea27252c
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      app/db/db_order_goods_doing.go

+ 3
- 3
app/db/db_order_goods_doing.go Parādīt failu

@@ -10,11 +10,11 @@ func GetOrderGoodsDoingList(eg *xorm.Engine, param map[string]string) (*[]model.
var order []model.OrderGoodsDoingFlow
sess := eg.Where("1=1")
if param["admin_name"] != "" {
var data []model.Admin
eg.Where("memo like ?", "%"+param["admin_name"]+"%").Find(&data)
var data []model.Staff
eg.Where("name like ?", "%"+param["admin_name"]+"%").Find(&data)
ids := []int{-1}
for _, v := range data {
ids = append(ids, v.AdmId)
ids = append(ids, v.Id)
}
sess.In("admin_id", ids)
}


Notiek ielāde…
Atcelt
Saglabāt