ds2:
select * from STSCORE where STUDENTNO in (SELECT distinct STUDENTNO FROM STSCORE where
case '${studentno}'
when "" then 1=1
else
STUDENTNO in (${studentno})
end
) and CLASSNO in (select distinct CLASSNO from STSCORE where case '${classno}'
when "" then 1=1
else
CLASSNO='${classno}'
end
)
ds1:
SELECT * FROM STSCORE where
case '${classno}'
when "" then 1=1
else
CLASSNO='${classno}'
end
模板参数:classno , studentno
就是全选时候分组,设置一下分页就行了!