作者 tangxvhui

Merge branch 'dev' of http://gitlab.fjmaimaimai.com/mmm-go/oppmg into dev

@@ -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())