|
@@ -1,29 +1,20 @@
|
1
|
1
|
package com.huiju.estateagents.property.service.impl;
|
2
|
2
|
|
3
|
|
-import com.alibaba.fastjson.JSONArray;
|
4
|
|
-import com.alibaba.fastjson.JSONObject;
|
5
|
3
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
6
|
4
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
7
|
5
|
import com.google.common.collect.Maps;
|
8
|
6
|
import com.huiju.estateagents.base.ResponseBean;
|
9
|
|
-import com.huiju.estateagents.center.taUser.entity.TaUser;
|
10
|
|
-import com.huiju.estateagents.center.taUser.mapper.TaUserMapper;
|
11
|
|
-import com.huiju.estateagents.center.taUser.service.ITaUserService;
|
12
|
7
|
import com.huiju.estateagents.event.EventBus;
|
13
|
8
|
import com.huiju.estateagents.mapper.TaPersonMapper;
|
14
|
9
|
import com.huiju.estateagents.property.common.Constant;
|
15
|
|
-import com.huiju.estateagents.property.common.UserElement;
|
16
|
10
|
import com.huiju.estateagents.property.dao.*;
|
17
|
11
|
import com.huiju.estateagents.property.model.*;
|
18
|
12
|
import com.huiju.estateagents.property.service.SocialServiceI;
|
19
|
|
-import com.huiju.estateagents.property.vo.TpTicketVO;
|
20
|
13
|
import org.springframework.beans.factory.annotation.Autowired;
|
21
|
14
|
import org.springframework.context.ApplicationContext;
|
22
|
15
|
import org.springframework.stereotype.Service;
|
23
|
16
|
import org.springframework.transaction.annotation.Transactional;
|
24
|
|
-import org.springframework.util.StringUtils;
|
25
|
17
|
|
26
|
|
-import java.io.IOException;
|
27
|
18
|
import java.time.LocalDateTime;
|
28
|
19
|
import java.util.*;
|
29
|
20
|
import java.util.stream.Collectors;
|
|
@@ -85,18 +76,19 @@ public class SocialServiceImpl implements SocialServiceI {
|
85
|
76
|
*
|
86
|
77
|
* @param orgId
|
87
|
78
|
* @param title
|
|
79
|
+ * @param annType
|
88
|
80
|
* @param pageNum
|
89
|
81
|
* @param pageSize
|
90
|
82
|
* @return
|
91
|
83
|
*/
|
92
|
84
|
@Override
|
93
|
|
- public ResponseBean getAnnouncements(Integer orgId, String title, Integer pageNum, Integer pageSize) {
|
|
85
|
+ public ResponseBean getAnnouncements(Integer orgId, String title, String annType, Integer pageNum, Integer pageSize) {
|
94
|
86
|
ResponseBean responseBean = new ResponseBean();
|
95
|
87
|
Map<String, Object> parameter = Maps.newHashMap();
|
96
|
88
|
//使用分页插件
|
97
|
89
|
Page<TpAnnouncement> page = new Page<>(pageNum, pageSize);
|
98
|
90
|
// 获取数据
|
99
|
|
- IPage<TpAnnouncement> wxAnnouncementsPage = tpAnnouncementMapper.getWxAnnouncements(page, orgId, title);
|
|
91
|
+ IPage<TpAnnouncement> wxAnnouncementsPage = tpAnnouncementMapper.getWxAnnouncements(page, orgId, title, annType);
|
100
|
92
|
responseBean.addSuccess(wxAnnouncementsPage);
|
101
|
93
|
return responseBean;
|
102
|
94
|
}
|