【解决查询列车尺寸BUG】

This commit is contained in:
weizhihong 2023-08-28 13:39:28 +08:00
parent 92d1410624
commit 767132b168
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ func ConvertFromTrainSizeDto(giSlice []*model.TrainSize) []*TrainSizeDto {
Id: gi.ID,
Name: gi.Name,
CarriageLength: gi.CarriageLength,
TotalLength: gi.CarriageLength,
TotalLength: gi.TotalLength,
Description: gi.Description,
})
}

View File

@ -178,7 +178,7 @@ func QueryProjectTrainSize(id int32) []*model.TrainSize {
sids = append(sids, sid.Sid)
}
ts := dbquery.TrainSize
trainSizes, _ := ts.Select(ts.ID, ts.Name).Where(ts.ID.In(sids...)).Find()
trainSizes, _ := ts.Select(ts.ID, ts.Name, ts.TotalLength, ts.CarriageLength, ts.Description).Where(ts.ID.In(sids...)).Find()
return trainSizes
}
return []*model.TrainSize{}