【解决查询列车尺寸BUG】
This commit is contained in:
parent
92d1410624
commit
767132b168
@ -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,
|
||||
})
|
||||
}
|
||||
|
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user