|
@@ -44,15 +44,13 @@ public class FavorController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/toList")
|
|
|
- public ModelAndView toList(@RequestParam Map<String, Object> map, ModelAndView mv) {
|
|
|
+ public ModelAndView toList(ModelAndView mv) {
|
|
|
User currentUser = SessionUtils.currentUser();
|
|
|
- map.put("createBy", currentUser.getId());
|
|
|
- if(!map.containsKey("sortName")) {
|
|
|
- map.put("sortName", "occur_date");
|
|
|
- map.put("sortOrder", "asc");
|
|
|
- }
|
|
|
- List<Favor> favorList = favorService.findByCondition(map);
|
|
|
- mv.addObject("favorList", favorList);
|
|
|
+ //人员列表
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put("relatedId", SessionUtils.currentUserId());
|
|
|
+ List<Person> personList = personService.findByCondition(map);
|
|
|
+ mv.addObject("personList", personList);
|
|
|
mv.setViewName("/favor/list");
|
|
|
return mv;
|
|
|
}
|
|
@@ -89,6 +87,7 @@ public class FavorController {
|
|
|
map.put("relatedId", SessionUtils.currentUserId());
|
|
|
List<Person> personList = personService.findByCondition(map);
|
|
|
mv.addObject("personList", personList);
|
|
|
+ //送礼人员列表
|
|
|
if (!StringUtils.isEmpty(sourcePersonIds)) {
|
|
|
map.put("idList", Arrays.asList(sourcePersonIds.split(",")));
|
|
|
List<Person> sourcePersonList = personService.findByCondition(map);
|