|
|
@ -164,6 +164,9 @@ public class SdsInfoServiceImpl extends BaseServiceImpl<SdsInfoDao, SdsInfoEntit |
|
|
|
//查看详情 新增浏览次数
|
|
|
|
log.info("查询ID为:" + id); |
|
|
|
SdsInfoEntity sdsInfoEntity = selectById(id); |
|
|
|
if(sdsInfoEntity==null){ |
|
|
|
return new Result<EpdcSelectSdsInfoDetailResultDTO>().error("未查找到该顺道捎信息"); |
|
|
|
} |
|
|
|
sdsInfoEntity.setBrowseNum(sdsInfoEntity.getBrowseNum()==null?1:sdsInfoEntity.getBrowseNum()+1); |
|
|
|
updateById(sdsInfoEntity); |
|
|
|
return new Result<EpdcSelectSdsInfoDetailResultDTO>().ok(this.baseDao.getSdsDetail(id)); |
|
|
|