作者 yangfu

自查修改

@@ -37,7 +37,7 @@ func GetAuditCheckById(id int) (v *AuditCheck, err error) { @@ -37,7 +37,7 @@ func GetAuditCheckById(id int) (v *AuditCheck, err error) {
37 37
38 func GetAuditCheckBy(tpId int64) (v []*AuditCheck, err error) { 38 func GetAuditCheckBy(tpId int64) (v []*AuditCheck, err error) {
39 sql := `select * from( 39 sql := `select * from(
40 -select id,(case when pid=0 then id else id end) pid,title,items from audit_check where template_id=? and enable=1 40 +select id,(case when pid=0 then id else pid end) pid,title,items from audit_check where template_id=? and enable=1
41 )a 41 )a
42 order by a.pid` 42 order by a.pid`
43 o := orm.NewOrm() 43 o := orm.NewOrm()