微信公众号消息

master
星期八 6 years ago
parent 757c3bc66d
commit c8e867dc1d
  1. 36
      src/main/java/com/lq/cms/vo/WechatMessageBo.java
  2. 6
      src/main/java/com/lq/cms/web/wechat/WechatMessageController.java
  3. 4
      src/main/webapp/WEB-INF/views/jsp/cms/wechat/rule/index.jsp

@ -0,0 +1,36 @@
package com.lq.cms.vo;
import java.util.List;
/**
* @Author: qi
* @Description:
* @Date: Create in 6:49 AM 2019/5/20
*/
public class WechatMessageBo {
/**
* 微信公众号消息总数
*/
private Integer wechatMessageCount;
/**
* 公众号消息
*/
private List<WechatMessageVo> wechatMessageVoList;
public Integer getWechatMessageCount() {
return wechatMessageCount;
}
public void setWechatMessageCount(Integer wechatMessageCount) {
this.wechatMessageCount = wechatMessageCount;
}
public List<WechatMessageVo> getWechatMessageVoList() {
return wechatMessageVoList;
}
public void setWechatMessageVoList(List<WechatMessageVo> wechatMessageVoList) {
this.wechatMessageVoList = wechatMessageVoList;
}
}

@ -3,6 +3,7 @@ package com.lq.cms.web.wechat;
import com.lq.cms.emun.WechatMessageTypeEnum;
import com.lq.cms.service.AdminBaseService;
import com.lq.cms.service.WechatMessageService;
import com.lq.cms.vo.WechatMessageBo;
import com.lq.cms.vo.WechatMessageVo;
import com.lq.cms.web.AdminBaseController;
import com.lq.code.entity.AjaxResult;
@ -47,8 +48,11 @@ public class WechatMessageController extends AdminBaseController<WechatMessage,W
@ResponseBody
public Object findAll(){
List<WechatMessageVo> wechatMessageVoList = wechatMessageService.findAllWechatMessageVo();
WechatMessageBo wechatMessageBo = new WechatMessageBo();
wechatMessageBo.setWechatMessageVoList(wechatMessageVoList);
wechatMessageBo.setWechatMessageCount(wechatMessageVoList.size());
AjaxResult ajaxResult = new AjaxResult();
ajaxResult.setData(wechatMessageVoList);
ajaxResult.setData(wechatMessageBo);
return ajaxResult;
}

@ -443,8 +443,6 @@
});
//字数显示
function showTextNum(textArceId,textMessageId,textErrorId){
var str = $(textArceId).html();
@ -635,7 +633,7 @@
function appendAlertHtml(data){
var isShow ;
var wechatMessageList = data;
var wechatMessageList = data.wechatMessageVoList;
var html = '<div class="alert"><div class="left-navigation"><p>图文('+data.wechatMessageCount+')</p></div>';
html += ' <div class="alert-content">';
for(var i = 0 ;i < wechatMessageList.length;i++){

Loading…
Cancel
Save