|
@@ -10,11 +10,11 @@ func GetOrderGoodsDoingList(eg *xorm.Engine, param map[string]string) (*[]model. |
|
|
var order []model.OrderGoodsDoingFlow |
|
|
var order []model.OrderGoodsDoingFlow |
|
|
sess := eg.Where("1=1") |
|
|
sess := eg.Where("1=1") |
|
|
if param["admin_name"] != "" { |
|
|
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} |
|
|
ids := []int{-1} |
|
|
for _, v := range data { |
|
|
for _, v := range data { |
|
|
ids = append(ids, v.AdmId) |
|
|
|
|
|
|
|
|
ids = append(ids, v.Id) |
|
|
} |
|
|
} |
|
|
sess.In("admin_id", ids) |
|
|
sess.In("admin_id", ids) |
|
|
} |
|
|
} |
|
|