|
@@ -35,7 +35,7 @@ func TemplateAdd(uid, companyId int64, request *protocol.TemplateAddRequest) (rs |
|
@@ -35,7 +35,7 @@ func TemplateAdd(uid, companyId int64, request *protocol.TemplateAddRequest) (rs |
35
|
return
|
35
|
return
|
36
|
}
|
36
|
}
|
37
|
if _, err = models.GetAuditTemplateByName(companyId, request.Template.Name); err == nil {
|
37
|
if _, err = models.GetAuditTemplateByName(companyId, request.Template.Name); err == nil {
|
38
|
- err = protocol.NewErrWithMessage("10271")
|
38
|
+ err = protocol.NewErrWithMessage("10279")
|
39
|
return
|
39
|
return
|
40
|
}
|
40
|
}
|
41
|
orm := orm2.NewOrm()
|
41
|
orm := orm2.NewOrm()
|
|
@@ -164,7 +164,7 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques |
|
@@ -164,7 +164,7 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques |
164
|
}
|
164
|
}
|
165
|
if template.Name != request.Template.Name {
|
165
|
if template.Name != request.Template.Name {
|
166
|
if _, err = models.GetAuditTemplateByName(companyId, request.Template.Name); err == nil {
|
166
|
if _, err = models.GetAuditTemplateByName(companyId, request.Template.Name); err == nil {
|
167
|
- err = protocol.NewErrWithMessage("10271")
|
167
|
+ err = protocol.NewErrWithMessage("10279")
|
168
|
return
|
168
|
return
|
169
|
}
|
169
|
}
|
170
|
}
|
170
|
}
|