|
@@ -141,16 +141,54 @@ public class TmsStudentInfoServiceImpl extends ServiceImpl<TmsStudentInfoMapper,
|
|
|
|
|
|
@Override
|
|
|
public List<TmsBmCountVo> getEveryDayStuCountBySchoolId(TmsBmDayListDTO dayListDTO) {
|
|
|
+ if(dayListDTO.getFieldType()==2){ //按学员字段排序
|
|
|
+ dayListDTO.setField("stuCount");
|
|
|
+ } else { //默认按时间字段排序
|
|
|
+ dayListDTO.setField("to_char(tso_applydate, 'yyyy-MM-dd')");
|
|
|
+ }
|
|
|
+
|
|
|
+ if(dayListDTO.getSortType()==1){ //按正序
|
|
|
+ dayListDTO.setSort("asc");
|
|
|
+ } else { //默认按时间字段排序
|
|
|
+ dayListDTO.setSort("desc");
|
|
|
+ }
|
|
|
+
|
|
|
return mapper.getEveryDayStuCountBySchoolId(dayListDTO);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<TmsBmCountVo> getEveryMonthStuCountBySchoolId(TmsBmMonthListDTO monthListDTO) {
|
|
|
+
|
|
|
+ if(monthListDTO.getFieldType()==2){ //按学员字段排序
|
|
|
+ monthListDTO.setField("stuCount");
|
|
|
+ } else { //默认按时间字段排序
|
|
|
+ monthListDTO.setField("TO_CHAR(tso_applydate, 'yyyy-MM')");
|
|
|
+ }
|
|
|
+
|
|
|
+ if(monthListDTO.getSortType()==1){ //按正序
|
|
|
+ monthListDTO.setSort("asc");
|
|
|
+ } else { //默认按时间字段排序
|
|
|
+ monthListDTO.setSort("desc");
|
|
|
+ }
|
|
|
+
|
|
|
return mapper.getEveryMonthStuCountBySchoolId(monthListDTO);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<TmsBmCountVo> getEveryYearStuCountBySchoolId(TmsBmYearListDTO yearListDTO) {
|
|
|
+
|
|
|
+ if(yearListDTO.getFieldType()==2){ //按学员字段排序
|
|
|
+ yearListDTO.setField("stuCount");
|
|
|
+ } else { //默认按时间字段排序
|
|
|
+ yearListDTO.setField("TO_CHAR(tso_applydate, 'yyyy')");
|
|
|
+ }
|
|
|
+
|
|
|
+ if(yearListDTO.getSortType()==1){ //按正序
|
|
|
+ yearListDTO.setSort("asc");
|
|
|
+ } else { //默认按时间字段排序
|
|
|
+ yearListDTO.setSort("desc");
|
|
|
+ }
|
|
|
+
|
|
|
return mapper.getEveryYearStuCountBySchoolId(yearListDTO);
|
|
|
}
|
|
|
|