作者 yangfu

提示修改

@@ -80,6 +80,7 @@ var errmessge ErrorMap = map[string]string{ @@ -80,6 +80,7 @@ var errmessge ErrorMap = map[string]string{
80 "10276": "最多选择1个角色", 80 "10276": "最多选择1个角色",
81 "10277": "最多一个小数", 81 "10277": "最多一个小数",
82 "10278": "公告标题大于30个字符", 82 "10278": "公告标题大于30个字符",
  83 + "10279": "该子分类名称已存在",
83 84
84 "10170": "请选择指定成员", 85 "10170": "请选择指定成员",
85 "10171": "请选择审批人类别", 86 "10171": "请选择审批人类别",
@@ -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 }