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