" select count(*) value, max(tbrq) latestUpdateDate from ${table} t "+
" select count(*) value, max(tbrq) latestUpdateDate from ${table} t "+
"</script")
"</script>")
List<RecExcel>getRecAll1(Stringtable);
List<RecExcel>getRecAll1(Stringtable);
@Select("<script>"+
@Select("<script>"+
" select count(*) value, max(t.tbrq) latestUpdateDate from ${table} t, ${table}_D d where t.recordid=d.recordid"+
" select count(*) value, max(t.tbrq) latestUpdateDate from ${table} t, ${table}_D d where t.recordid=d.recordid"+
"</script")
"</script>")
List<RecExcel>getRecAll2(Stringtable);
List<RecExcel>getRecAll2(Stringtable);
@Select("<script>"+
@Select("select count(*), tbrq from (select TO_CHAR(t.tbrq,'yyyy-MM') tbrq from ${table} t)a group by tbrq ")
" "+
"</script")
List<RecExcel>getRecMon1(Stringtable);
List<RecExcel>getRecMon1(Stringtable);
@Select("<script>"+
@Select("select count(*), tbrq from (select TO_CHAR(t.tbrq,'yyyy-MM') tbrq from ${table} t,${table}_D d where t.recordid=d.recordid)a group by tbrq")
" "+
"</script")
List<RecExcel>getRecMon2(Stringtable);
List<RecExcel>getRecMon2(Stringtable);
@Select("<script>"+
@Select("select count(*), tbrq from (select TO_CHAR(t.tbrq,'yyyy-MM-dd') tbrq from ${table} t where t.tbrq>= to_char(now() - interval '30' day,'yyyy-MM-dd') and t.tbrq < to_char(now(),'yyyy-MM-dd'))a group by tbrq")
" "+
"</script")
List<RecExcel>getRecDay1(Stringtable);
List<RecExcel>getRecDay1(Stringtable);
@Select("<script>"+
@Select("select count(*), tbrq from (select TO_CHAR(t.tbrq,'yyyy-MM-dd') tbrq from ${table} t,${table}_D d where t.recordid=d.recordid and t.tbrq>= to_char(now() - interval '30' day,'yyyy-MM-dd') and t.tbrq < to_char(now(),'yyyy-MM-dd'))a group by tbrq")