|
@@ -1,13 +1,15 @@
|
|
package com.ygj.yuemum.service.college;
|
|
package com.ygj.yuemum.service.college;
|
|
|
|
|
|
-import com.ygj.yuemum.dao.college.CollegePresentScholarshipsDao;
|
|
|
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
import com.ygj.yuemum.dao.college.CollegePresentScholarshipsLogsDao;
|
|
import com.ygj.yuemum.dao.college.CollegePresentScholarshipsLogsDao;
|
|
-import com.ygj.yuemum.domain.college.CollegePresentScholarships;
|
|
|
|
import com.ygj.yuemum.domain.college.CollegePresentScholarshipsLogs;
|
|
import com.ygj.yuemum.domain.college.CollegePresentScholarshipsLogs;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@Service
|
|
@Service
|
|
public class CollegePresentScholarshipsLogsService {
|
|
public class CollegePresentScholarshipsLogsService {
|
|
@@ -20,6 +22,17 @@ public class CollegePresentScholarshipsLogsService {
|
|
return collegePresentScholarshipsLogs;
|
|
return collegePresentScholarshipsLogs;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public Map<String, Object> queryScholarshipsLogs(CollegePresentScholarshipsLogs collegePresentScholarshipsLogs) {
|
|
|
|
+ PageHelper.startPage(collegePresentScholarshipsLogs.getPage(), collegePresentScholarshipsLogs.getLimit());
|
|
|
|
+ List<CollegePresentScholarshipsLogs> collegeCurriculumCores = collegePresentScholarshipsLogsDao.queryScholarshipsLogs(collegePresentScholarshipsLogs);
|
|
|
|
+ PageInfo<CollegePresentScholarshipsLogs> pageInfo = new PageInfo<CollegePresentScholarshipsLogs>(collegeCurriculumCores);
|
|
|
|
+ long count = pageInfo.getTotal(); //获取总记录数
|
|
|
|
+ Map<String, Object> tableData = new HashMap<>();
|
|
|
|
+ tableData.put("items", collegeCurriculumCores);
|
|
|
|
+ tableData.put("total", count);
|
|
|
|
+ return tableData;
|
|
|
|
+ }
|
|
|
|
+
|
|
public CollegePresentScholarshipsLogs getCollegePresentScholarshipsLog(Integer id) {
|
|
public CollegePresentScholarshipsLogs getCollegePresentScholarshipsLog(Integer id) {
|
|
CollegePresentScholarshipsLogs collegePresentScholarshipsLogs = collegePresentScholarshipsLogsDao.selectByPrimaryKey(id);
|
|
CollegePresentScholarshipsLogs collegePresentScholarshipsLogs = collegePresentScholarshipsLogsDao.selectByPrimaryKey(id);
|
|
return collegePresentScholarshipsLogs;
|
|
return collegePresentScholarshipsLogs;
|