|
|
|
@ -48,6 +48,7 @@ import com.elink.esua.epdc.modules.sds.dao.SdsInfoDao; |
|
|
|
import com.elink.esua.epdc.modules.sds.entity.SdsInfoEntity; |
|
|
|
import com.elink.esua.epdc.modules.sds.redis.SdsInfoRedis; |
|
|
|
import com.elink.esua.epdc.modules.sds.service.SdsInfoService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -62,6 +63,7 @@ import java.util.*; |
|
|
|
* @since v1.0.0 2020-12-02 |
|
|
|
*/ |
|
|
|
@Service |
|
|
|
@Slf4j |
|
|
|
public class SdsInfoServiceImpl extends BaseServiceImpl<SdsInfoDao, SdsInfoEntity> implements SdsInfoService { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@ -160,6 +162,7 @@ public class SdsInfoServiceImpl extends BaseServiceImpl<SdsInfoDao, SdsInfoEntit |
|
|
|
@Override |
|
|
|
public Result<EpdcSelectSdsInfoDetailResultDTO> getSdsDetail(String id) { |
|
|
|
//查看详情 新增浏览次数
|
|
|
|
log.info("查询ID为:" + id); |
|
|
|
SdsInfoEntity sdsInfoEntity = selectById(id); |
|
|
|
sdsInfoEntity.setBrowseNum(sdsInfoEntity.getBrowseNum()==null?1:sdsInfoEntity.getBrowseNum()+1); |
|
|
|
updateById(sdsInfoEntity); |
|
|
|
|