新增测点配置

This commit is contained in:
2024-09-03 15:52:38 +08:00
parent bfb284c4cc
commit 3b53e9f9b7
37 changed files with 429 additions and 66 deletions

View File

@@ -6,7 +6,7 @@ import (
"gorm.io/gorm"
)
func (r *PeakValley) GetTimeBlockIdsByTimeBlock(tx *gorm.DB, startTime, endTime uint) (ids []uint, err error) {
func (r *PeakValley) GetTimeBlockIdsByTimeBlock(tx *gorm.DB, startTime, endTime uint) (ids []int, err error) {
err = tx.Model(&peak_valley_model.PeakValleyTimeBlock{}).
Where("start_time < ? AND end_time > ?", endTime, startTime).
Pluck("block_index", &ids).Error