Commit f5138291 by 朱亚洁

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

parent 26af4ffd
......@@ -235,7 +235,7 @@ public interface BookGroupService {
@RequestMapping(value = "/mapBookGroupServeCount", method = RequestMethod.POST)
ResponseEntity<ResponseDto<Map<String, BookGroupServeCountDTO>>> mapBookGroupServeCount(@RequestBody MapBookGroupServeCountDTO mapBookGroupServeCountDTO);
@ApiOperation(value = "获取资源配置集合",httpMethod = "POST")
@ApiOperation(value = "获取资源配置集合",httpMethod = "GET")
@RequestMapping(value = "/getBookGroupServeList", method = RequestMethod.GET)
ResponseEntity<ResponseDto<List<BookGroupServeDTO>>> getBookGroupServeList(@RequestParam("bookGroupId") Long bookGroupId);
......
......@@ -407,11 +407,13 @@ public class BookGroupServiceImpl implements BookGroupService {
public ResponseEntity<ResponseDto<List<BookGroupServeDTO>>> getBookGroupServeList(@RequestParam("bookGroupId") Long bookGroupId){
List<BookGroupServe> list =bookGroupBiz.getBookGroupServeList(bookGroupId);
List<BookGroupServeDTO> newList = new ArrayList<BookGroupServeDTO>();
if (!ListUtils.isEmpty(list)){
list.forEach(item->{
BookGroupServeDTO newItme = new BookGroupServeDTO();
BeanUtils.copyProperties(newItme,item);
BeanUtils.copyProperties(item,newItme);
newList.add(newItme);
});
}
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