...
|
...
|
@@ -88,7 +88,8 @@ func DeleteAuditTemplate(id int64) (err error) { |
|
|
//获取审核模板列表
|
|
|
func GetAuditTemplates(companyId int64, chanceTypeId int) (v []*AuditTemplate, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := "select * from audit_template where company_id=? and chance_type_id=? and enable_status=1 order by sort_num"
|
|
|
sql := "select id,company_id,chance_type_id,`name`,doc,icon,code,sort_num,visible_type,visible_object,LEFT(example,5) example,videos " +
|
|
|
" from audit_template where company_id=? and chance_type_id=? and enable_status=1 order by sort_num"
|
|
|
if _, err = o.Raw(sql, companyId, chanceTypeId).QueryRows(&v); err == nil {
|
|
|
return
|
|
|
}
|
...
|
...
|
|