This commit is contained in:
PandaX
2023-10-18 09:12:49 +08:00
parent 3cd085fb9e
commit a5d7b504cc
4 changed files with 6 additions and 32 deletions

View File

@@ -56,7 +56,6 @@ func (p *ProductTemplateApi) InsertProductTemplate(rc *restfulx.ReqCtx) {
var data entity.ProductTemplate
restfulx.BindJsonAndValid(rc, &data)
data.Id = global_model.GenerateID()
data.OrgId = rc.LoginAccount.OrganizationId
if data.Classify == entity.ATTRIBUTES_TSL || data.Classify == entity.TELEMETRY_TSL {
// 向超级表及子表中添加字段
len := 0