Merge branch 'dev' of http://gitlab.fjmaimaimai.com/mmm-go/oppmg into dev
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -493,7 +493,7 @@ func TemplateDelete(uid, companyId int64, request *protocol.TemplateDeleteReques | @@ -493,7 +493,7 @@ func TemplateDelete(uid, companyId int64, request *protocol.TemplateDeleteReques | ||
493 | var ( | 493 | var ( |
494 | template *models.AuditTemplate | 494 | template *models.AuditTemplate |
495 | num int | 495 | num int |
496 | - sql1 string = `select count(0) from chance where chance_type_id = ? limit 1` | 496 | + sql1 string = `select count(0) from chance where audit_template_id = ? limit 1` |
497 | ) | 497 | ) |
498 | if template, err = models.GetAuditTemplateById(int64(request.TemplateId)); err != nil { | 498 | if template, err = models.GetAuditTemplateById(int64(request.TemplateId)); err != nil { |
499 | log.Error(err.Error()) | 499 | log.Error(err.Error()) |
-
请 注册 或 登录 后发表评论