|
|
@@ -171,11 +171,11 @@ public class WxNotifyServiceImpl implements WxNotifyService {
|
|
|
* @param pageIndex
|
|
|
* @param pageSize
|
|
|
*/
|
|
|
- public List<NotifyDO> notifyListByTeacher(Long teacherId, Integer notifyStatus, Integer pageIndex, Integer pageSize){
|
|
|
- //Map<String, Object> hashMap = new HashMap<>();
|
|
|
+ public Map<String, Object> notifyListByTeacher(Long teacherId, Integer notifyStatus, Integer pageIndex, Integer pageSize){
|
|
|
+ Map<String, Object> hashMap = new HashMap<>();
|
|
|
Integer pageStart = (pageIndex-1)*pageSize;
|
|
|
- //List<NotifyDO> notifyDOS = notifyMapper.selectNotifyListByCreator(teacherId, notifyStatus, pageStart, pageSize);
|
|
|
- /*List<NotifyDO> createList = new ArrayList<>();
|
|
|
+ List<NotifyDO> notifyDOS = notifyMapper.selectNotifyListByCreator(teacherId, notifyStatus, pageStart, pageSize);
|
|
|
+ List<NotifyDO> createList = new ArrayList<>();
|
|
|
if (ObjectUtils.isNotEmpty(notifyDOS)){
|
|
|
for (NotifyDO nt:notifyDOS) {
|
|
|
NotifyDO notifyDO = getNotifyDetail(0L,teacherId, nt);
|
|
|
@@ -183,7 +183,7 @@ public class WxNotifyServiceImpl implements WxNotifyService {
|
|
|
createList.add(notifyDO);
|
|
|
}
|
|
|
}
|
|
|
- hashMap.put("create",createList);*/
|
|
|
+ hashMap.put("create",createList);
|
|
|
|
|
|
List<NotifyDO> notifyList = new ArrayList<>();
|
|
|
TeacherDO teacherDO = teacherMapper.get(teacherId);
|
|
|
@@ -195,8 +195,8 @@ public class WxNotifyServiceImpl implements WxNotifyService {
|
|
|
notifyList.add(notifyDO);
|
|
|
}
|
|
|
}
|
|
|
- //hashMap.put("notify",notifyList);
|
|
|
- return notifyList;
|
|
|
+ hashMap.put("notify",notifyList);
|
|
|
+ return hashMap;
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -229,20 +229,18 @@ public class WxNotifyServiceImpl implements WxNotifyService {
|
|
|
* @param pageIndex
|
|
|
* @param pageSize
|
|
|
*/
|
|
|
- public List<NotifyDO> notifyList(Long personId, Integer notifyStatus, Integer pageIndex, Integer pageSize, Integer type) {
|
|
|
+ public Object notifyList(Long personId, Integer notifyStatus, Integer pageIndex, Integer pageSize, Integer type) {
|
|
|
if (null == pageIndex) {
|
|
|
pageIndex = 1;
|
|
|
}
|
|
|
if (null == pageSize) {
|
|
|
pageIndex = 10;
|
|
|
}
|
|
|
- List<NotifyDO> notifyList = null;
|
|
|
if (0 == type) {
|
|
|
- notifyList = notifyListByStu(personId, notifyStatus, pageIndex, pageSize);
|
|
|
+ return notifyListByStu(personId, notifyStatus, pageIndex, pageSize);
|
|
|
} else {
|
|
|
- notifyList = notifyListByTeacher(personId, notifyStatus, pageIndex, pageSize);
|
|
|
+ return notifyListByTeacher(personId, notifyStatus, pageIndex, pageSize);
|
|
|
}
|
|
|
- return notifyList;
|
|
|
}
|
|
|
|
|
|
/**
|