|
@@ -14,6 +14,8 @@ import com.bizmatics.mhfire.model.bulehelp.BmfwFeedback;
|
|
|
import com.bizmatics.mhfire.model.bulehelp.BmfwLawsCatalogInfo;
|
|
|
import com.bizmatics.mhfire.persistence.mapper.bulehelp.BmfwLawsCatalogInfoMapper;
|
|
|
import com.bizmatics.mhfire.service.bulehelp.BmfwLawsCatalogInfoService;
|
|
|
+import com.bizmatics.mhfire.service.bulehelp.BmfwLawsCatalogService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -29,6 +31,8 @@ import java.util.ArrayList;
|
|
|
@DS("bulehelp")
|
|
|
@Service
|
|
|
public class BmfwLawsCatalogInfoServiceImpl extends AbstractCrudService<BmfwLawsCatalogInfoMapper, BmfwLawsCatalogInfo> implements BmfwLawsCatalogInfoService {
|
|
|
+ @Autowired
|
|
|
+ private BmfwLawsCatalogService bmfwLawsCatalogService;
|
|
|
|
|
|
@Override
|
|
|
public CommonPage<BmfwLawsCatalogInfo> page(Integer current,Integer size,String param,Integer catalogId) {
|
|
@@ -37,6 +41,7 @@ public class BmfwLawsCatalogInfoServiceImpl extends AbstractCrudService<BmfwLaws
|
|
|
.eq(null != catalogId,BmfwLawsCatalogInfo::getCatalogId,catalogId);
|
|
|
IPage<BmfwLawsCatalogInfo> page = new Page<>(current, size);
|
|
|
page = baseMapper.selectPage(page, productLambdaQueryWrapper);
|
|
|
+ page.getRecords().forEach(bmfwLawsCatalogInfo -> bmfwLawsCatalogInfo.setCatalogName(bmfwLawsCatalogService.getById(bmfwLawsCatalogInfo.getCatalogId()).getName()));
|
|
|
return this.ToCommonPage(page);
|
|
|
}
|
|
|
}
|