重构 orm 代码生成逻辑,实现 bill 接口,优化请求字段检查与 list total 查询逻辑

This commit is contained in:
2025-04-11 17:36:34 +08:00
parent c1b4f8d605
commit 636bdcdb87
36 changed files with 794 additions and 193 deletions

View File

@@ -311,7 +311,7 @@ func (s *channelService) CreateChannel(
toUpdate := models.ResourcePss{
Used: resource.Used + int32(count),
DailyLast: now,
DailyLast: common.LocalDateTime(now),
}
last := resource.DailyLast
if now.Year() != last.Year() || now.Month() != last.Month() || now.Day() != last.Day() {