Showing
4 changed files
with
165 additions
and
0 deletions
@@ -826,6 +826,8 @@ public class GrassArticleServiceImpl implements IGrassArticleService { | @@ -826,6 +826,8 @@ public class GrassArticleServiceImpl implements IGrassArticleService { | ||
826 | grassArticleLabelDao.updateByPrimaryKeySelective(grassArticleLabel); | 826 | grassArticleLabelDao.updateByPrimaryKeySelective(grassArticleLabel); |
827 | clearArticleNewCache(articleId); | 827 | clearArticleNewCache(articleId); |
828 | logger.info("updateArticle updateByPrimaryKeySelective success! type={}", type); | 828 | logger.info("updateArticle updateByPrimaryKeySelective success! type={}", type); |
829 | + //后台文章发布成功需要给被at的用户发送站内信通知 | ||
830 | + sendInBoxForAtUsers(articleId,grassArticle.getAuthorUid(),false); | ||
829 | } | 831 | } |
830 | } | 832 | } |
831 | 833 | ||
@@ -1253,6 +1255,12 @@ public class GrassArticleServiceImpl implements IGrassArticleService { | @@ -1253,6 +1255,12 @@ public class GrassArticleServiceImpl implements IGrassArticleService { | ||
1253 | }else { | 1255 | }else { |
1254 | timerArticlePushJob.removeTimerArticleJob(articleId); | 1256 | timerArticlePushJob.removeTimerArticleJob(articleId); |
1255 | } | 1257 | } |
1258 | + | ||
1259 | + if(type == 2){ | ||
1260 | + //后台文章发布成功需要给被at的用户发送站内信通知 | ||
1261 | + sendInBoxForAtUsers(articleId,req.getAuthorUid(),false); | ||
1262 | + } | ||
1263 | + | ||
1256 | clearArticleNewCache(articleId); | 1264 | clearArticleNewCache(articleId); |
1257 | } | 1265 | } |
1258 | 1266 |
@@ -86,6 +86,17 @@ | @@ -86,6 +86,17 @@ | ||
86 | </tr> | 86 | </tr> |
87 | 87 | ||
88 | <tr style="height: 60px"> | 88 | <tr style="height: 60px"> |
89 | + <td style="width:100%; word-wrap:break-word;" > | ||
90 | + <a id="verifyUserBotton" class="btn btn-small" style="font-size: 18px; " >@用户信息查看</a> | ||
91 | + </td> | ||
92 | + </tr> | ||
93 | + | ||
94 | + <tr> | ||
95 | + <td style="width:100%; word-wrap:break-word;"> | ||
96 | + <div id="atUserInfo" style="float: left;margin-left: 30px;"></div></td> | ||
97 | + </tr> | ||
98 | + | ||
99 | + <tr style="height: 60px"> | ||
89 | <td> | 100 | <td> |
90 | <label style="font-size: 14px;">选择标签</label> <br> | 101 | <label style="font-size: 14px;">选择标签</label> <br> |
91 | <input id="labelId" name="labelId" class="easyui-combobox" style="width:600px; "/><br> | 102 | <input id="labelId" name="labelId" class="easyui-combobox" style="width:600px; "/><br> |
@@ -307,6 +318,47 @@ | @@ -307,6 +318,47 @@ | ||
307 | } | 318 | } |
308 | }); | 319 | }); |
309 | 320 | ||
321 | + $("#verifyUserBotton").linkbutton({ | ||
322 | + iconCls : "icon-search", | ||
323 | + onClick : function() { | ||
324 | + //发送请求 | ||
325 | + $.ajax({ | ||
326 | + type: "POST", | ||
327 | + url: serverContextPath + "/grassArticle/verifyAtUser", //提交到后端的url | ||
328 | + dataType: 'json', | ||
329 | + data:{ | ||
330 | + content : $("#content").val() | ||
331 | + }, | ||
332 | + success: function (result) { | ||
333 | + if(result.code == 200) { | ||
334 | + var userList = result.data; | ||
335 | + if(userList !=null && userList.length > 0){ | ||
336 | + | ||
337 | + var html = ''; | ||
338 | + for (i = 0; i < userList.length; i++) { | ||
339 | + var userInfo = userList[i]; | ||
340 | + var headIco = userInfo.headIco.substring(0, userInfo.headIco.indexOf("?")); | ||
341 | + html += "<span style='font-size: 15px;'>  <label>"+userInfo.uid+"</label></span>    "; | ||
342 | + html += "<span style='font-size: 15px;'>  <label>"+userInfo.nickName+"</label></span>    "; | ||
343 | + html += "<span style='font-size: 18px;'>  <img src='"+headIco+"' width='60px;' height='60px;'></span><br>"; | ||
344 | + } | ||
345 | + $("#atUserInfo").html(html); | ||
346 | + | ||
347 | + }else{ | ||
348 | + var html = '<span style="color:red;font-size: 15px;">没有查到有效的用户信息</span>'; | ||
349 | + $("#atUserInfo").html(html); | ||
350 | + } | ||
351 | + } | ||
352 | + else { | ||
353 | + var html = '<span style="color:red;font-size: 15px;">获取用户信息失败,请稍后重试</span>'; | ||
354 | + $("#atUserInfo").html(html); | ||
355 | + } | ||
356 | + | ||
357 | + } | ||
358 | + }); | ||
359 | + } | ||
360 | + }); | ||
361 | + | ||
310 | /*字数限制*/ | 362 | /*字数限制*/ |
311 | // $("#content").on("input propertychange", function() { | 363 | // $("#content").on("input propertychange", function() { |
312 | // debugger | 364 | // debugger |
@@ -86,6 +86,18 @@ | @@ -86,6 +86,18 @@ | ||
86 | <!--<div style="clear: both;"> <span id="content-count">0</span>/500</div>--> | 86 | <!--<div style="clear: both;"> <span id="content-count">0</span>/500</div>--> |
87 | </td> | 87 | </td> |
88 | </tr> | 88 | </tr> |
89 | + | ||
90 | + <tr style="height: 60px"> | ||
91 | + <td style="width:100%; word-wrap:break-word;" > | ||
92 | + <a id="verifyUserBotton" class="btn btn-small" style="font-size: 18px; " >@用户信息查看</a> | ||
93 | + </td> | ||
94 | + </tr> | ||
95 | + <tr> | ||
96 | + <td style="width:100%; word-wrap:break-word;"> | ||
97 | + <div id="atUserInfo" style="float: left;margin-left: 30px;"></div></td> | ||
98 | + </tr> | ||
99 | + | ||
100 | + | ||
89 | <tr style="height: 155px"> | 101 | <tr style="height: 155px"> |
90 | <td style="width:100%;"> | 102 | <td style="width:100%;"> |
91 | <span style="color:red">*</span><label style="font-size: 14px;">上传视频</label> <br> | 103 | <span style="color:red">*</span><label style="font-size: 14px;">上传视频</label> <br> |
@@ -271,6 +283,47 @@ | @@ -271,6 +283,47 @@ | ||
271 | } | 283 | } |
272 | }); | 284 | }); |
273 | 285 | ||
286 | + $("#verifyUserBotton").linkbutton({ | ||
287 | + iconCls : "icon-search", | ||
288 | + onClick : function() { | ||
289 | + //发送请求 | ||
290 | + $.ajax({ | ||
291 | + type: "POST", | ||
292 | + url: serverContextPath + "/grassArticle/verifyAtUser", //提交到后端的url | ||
293 | + dataType: 'json', | ||
294 | + data:{ | ||
295 | + content : $("#content").val() | ||
296 | + }, | ||
297 | + success: function (result) { | ||
298 | + if(result.code == 200) { | ||
299 | + var userList = result.data; | ||
300 | + if(userList !=null && userList.length > 0){ | ||
301 | + | ||
302 | + var html = ''; | ||
303 | + for (i = 0; i < userList.length; i++) { | ||
304 | + var userInfo = userList[i]; | ||
305 | + var headIco = userInfo.headIco.substring(0, userInfo.headIco.indexOf("?")); | ||
306 | + html += "<span style='font-size: 15px;'>  <label>"+userInfo.uid+"</label></span>    "; | ||
307 | + html += "<span style='font-size: 15px;'>  <label>"+userInfo.nickName+"</label></span>    "; | ||
308 | + html += "<span style='font-size: 18px;'>  <img src='"+headIco+"' width='60px;' height='60px;'></span><br>"; | ||
309 | + } | ||
310 | + $("#atUserInfo").html(html); | ||
311 | + | ||
312 | + }else{ | ||
313 | + var html = '<span style="color:red;font-size: 15px;">没有查到有效的用户信息</span>'; | ||
314 | + $("#atUserInfo").html(html); | ||
315 | + } | ||
316 | + } | ||
317 | + else { | ||
318 | + var html = '<span style="color:red;font-size: 15px;">获取用户信息失败,请稍后重试</span>'; | ||
319 | + $("#atUserInfo").html(html); | ||
320 | + } | ||
321 | + | ||
322 | + } | ||
323 | + }); | ||
324 | + } | ||
325 | + }); | ||
326 | + | ||
274 | $("#timerBotton").linkbutton({ | 327 | $("#timerBotton").linkbutton({ |
275 | iconCls : "icon-search", | 328 | iconCls : "icon-search", |
276 | onClick : function() { | 329 | onClick : function() { |
@@ -87,6 +87,17 @@ | @@ -87,6 +87,17 @@ | ||
87 | </tr> | 87 | </tr> |
88 | 88 | ||
89 | <tr style="height: 60px"> | 89 | <tr style="height: 60px"> |
90 | + <td style="width:100%; word-wrap:break-word;" > | ||
91 | + <a id="verifyUserBotton" class="btn btn-small" style="font-size: 18px; " >@用户信息查看</a> | ||
92 | + </td> | ||
93 | + </tr> | ||
94 | + | ||
95 | + <tr> | ||
96 | + <td style="width:100%; word-wrap:break-word;"> | ||
97 | + <div id="atUserInfo" style="float: left;margin-left: 30px;"></div></td> | ||
98 | + </tr> | ||
99 | + | ||
100 | + <tr style="height: 60px"> | ||
90 | <td> | 101 | <td> |
91 | <label style="font-size: 14px;">选择标签</label> <br> | 102 | <label style="font-size: 14px;">选择标签</label> <br> |
92 | <input id="labelId" name="labelId" class="easyui-combobox" style="width:600px; "/><br> | 103 | <input id="labelId" name="labelId" class="easyui-combobox" style="width:600px; "/><br> |
@@ -254,6 +265,47 @@ | @@ -254,6 +265,47 @@ | ||
254 | } | 265 | } |
255 | }); | 266 | }); |
256 | 267 | ||
268 | + $("#verifyUserBotton").linkbutton({ | ||
269 | + iconCls : "icon-search", | ||
270 | + onClick : function() { | ||
271 | + //发送请求 | ||
272 | + $.ajax({ | ||
273 | + type: "POST", | ||
274 | + url: serverContextPath + "/grassArticle/verifyAtUser", //提交到后端的url | ||
275 | + dataType: 'json', | ||
276 | + data:{ | ||
277 | + content : $("#content").val() | ||
278 | + }, | ||
279 | + success: function (result) { | ||
280 | + if(result.code == 200) { | ||
281 | + var userList = result.data; | ||
282 | + if(userList !=null && userList.length > 0){ | ||
283 | + | ||
284 | + var html = ''; | ||
285 | + for (i = 0; i < userList.length; i++) { | ||
286 | + var userInfo = userList[i]; | ||
287 | + var headIco = userInfo.headIco.substring(0, userInfo.headIco.indexOf("?")); | ||
288 | + html += "<span style='font-size: 15px;'>  <label>"+userInfo.uid+"</label></span>    "; | ||
289 | + html += "<span style='font-size: 15px;'>  <label>"+userInfo.nickName+"</label></span>    "; | ||
290 | + html += "<span style='font-size: 18px;'>  <img src='"+headIco+"' width='60px;' height='60px;'></span><br>"; | ||
291 | + } | ||
292 | + $("#atUserInfo").html(html); | ||
293 | + | ||
294 | + }else{ | ||
295 | + var html = '<span style="color:red;font-size: 15px;">没有查到有效的用户信息</span>'; | ||
296 | + $("#atUserInfo").html(html); | ||
297 | + } | ||
298 | + } | ||
299 | + else { | ||
300 | + var html = '<span style="color:red;font-size: 15px;">获取用户信息失败,请稍后重试</span>'; | ||
301 | + $("#atUserInfo").html(html); | ||
302 | + } | ||
303 | + | ||
304 | + } | ||
305 | + }); | ||
306 | + } | ||
307 | + }); | ||
308 | + | ||
257 | $("#articleUid").textbox({ | 309 | $("#articleUid").textbox({ |
258 | required: true, | 310 | required: true, |
259 | missingMessage: "发布用户不能为空", | 311 | missingMessage: "发布用户不能为空", |
-
Please register or login to post a comment