This commit is contained in:
2025-02-11 18:03:30 +08:00
parent 18cbf359b7
commit 97037adbbb
6 changed files with 169 additions and 53 deletions

View File

@ -107,7 +107,7 @@ func GetLastStop(db *gorm.DB, pid int) (DbModels.LinePreOrder, error) {
// mainId 主单Id
func GetOrderExts(db *gorm.DB, mainId int) ([]models.LinePreOrderExt, error) {
result := make([]models.LinePreOrderExt, 0)
if err := db.Model(&result).Where("main_id =?", mainId).Find(&result).Error; err != nil {
if err := db.Model(&result).Where("main_order_id =?", mainId).Find(&result).Error; err != nil {
return result, err
}