|
|
@@ -450,7 +450,12 @@ public class TextbookServiceImpl extends MPJBaseServiceImpl<TextbookMapper, Text
|
|
|
|
|
|
@Override
|
|
|
public TextbookVo getInfoByissn(String issn) {
|
|
|
- return textbookTextbookMapper.getInfoByissn(issn);
|
|
|
+ TextbookVo infoByissn = textbookTextbookMapper.getInfoByissn(issn);
|
|
|
+ List<TextbookClassRelation> classRelationList = textbookTextbookClassRelationMapper.selectList(
|
|
|
+ new QueryWrapper<TextbookClassRelation>().lambda().eq(TextbookClassRelation::getTextbookId, infoByissn.getId())
|
|
|
+ );
|
|
|
+ infoByissn.setTextbookClassRelationList(BeanUtil.copyToList(classRelationList, TextbookClassRelationVo.class));
|
|
|
+ return infoByissn;
|
|
|
}
|
|
|
|
|
|
@Override
|