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