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