修改
This commit is contained in:
parent
9f490bb725
commit
82fe04ae8a
@ -55,6 +55,10 @@ func OrderRecordsList(req *bundle.OrderRecordsRequest) (res *bundle.OrderRecords
|
||||
|
||||
query := app.ModuleClients.BundleDB.Model(&model.BundleOrderRecords{})
|
||||
|
||||
if req.CustomerID != "" {
|
||||
query = query.Where("customer_id = ?", req.CustomerID)
|
||||
}
|
||||
|
||||
if req.CustomerNum != "" {
|
||||
query = query.Where("customer_num like ?", "%"+req.CustomerNum+"%")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user