|
|
@ -3,6 +3,7 @@ package com.epmet.service.impl; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.dao.MemoDifficultyDao; |
|
|
@ -20,6 +21,7 @@ import com.epmet.service.MemoAttrService; |
|
|
|
import com.epmet.service.MemoDifficultyService; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import oracle.sql.NUMBER; |
|
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -127,6 +129,10 @@ public class MemoDifficultyServiceImpl extends BaseServiceImpl<MemoDifficultyDao |
|
|
|
|
|
|
|
@Override |
|
|
|
public MemoDifficultyDTO detail(MemoDifficultyDetailFromDTO fromDTO) { |
|
|
|
//0.判断已读,则修改已读标记
|
|
|
|
if (fromDTO.getReadFlag() == NumConstant.ONE) { |
|
|
|
memoAttrService.setReaded(fromDTO.getId()); |
|
|
|
} |
|
|
|
//1.查询难点堵点主表数据
|
|
|
|
MemoDifficultyEntity entity = baseDao.selectById(fromDTO.getId()); |
|
|
|
MemoDifficultyDTO resultDTO = ConvertUtils.sourceToTarget(entity, MemoDifficultyDTO.class); |
|
|
|