Commit 15c1503227914376971f49c7af27444b0fccfe0d
1 parent
86db4050fe
Exists in
master
and in
1 other branch
优化
Showing 1 changed file with 3 additions and 2 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/FavorController.java
View file @
15c1503
... | ... | @@ -11,6 +11,7 @@ |
11 | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | 12 | import org.springframework.web.bind.annotation.*; |
13 | 13 | |
14 | +import java.util.List; | |
14 | 15 | import java.util.Map; |
15 | 16 | |
16 | 17 | /** |
... | ... | @@ -58,8 +59,8 @@ |
58 | 59 | @GetMapping("getFavor") |
59 | 60 | public BaseResponse getFavor(LymsFavor favor){ |
60 | 61 | BaseResponse baseResponse=new BaseResponse(); |
61 | - favor=lymsFavorService.getOne(Wrappers.query(favor)); | |
62 | - baseResponse.setObject(favor); | |
62 | + List<LymsFavor> flst=lymsFavorService.list(Wrappers.query(favor)); | |
63 | + baseResponse.setObject(flst); | |
63 | 64 | return baseResponse; |
64 | 65 | } |
65 | 66 |