Преглед на файлове

Merge branch 'teacher_record_sum' of http://git.dayaedu.com/yonge/mec

zouxuan преди 4 години
родител
ревизия
56fd7ff4c6
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/SysMusicCompareRecordServiceImpl.java

+ 4 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/SysMusicCompareRecordServiceImpl.java

@@ -341,6 +341,10 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM
 		}
 		PageInfo<CountStudentTrainDataDto> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows());
 		Map<String, Object> params = new HashMap<String, Object>();
+		String sort = queryInfo.getSort();
+		if(StringUtils.isNotEmpty(sort)){
+			queryInfo.setSort(sort.equals("trainNum")?"train_num_":sort.equals("totalPlayTime")?"total_play_time_":sort.equals("recordNum")?"record_num":"train_day_");
+		}
 		MapUtil.populateMap(params, queryInfo);
 		Integer visitFlag = 0;
 		if(queryInfo.getVisitFlag() != null && queryInfo.getVisitFlag()){