jsk 解决系统通告 问题
This commit is contained in:
parent
8a669443c8
commit
c4b21a3e43
|
|
@ -1,5 +1,6 @@
|
|||
package com.bonus.system.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.bonus.system.api.domain.SysNotice;
|
||||
|
|
@ -44,13 +45,17 @@ public class SysNoticeServiceImpl implements ISysNoticeService
|
|||
@Override
|
||||
public List<SysNotice> selectNoticeList(SysNotice notice)
|
||||
{
|
||||
List<SysNotice> list = noticeMapper.selectNoticeList(notice);
|
||||
List<SysNotice> list=new ArrayList<>();
|
||||
try{
|
||||
list = noticeMapper.selectNoticeList(notice);
|
||||
list.forEach(o -> {
|
||||
String content = o.getNoticeContent();
|
||||
o.setNoticeContentNoHtml(content != null ? content.replaceAll(HTML_REGEX, "") : "");
|
||||
});
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return list;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
AND create_by like concat('%', #{createBy}, '%')
|
||||
</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<insert id="insertNotice" parameterType="com.bonus.system.api.domain.SysNotice">
|
||||
|
|
|
|||
Loading…
Reference in New Issue