|
@@ -179,6 +179,10 @@ func GetProduceBills(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
start, end := getTimeRange(startTime, endTime)
|
|
|
query["createTime"] = bson.M{"$gte": start, "$lte": end}
|
|
|
}
|
|
|
+ if productName, ok := query["productName"]; ok {
|
|
|
+ delete(query, "productName")
|
|
|
+ query["productName"] = bson.M{"$regex": productName.(string)}
|
|
|
+ }
|
|
|
|
|
|
option := &repo.PageSearchOptions{
|
|
|
CollectName: repo.CollectionBillProduce,
|