【草稿另存为增加类型】

This commit is contained in:
weizhihong 2023-09-19 10:23:25 +08:00
parent 4d80029bdb
commit 8ee2bb14b8
2 changed files with 2 additions and 1 deletions

View File

@ -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()})

View File

@ -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
}