|
@@ -1,5 +1,6 @@
|
|
|
package com.ruoyi.system.service.impl;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -8,6 +9,8 @@ import com.ruoyi.system.mapper.PostNoticeMapper;
|
|
|
import com.ruoyi.system.domain.PostNotice;
|
|
|
import com.ruoyi.system.service.IPostNoticeService;
|
|
|
|
|
|
+import javax.xml.crypto.Data;
|
|
|
+
|
|
|
/**
|
|
|
* 公告Service业务层处理
|
|
|
*
|
|
@@ -50,6 +53,19 @@ public class PostNoticeServiceImpl implements IPostNoticeService
|
|
|
return postNoticeMapper.selectDetailByNoticeId(noticeId);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 搜素
|
|
|
+ * @param noticeTitle
|
|
|
+ * @param noticeTimeLeft
|
|
|
+ * @param noticeTimeRight
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<PostNotice> selectPostNoticeListByTitleOrNoticeTime(String noticeTitle, Date noticeTimeLeft, Date noticeTimeRight) {
|
|
|
+ return postNoticeMapper.selectPostNoticeListByTitleOrNoticeTime(noticeTitle,noticeTimeLeft,noticeTimeRight);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 新增公告
|
|
|
*
|
|
@@ -82,6 +98,7 @@ public class PostNoticeServiceImpl implements IPostNoticeService
|
|
|
* @param noticeIds 需要删除的公告主键
|
|
|
* @return 结果
|
|
|
*/
|
|
|
+
|
|
|
@Override
|
|
|
public int deletePostNoticeByNoticeIds(Long[] noticeIds)
|
|
|
{
|