【草稿另存为增加类型】
This commit is contained in:
parent
4d80029bdb
commit
8ee2bb14b8
@ -63,6 +63,7 @@ func SaveAsDrafting(createId int32, oldId int32, dd *dto.DraftingDto) (*model.Dr
|
||||
CreatedAt: time.Now(),
|
||||
UpdateAt: time.Now(),
|
||||
Category: oldD.Category,
|
||||
Type: oldD.Type,
|
||||
}
|
||||
if err = dbquery.Drafting.Save(&newD); err != nil {
|
||||
panic(dto.ErrorDto{Code: dto.QueryDBError, Message: err.Error()})
|
||||
|
@ -138,7 +138,7 @@ func QueryProjectPublishedGi(id int32) []*model.PublishedGi {
|
||||
mids[i] = m.Mid
|
||||
}
|
||||
dp := dbquery.PublishedGi
|
||||
publishedGis, _ := dp.Select(dp.ID, dp.Name, dp.Category, dp.Type).Where(dp.ID.In(mids...), dp.Status.Eq(1)).Find()
|
||||
publishedGis, _ := dp.Select(dp.ID, dp.Name, dp.Category, dp.Type).Where(dp.ID.In(mids...), dp.Status.Eq(1)).Order(dp.Name).Find()
|
||||
return publishedGis
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user