|
|
|
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
|
import com.huoran.iasf.common.utils.R; |
|
|
|
|
import com.huoran.iasf.entity.ProductDetails; |
|
|
|
|
import com.huoran.iasf.entity.SysColumn; |
|
|
|
|
import com.huoran.iasf.mapper.SysColumnMapper; |
|
|
|
|
import com.huoran.iasf.mapper.SysProductDetailsMapper; |
|
|
|
|
import com.huoran.iasf.service.SysProductDetailsService; |
|
|
|
@ -105,10 +106,12 @@ public class SysProductDetailsServiceImpl extends ServiceImpl<SysProductDetailsM |
|
|
|
|
//预览增加次数
|
|
|
|
|
statisticsOfPageViews(id); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DisciplineAndSpecialtyVO disciplineAndSpecialtyVO = baseMapper.queryDisciplineAndSpecialty(id); |
|
|
|
|
ProductDetails productDetails = baseMapper.foregroundPreview(id); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查看栏目名称
|
|
|
|
|
SysColumn column = columnMapper.selectById(productDetails.getColumnId()); |
|
|
|
|
productDetails.setColumnName(column.getColumnName()); |
|
|
|
|
if (ObjectUtil.isNotEmpty(productDetails)) { |
|
|
|
|
if (ObjectUtil.isNotEmpty(disciplineAndSpecialtyVO)) { |
|
|
|
|
productDetails.setDisciplineName(disciplineAndSpecialtyVO.getDisciplineName()); |
|
|
|
|