|
@@ -202,33 +202,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="getDayStuCountBySchoolId" parameterType="com.miaxis.tms.dto.TmsStudentInfoIdDTO" resultType="com.miaxis.tms.vo.TmsBmCountVo" >
|
|
|
- select trunc(t.tso_applydate) as dateTime,count(1) as stuNum
|
|
|
+ <select id="getDayStuCountBySchoolId" parameterType="com.miaxis.tms.dto.TmsBmDayDTO" resultType="com.miaxis.tms.vo.TmsBmCountVo" >
|
|
|
+ select trunc(t.tso_applydate) as dateTime,count(1) as stuCount
|
|
|
from tms_student_info@tms${city} t
|
|
|
where 1=1
|
|
|
and t.tso_school_id = #{schoolId}
|
|
|
- and trunc(t.tso_applydate) = trunc(sysdate #{vDay})
|
|
|
+ and trunc(t.tso_applydate) = trunc(sysdate #{day})
|
|
|
group by trunc(t.tso_applydate)
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="getMonthStuCountBySchoolId" parameterType="com.miaxis.tms.dto.TmsStudentInfoIdDTO" resultType="com.miaxis.tms.vo.TmsBmCountVo" >
|
|
|
- select to_char(tso_applydate, 'yyyy-MM') as dateTime,count(1) as stuNum
|
|
|
+ <select id="getMonthStuCountBySchoolId" parameterType="com.miaxis.tms.dto.TmsBmMonthDTO" resultType="com.miaxis.tms.vo.TmsBmCountVo" >
|
|
|
+ select to_char(tso_applydate, 'yyyy-MM') as dateTime,count(1) as stuCount
|
|
|
from tms_student_info@tms${city} t
|
|
|
where 1=1
|
|
|
and t.tso_school_id = #{schoolId}
|
|
|
- and trunc(t.tso_applydate,'MONTH') = ADD_MONTHS(TRUNC(SYSDATE, 'MONTH'), #{vDay})
|
|
|
+ and trunc(t.tso_applydate,'MONTH') = ADD_MONTHS(TRUNC(SYSDATE, 'MONTH'), #{month})
|
|
|
group by to_char(tso_applydate, 'yyyy-MM')
|
|
|
order by to_char(tso_applydate, 'yyyy-MM')
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="getYearStuCountBySchoolId" parameterType="com.miaxis.tms.dto.TmsStudentInfoIdDTO" resultType="com.miaxis.tms.vo.TmsBmCountVo" >
|
|
|
- select to_char(tso_applydate, 'yyyy') as dateTime,count(1) as stuNum
|
|
|
+ <select id="getYearStuCountBySchoolId" parameterType="com.miaxis.tms.dto.TmsBmMonthDTO" resultType="com.miaxis.tms.vo.TmsBmCountVo" >
|
|
|
+ select to_char(tso_applydate, 'yyyy') as dateTime,count(1) as stuCount
|
|
|
from tms_student_info@tms${city} t
|
|
|
where 1=1
|
|
|
and t.tso_school_id = #{schoolId}
|
|
|
- and trunc(t.tso_applydate,'MONTH') = ADD_MONTHS(TRUNC(SYSDATE, 'MONTH'), #{vDay})
|
|
|
+ and trunc(t.tso_applydate,'MONTH') = ADD_MONTHS(TRUNC(SYSDATE, 'MONTH'), #{month})
|
|
|
group by to_char(tso_applydate, 'yyyy')
|
|
|
order by to_char(tso_applydate, 'yyyy')
|
|
|
</select>
|