CalciumIon 1 năm trước cách đây
mục cha
commit
9e45dbe964
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      model/log.go

+ 2 - 2
model/log.go

@@ -193,8 +193,8 @@ func SumUsedQuota(logType int, startTimestamp int64, endTimestamp int64, modelNa
 		tx = tx.Where("created_at <= ?", endTimestamp)
 		tx = tx.Where("created_at <= ?", endTimestamp)
 	}
 	}
 	if modelName != "" {
 	if modelName != "" {
-		tx = tx.Where("model_name = ?", modelName)
-		rpmTpmQuery = rpmTpmQuery.Where("model_name = ?", modelName)
+		tx = tx.Where("model_name like ?", modelName)
+		rpmTpmQuery = rpmTpmQuery.Where("model_name like ?", modelName)
 	}
 	}
 	if channel != 0 {
 	if channel != 0 {
 		tx = tx.Where("channel_id = ?", channel)
 		tx = tx.Where("channel_id = ?", channel)