|
@@ -36,9 +36,9 @@ public class SocialController {
|
36
|
36
|
|
37
|
37
|
@RequestMapping(value = "/announcement/{communityId}", method = RequestMethod.GET)
|
38
|
38
|
@ApiOperation(value = "论坛公告帖子详情", notes = "获取论坛公告帖子详情")
|
39
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
|
39
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
40
|
40
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "id", value = "公告帖子id")})
|
41
|
|
- public ResponseBean findAnnouncementDetail(@PathVariable(value = "communityId")Integer communityId, @RequestParam("id") Integer id){
|
|
41
|
+ public ResponseBean findAnnouncementDetail(@PathVariable(value = "communityId") Integer communityId, @RequestParam("id") Integer id) {
|
42
|
42
|
ResponseBean responseBean = new ResponseBean();
|
43
|
43
|
TpAnnouncement tpAnnouncement = socialServiceI.findAnnouncementDetail(id, communityId);
|
44
|
44
|
responseBean.addSuccess(tpAnnouncement);
|
|
@@ -47,61 +47,61 @@ public class SocialController {
|
47
|
47
|
|
48
|
48
|
@RequestMapping(value = "/sign/{communityId}", method = RequestMethod.GET)
|
49
|
49
|
@ApiOperation(value = "活动报名接口", notes = "活动报名接口")
|
50
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
51
|
|
- @ApiImplicitParam(paramType = "query", dataType = "integer", name = "activityId", value = "活动Id")})
|
52
|
|
- public ResponseBean SignActivity(@PathVariable(value = "communityId")Integer communityId, @RequestParam("activityId")Integer activityId){
|
|
50
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
|
51
|
+ @ApiImplicitParam(paramType = "query", dataType = "integer", name = "activityId", value = "活动Id")})
|
|
52
|
+ public ResponseBean SignActivity(@PathVariable(value = "communityId") Integer communityId, @RequestParam("activityId") Integer activityId) {
|
53
|
53
|
ResponseBean responseBean = socialServiceI.findTaUserInfo(activityId, communityId);
|
54
|
54
|
return responseBean;
|
55
|
55
|
}
|
56
|
|
-
|
|
56
|
+
|
57
|
57
|
@ApiOperation(value = "按小区获取分页公告列表", notes = "按小区获取分页公告列表,公告标题模糊查询")
|
58
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
|
|
58
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
|
59
|
59
|
@ApiImplicitParam(paramType = "query", dataType = "String", name = "title", value = "公告标题"),
|
60
|
60
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
|
61
|
61
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")})
|
62
|
|
- @RequestMapping(value = "/announcements/{communityId}",method = RequestMethod.GET)
|
63
|
|
- public ResponseBean getAnnouncements(@PathVariable Integer communityId,@RequestParam String title,
|
64
|
|
- @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
65
|
|
- @RequestParam(value ="pageSize",defaultValue = "5") Integer pageSize){
|
|
62
|
+ @RequestMapping(value = "/announcements/{communityId}", method = RequestMethod.GET)
|
|
63
|
+ public ResponseBean getAnnouncements(@PathVariable Integer communityId, @RequestParam String title,
|
|
64
|
+ @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
65
|
+ @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) {
|
66
|
66
|
ResponseBean responseBean = new ResponseBean();
|
67
|
|
- List<TpAnnouncement> announcementList = socialServiceI.getAnnouncements(communityId,title,pageNum,pageSize);
|
|
67
|
+ List<TpAnnouncement> announcementList = socialServiceI.getAnnouncements(communityId, title, pageNum, pageSize);
|
68
|
68
|
responseBean.addSuccess(announcementList);
|
69
|
69
|
return responseBean;
|
70
|
70
|
}
|
71
|
71
|
|
72
|
72
|
@ApiOperation(value = "获取公告轮播图", notes = "获取公告轮播图")
|
73
|
73
|
@ApiImplicitParams({
|
74
|
|
- @ApiImplicitParam(paramType = "path",dataType = "String",name = "communityId",value = "小区id")
|
|
74
|
+ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区id")
|
75
|
75
|
})
|
76
|
|
- @RequestMapping(value = "/announcement/Img/{communityId}",method = RequestMethod.GET)
|
77
|
|
- public ResponseBean getAnnouncement(@PathVariable(value = "communityId")Integer communityId ){
|
|
76
|
+ @RequestMapping(value = "/announcement/Img/{communityId}", method = RequestMethod.GET)
|
|
77
|
+ public ResponseBean getAnnouncement(@PathVariable(value = "communityId") Integer communityId) {
|
78
|
78
|
ResponseBean responseBean = new ResponseBean();
|
79
|
79
|
List<TpAnnouncement> agreement = socialServiceI.getAnnouncement(communityId);
|
80
|
80
|
responseBean.addSuccess(agreement);
|
81
|
81
|
return responseBean;
|
82
|
82
|
}
|
83
|
83
|
|
84
|
|
-
|
|
84
|
+
|
85
|
85
|
@ApiOperation(value = "按小区获取分页活动列表", notes = "按小区获取分页活动列表,公告标题模糊查询")
|
86
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
|
|
86
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
|
87
|
87
|
@ApiImplicitParam(paramType = "query", dataType = "String", name = "title", value = "活动标题"),
|
88
|
88
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
|
89
|
89
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")})
|
90
|
|
- @RequestMapping(value = "/activitys/{communityId}",method = RequestMethod.GET)
|
91
|
|
- public ResponseBean getActivitys(@PathVariable Integer communityId,@RequestParam String title,
|
92
|
|
- @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
93
|
|
- @RequestParam(value ="pageSize",defaultValue = "5") Integer pageSize){
|
|
90
|
+ @RequestMapping(value = "/activitys/{communityId}", method = RequestMethod.GET)
|
|
91
|
+ public ResponseBean getActivitys(@PathVariable Integer communityId, @RequestParam String title,
|
|
92
|
+ @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
93
|
+ @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) {
|
94
|
94
|
ResponseBean responseBean = new ResponseBean();
|
95
|
|
- List<TpActivity> activityList = socialServiceI.getActivitys(communityId,title,pageNum,pageSize);
|
|
95
|
+ List<TpActivity> activityList = socialServiceI.getActivitys(communityId, title, pageNum, pageSize);
|
96
|
96
|
responseBean.addSuccess(activityList);
|
97
|
97
|
return responseBean;
|
98
|
98
|
}
|
99
|
|
-
|
|
99
|
+
|
100
|
100
|
@ApiOperation(value = "论坛活动帖子详情", notes = "获取论坛活动帖子详情")
|
101
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
|
101
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
102
|
102
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "activityId", value = "活动帖子id")})
|
103
|
103
|
@RequestMapping(value = "/activity/{communityId}", method = RequestMethod.GET)
|
104
|
|
- public ResponseBean findActivityDetail(@PathVariable(value = "communityId")Integer communityId, @RequestParam("activityId") Integer activityId){
|
|
104
|
+ public ResponseBean findActivityDetail(@PathVariable(value = "communityId") Integer communityId, @RequestParam("activityId") Integer activityId) {
|
105
|
105
|
ResponseBean responseBean = new ResponseBean();
|
106
|
106
|
TpActivity activity = socialServiceI.findActivityDetail(activityId, communityId);
|
107
|
107
|
responseBean.addSuccess(activity);
|
|
@@ -109,27 +109,27 @@ public class SocialController {
|
109
|
109
|
}
|
110
|
110
|
|
111
|
111
|
@ApiOperation(value = "二手租赁详情", notes = "二手租赁详情")
|
112
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
|
112
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
113
|
113
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "activityId", value = "活动帖子id")})
|
114
|
114
|
@RequestMapping(value = "/secondHand/{communityId}", method = RequestMethod.GET)
|
115
|
|
- public ResponseBean findUsedDetails(@PathVariable(value = "communityId")Integer communityId, @RequestParam("activityId") Integer activityId, HttpSession session){
|
|
115
|
+ public ResponseBean findUsedDetails(@PathVariable(value = "communityId") Integer communityId, @RequestParam("activityId") Integer activityId, HttpSession session) {
|
116
|
116
|
ResponseBean responseBean = new ResponseBean();
|
117
|
117
|
UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
|
118
|
|
- Integer userId=userElement.getId();
|
119
|
|
- TpTransaction activity = socialServiceI.findUsedDetails(activityId, communityId,userId);
|
|
118
|
+ Integer userId = userElement.getId();
|
|
119
|
+ TpTransaction activity = socialServiceI.findUsedDetails(activityId, communityId, userId);
|
120
|
120
|
responseBean.addSuccess(activity);
|
121
|
121
|
return responseBean;
|
122
|
122
|
}
|
123
|
123
|
|
124
|
124
|
@ApiOperation(value = "获取所有的二手租赁帖子", notes = "获取所有的二手租赁帖子")
|
125
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
|
125
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
126
|
126
|
@ApiImplicitParam(paramType = "query", dataType = "String", name = "type", value = "帖子类型"),
|
127
|
127
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
|
128
|
128
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")})
|
129
|
129
|
@RequestMapping(value = "/getAllTransaction/{communityId}", method = RequestMethod.GET)
|
130
|
|
- public ResponseBean getAllPosts(@PathVariable("communityId")Integer communityId, @RequestParam("type") String type,
|
131
|
|
- @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
132
|
|
- @RequestParam(value ="pageSize",defaultValue = "5") Integer pageSize){
|
|
130
|
+ public ResponseBean getAllPosts(@PathVariable("communityId") Integer communityId, @RequestParam("type") String type,
|
|
131
|
+ @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
132
|
+ @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) {
|
133
|
133
|
ResponseBean responseBean = new ResponseBean();
|
134
|
134
|
List<TpTransaction> tpTransactions = socialServiceI.findAllTransaction(communityId, type, pageNum, pageSize);
|
135
|
135
|
responseBean.addSuccess(tpTransactions);
|
|
@@ -137,20 +137,20 @@ public class SocialController {
|
137
|
137
|
}
|
138
|
138
|
|
139
|
139
|
@ApiOperation(value = "报修进度终止", notes = "报修进度终止")
|
140
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
|
140
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
141
|
141
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "ticketId", value = "帖子Id")})
|
142
|
142
|
@RequestMapping(value = "/stopTicket/{communityId}", method = RequestMethod.GET)
|
143
|
|
- public ResponseBean stopTicket(@PathVariable("communityId")Integer communityId, @RequestParam("ticketId")Integer ticketId){
|
|
143
|
+ public ResponseBean stopTicket(@PathVariable("communityId") Integer communityId, @RequestParam("ticketId") Integer ticketId) {
|
144
|
144
|
ResponseBean responseBean = socialServiceI.stopTpTicketRecord(communityId, ticketId);
|
145
|
145
|
return responseBean;
|
146
|
146
|
}
|
147
|
147
|
|
148
|
148
|
@ApiOperation(value = "修改报修内容", notes = "修改报修内容")
|
149
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "ticketId", value = "工单Id"),
|
150
|
|
- @ApiImplicitParam(name = "tpTicket", value = "报修", required = true, dataType ="TpTicket"),
|
151
|
|
- @ApiImplicitParam(paramType = "query", dataType = "integer", name = "type", value = "工单类型")})
|
|
149
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "ticketId", value = "工单Id"),
|
|
150
|
+ @ApiImplicitParam(name = "tpTicket", value = "报修", required = true, dataType = "TpTicket"),
|
|
151
|
+ @ApiImplicitParam(paramType = "query", dataType = "integer", name = "type", value = "工单类型")})
|
152
|
152
|
@RequestMapping(value = "/updateTicket/{ticketId}", method = RequestMethod.POST)
|
153
|
|
- public ResponseBean updateTicketContent(@PathVariable("ticketId")Integer ticketId, @RequestBody TpTicket tpTicket, @RequestParam("type")String type){
|
|
153
|
+ public ResponseBean updateTicketContent(@PathVariable("ticketId") Integer ticketId, @RequestBody TpTicket tpTicket, @RequestParam("type") String type) {
|
154
|
154
|
ResponseBean responseBean = new ResponseBean();
|
155
|
155
|
socialServiceI.updateTicketContent(ticketId, tpTicket, type);
|
156
|
156
|
return responseBean;
|
|
@@ -158,16 +158,16 @@ public class SocialController {
|
158
|
158
|
|
159
|
159
|
@ApiOperation(value = "添加二手租赁帖子", notes = "添加二手租赁帖子")
|
160
|
160
|
@ApiImplicitParams({
|
161
|
|
- @ApiImplicitParam(paramType = "query",dataType = "String",name = "transactionTitle",value = "交易标题"),
|
162
|
|
- @ApiImplicitParam(paramType = "query",dataType = "String",name = "transactionContent",value = "交易内容"),
|
163
|
|
- @ApiImplicitParam(paramType = "query",dataType = "String",name = "type",value = "0:二手 1:求购 2:租赁"),
|
|
161
|
+ @ApiImplicitParam(paramType = "query", dataType = "String", name = "transactionTitle", value = "交易标题"),
|
|
162
|
+ @ApiImplicitParam(paramType = "query", dataType = "String", name = "transactionContent", value = "交易内容"),
|
|
163
|
+ @ApiImplicitParam(paramType = "query", dataType = "String", name = "type", value = "0:二手 1:求购 2:租赁"),
|
164
|
164
|
})
|
165
|
|
- @RequestMapping(value = "/addAllTransaction",method = RequestMethod.POST)
|
166
|
|
- public ResponseBean addTransaction(TpTransaction tpTransaction, HttpSession session){
|
|
165
|
+ @RequestMapping(value = "/addAllTransaction", method = RequestMethod.POST)
|
|
166
|
+ public ResponseBean addTransaction(TpTransaction tpTransaction, HttpSession session) {
|
167
|
167
|
ResponseBean responseBean = new ResponseBean();
|
168
|
168
|
UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
|
169
|
|
- Integer userId=userElement.getId();
|
170
|
|
- ResponseBean response=socialServiceI.addAllTransaction(userId,tpTransaction);
|
|
169
|
+ Integer userId = userElement.getId();
|
|
170
|
+ ResponseBean response = socialServiceI.addAllTransaction(userId, tpTransaction);
|
171
|
171
|
return response;
|
172
|
172
|
}
|
173
|
173
|
|
|
@@ -176,14 +176,14 @@ public class SocialController {
|
176
|
176
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
|
177
|
177
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度")
|
178
|
178
|
})
|
179
|
|
- @RequestMapping(value = "/selectAllTransaction",method = RequestMethod.POST)
|
180
|
|
- public ResponseBean selectAllTransaction( HttpSession session,
|
181
|
|
- @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
182
|
|
- @RequestParam(value ="pageSize",defaultValue = "5") Integer pageSize){
|
|
179
|
+ @RequestMapping(value = "/selectAllTransaction", method = RequestMethod.POST)
|
|
180
|
+ public ResponseBean selectAllTransaction(HttpSession session,
|
|
181
|
+ @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
182
|
+ @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) {
|
183
|
183
|
ResponseBean responseBean = new ResponseBean();
|
184
|
184
|
UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
|
185
|
|
- Integer userId=userElement.getId();
|
186
|
|
- ResponseBean response=socialServiceI.selectAllTransaction(userId,pageNum, pageSize);
|
|
185
|
+ Integer userId = userElement.getId();
|
|
186
|
+ ResponseBean response = socialServiceI.selectAllTransaction(userId, pageNum, pageSize);
|
187
|
187
|
return response;
|
188
|
188
|
}
|
189
|
189
|
|
|
@@ -191,22 +191,25 @@ public class SocialController {
|
191
|
191
|
@ApiImplicitParams({
|
192
|
192
|
@ApiImplicitParam(paramType = "query", dataType = "integer", name = "ticketId", value = "二手租赁帖子Id")
|
193
|
193
|
})
|
194
|
|
- @RequestMapping(value = "/ubDateAllTransaction",method = RequestMethod.PUT)
|
195
|
|
- public ResponseBean ubdateTransaction( HttpSession session, TpTransaction tpTransaction){
|
|
194
|
+ @RequestMapping(value = "/ubDateAllTransaction", method = RequestMethod.PUT)
|
|
195
|
+ public ResponseBean ubdateTransaction(HttpSession session, TpTransaction tpTransaction) {
|
196
|
196
|
ResponseBean responseBean = new ResponseBean();
|
197
|
197
|
UserElement userElement = (UserElement) session.getAttribute(Constant.APP_USER_SESSION);
|
198
|
|
- Integer userId=userElement.getId();
|
199
|
|
- ResponseBean response=socialServiceI.ubdateTransaction(tpTransaction,userId);
|
|
198
|
+ Integer userId = userElement.getId();
|
|
199
|
+ ResponseBean response = socialServiceI.ubdateTransaction(tpTransaction, userId);
|
200
|
200
|
return response;
|
|
201
|
+ }
|
|
202
|
+ @ApiOperation(value = "评价工单内容以及评分", notes = "评价工单内容以及评分")
|
|
203
|
+ @ApiImplicitParams({@ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
|
204
|
+ @ApiImplicitParam(name = "tpTicket", value = "报修", required = true, dataType = "TpTicket"),
|
|
205
|
+ @ApiImplicitParam(paramType = "query", dataType = "integer", name = "ticketId", value = "工单Id")})
|
|
206
|
+ @RequestMapping(value = "/accessTicket/{communityId}", method = RequestMethod.POST)
|
|
207
|
+ public ResponseBean accessTicket (@PathVariable("communityId") Integer communityId, @RequestBody TpTicket
|
|
208
|
+ tpTicket, @RequestParam("ticketId") String ticketId){
|
|
209
|
+ ResponseBean responseBean = new ResponseBean();
|
|
210
|
+ socialServiceI.accessTicket(communityId, tpTicket, ticketId);
|
|
211
|
+ return responseBean;
|
|
212
|
+ }
|
201
|
213
|
|
202
|
|
- @ApiOperation(value = "评价工单内容以及评分", notes = "评价工单内容以及评分")
|
203
|
|
- @ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "integer", name = "communityId", value = "小区Id"),
|
204
|
|
- @ApiImplicitParam(name = "tpTicket", value = "报修", required = true, dataType ="TpTicket"),
|
205
|
|
- @ApiImplicitParam(paramType = "query", dataType = "integer", name = "ticketId", value = "工单Id")})
|
206
|
|
- @RequestMapping(value = "/accessTicket/{communityId}", method = RequestMethod.POST)
|
207
|
|
- public ResponseBean accessTicket(@PathVariable("communityId")Integer communityId, @RequestBody TpTicket tpTicket, @RequestParam("ticketId")String ticketId){
|
208
|
|
- ResponseBean responseBean = new ResponseBean();
|
209
|
|
- socialServiceI.accessTicket(communityId, tpTicket, ticketId);
|
210
|
|
- return responseBean;
|
211
|
214
|
}
|
212
|
|
-}
|
|
215
|
+
|