|
|
|
@ -46,7 +46,6 @@ import com.elink.esua.epdc.rocketmq.dto.OrganizationModifyDTO; |
|
|
|
import com.elink.esua.epdc.service.NoticeDepartmentService; |
|
|
|
import com.elink.esua.epdc.service.NoticeService; |
|
|
|
import com.elink.esua.epdc.util.NewsUtils; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -249,8 +248,16 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeDao, NoticeEntity> |
|
|
|
@Override |
|
|
|
public Result<EpdcNoticeDetailResultDTO> getNoticeDetailById(String noticeId) { |
|
|
|
EpdcNoticeDetailResultDTO dto = this.baseDao.selectOneAppNotice(noticeId); |
|
|
|
dto.setNoticeContent("<div style=\"font-size:19px;line-height:31px\">" + dto.getNoticeContent() + "</div>"); |
|
|
|
return new Result().ok(dto); |
|
|
|
// 浏览数+1
|
|
|
|
if (null != dto) { |
|
|
|
dto.setReadingAmount(dto.getReadingAmount() + NumConstant.ONE); |
|
|
|
NoticeEntity entity = new NoticeEntity(); |
|
|
|
entity.setId(noticeId); |
|
|
|
entity.setReadingAmount(dto.getReadingAmount()); |
|
|
|
updateById(entity); |
|
|
|
dto.setNoticeContent("<div style=\"font-size:19px;line-height:31px\">" + dto.getNoticeContent() + "</div>"); |
|
|
|
} |
|
|
|
return new Result<EpdcNoticeDetailResultDTO>().ok(dto); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|