@@ -270,6 +270,10 @@ func SupplierBillList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
}
query["supplierId"] = userId
query["isSend"] = true
+ if _productName, ok := query["productName"]; ok {
+ delete(query, "productName")
+ query["productName"] = bson.M{"$regex": _productName.(string)}
+ }
collectName := ""
switch billType {