...
|
...
|
@@ -72,7 +72,7 @@ func TemplateAdd(uid, companyId int64, request *protocol.TemplateAddRequest) (rs |
|
|
AuditTemplateId: int(templateId),
|
|
|
Section: input.SectionType,
|
|
|
SortNum: input.Sort,
|
|
|
Label: input.Lable,
|
|
|
Label: input.Label,
|
|
|
InputType: input.InputType,
|
|
|
Required: int8(input.Required),
|
|
|
CreateAt: time.Now(),
|
...
|
...
|
@@ -256,7 +256,7 @@ func insertOrUpdateInput(orm orm2.Ormer, companyId int64, templateId int, input |
|
|
AuditTemplateId: int(templateId),
|
|
|
Section: input.SectionType,
|
|
|
SortNum: input.Sort,
|
|
|
Label: input.Lable,
|
|
|
Label: input.Label,
|
|
|
InputType: input.InputType,
|
|
|
Required: int8(input.Required),
|
|
|
CreateAt: time.Now(),
|
...
|
...
|
@@ -275,7 +275,7 @@ func insertOrUpdateInput(orm orm2.Ormer, companyId int64, templateId int, input |
|
|
}
|
|
|
{
|
|
|
updateMap := map[string]interface{}{
|
|
|
"Label": input.Lable,
|
|
|
"Label": input.Label,
|
|
|
"InputType": input.InputType,
|
|
|
"Required": int8(input.Required),
|
|
|
}
|
...
|
...
|
@@ -448,7 +448,7 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs |
|
|
rsp.Template.InputList = append(rsp.Template.InputList, &protocol.InputElement{
|
|
|
Id: input.Id,
|
|
|
Sort: input.SortNum,
|
|
|
Lable: input.InputType,
|
|
|
Label: input.InputType,
|
|
|
Required: int(input.Required),
|
|
|
SectionType: input.Section,
|
|
|
})
|
...
|
...
|
|