Commit 78033bc4 by 田超

Merge branch 'fixbug/getServeListError' into 'master'

bug:[none]内部接口调用失败

See merge request rays/pcloud-book!868
parents 26af4ffd f5138291
...@@ -235,7 +235,7 @@ public interface BookGroupService { ...@@ -235,7 +235,7 @@ public interface BookGroupService {
@RequestMapping(value = "/mapBookGroupServeCount", method = RequestMethod.POST) @RequestMapping(value = "/mapBookGroupServeCount", method = RequestMethod.POST)
ResponseEntity<ResponseDto<Map<String, BookGroupServeCountDTO>>> mapBookGroupServeCount(@RequestBody MapBookGroupServeCountDTO mapBookGroupServeCountDTO); ResponseEntity<ResponseDto<Map<String, BookGroupServeCountDTO>>> mapBookGroupServeCount(@RequestBody MapBookGroupServeCountDTO mapBookGroupServeCountDTO);
@ApiOperation(value = "获取资源配置集合",httpMethod = "POST") @ApiOperation(value = "获取资源配置集合",httpMethod = "GET")
@RequestMapping(value = "/getBookGroupServeList", method = RequestMethod.GET) @RequestMapping(value = "/getBookGroupServeList", method = RequestMethod.GET)
ResponseEntity<ResponseDto<List<BookGroupServeDTO>>> getBookGroupServeList(@RequestParam("bookGroupId") Long bookGroupId); ResponseEntity<ResponseDto<List<BookGroupServeDTO>>> getBookGroupServeList(@RequestParam("bookGroupId") Long bookGroupId);
......
...@@ -407,11 +407,13 @@ public class BookGroupServiceImpl implements BookGroupService { ...@@ -407,11 +407,13 @@ public class BookGroupServiceImpl implements BookGroupService {
public ResponseEntity<ResponseDto<List<BookGroupServeDTO>>> getBookGroupServeList(@RequestParam("bookGroupId") Long bookGroupId){ public ResponseEntity<ResponseDto<List<BookGroupServeDTO>>> getBookGroupServeList(@RequestParam("bookGroupId") Long bookGroupId){
List<BookGroupServe> list =bookGroupBiz.getBookGroupServeList(bookGroupId); List<BookGroupServe> list =bookGroupBiz.getBookGroupServeList(bookGroupId);
List<BookGroupServeDTO> newList = new ArrayList<BookGroupServeDTO>(); List<BookGroupServeDTO> newList = new ArrayList<BookGroupServeDTO>();
list.forEach(item->{ if (!ListUtils.isEmpty(list)){
BookGroupServeDTO newItme = new BookGroupServeDTO(); list.forEach(item->{
BeanUtils.copyProperties(newItme,item); BookGroupServeDTO newItme = new BookGroupServeDTO();
newList.add(newItme); BeanUtils.copyProperties(item,newItme);
}); newList.add(newItme);
});
}
return ResponseHandleUtil.toResponse(newList); return ResponseHandleUtil.toResponse(newList);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment