新增测点配置
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user