作者 yangfu

模板修改

... ... @@ -493,7 +493,7 @@ func TemplateDelete(uid, companyId int64, request *protocol.TemplateDeleteReques
var (
template *models.AuditTemplate
num int
sql1 string = `select count(0) from chance where chance_type_id = ? limit 1`
sql1 string = `select count(0) from chance where audit_template_id = ? limit 1`
)
if template, err = models.GetAuditTemplateById(int64(request.TemplateId)); err != nil {
log.Error(err.Error())
... ...