修改部分

master
星期八 6 years ago
parent 055b70ee14
commit 8328794823
  1. 1
      src/main/java/com/lq/cms/web/AdminBaseController.java
  2. 2
      src/main/java/com/lq/cms/web/wechat/WechatInfoController.java
  3. 11
      src/main/java/com/lq/code/util/sql/SqlConstant.java
  4. 2
      src/main/java/com/lq/code/util/sql/SqlUtil.java
  5. 10
      src/main/java/com/lq/entity/WechatInfo.java
  6. 22
      src/main/java/com/lq/wechat/mode/template/WechatTemplate.java
  7. 1
      src/main/java/com/lq/wechat/mode/template/WechatTemplateBuilder.java
  8. 3
      src/main/java/com/lq/wechat/mode/template/WechatTemplateConcreteBuilder.java
  9. 2
      src/main/java/com/lq/wechat/mode/template/WechatTemplateData.java
  10. 6
      src/main/webapp/WEB-INF/views/jsp/cms/wechat/info/index.jsp
  11. 4
      src/main/webapp/WEB-INF/views/jsp/cms/wechat/message/index.jsp

@ -17,6 +17,7 @@ import java.util.Map;
/**
* 管理后台 父类
* 强封装缺少扩展不建议采用
*/
public abstract class AdminBaseController<T,V extends AdminBaseVo> {

@ -33,8 +33,6 @@ public class WechatInfoController {
@Autowired
private WechatInfoService wechatInfoService;
@RequestMapping("/index")
public String index(){

@ -0,0 +1,11 @@
package com.lq.code.util.sql;
/**
* @Author: qi
* @Description:
* @Date: Create in 6:28 AM 2019/5/6
*/
public class SqlConstant {
public static final String SQL_SYMBOL = "_";
}

@ -27,7 +27,7 @@ public class SqlUtil {
continue;
}
if (Character.isUpperCase(charArray[i])){
strBuffer.append("_"+charArray[i]);
strBuffer.append(SqlConstant.SQL_SYMBOL+charArray[i]);
}else {
strBuffer.append(charArray[i]);
}

@ -66,7 +66,7 @@ public class WechatInfo extends IdEntity {
private Integer wechatInfoType;
/**
* 认证状态
* 微信公众号在未认证状态下需求功能接口受限
* 微信公众号在未认证状态下部分功能接口受限
* @Link WechatInfoCertificationTypeEnum
*/
private Integer certification;
@ -174,4 +174,12 @@ public class WechatInfo extends IdEntity {
public void setWechatInfoType(Integer wechatInfoType) {
this.wechatInfoType = wechatInfoType;
}
public Integer getCertification() {
return certification;
}
public void setCertification(Integer certification) {
this.certification = certification;
}
}

@ -17,15 +17,27 @@ import java.util.Map;
color 模板内容字体颜色不填默认为黑色
*/
public class WechatTemplate {
/**
* 发送用户openId
*/
private String touser;
/**
* 模版ID
*/
private String template_id;
/**
* 模版跳转链接
*/
private String url;
/**
* 跳转小程序所需数据对象无需跳转小程序则不用传该数据
*/
private WechatTemplateMiniprogram miniprogram;
/**
* 模版数据
* key:
* value:
*/
private Map<String,Object> data;

@ -3,6 +3,7 @@ package com.lq.wechat.mode.template;
import java.util.Map;
/**
* 微信公众号模版消息构造器
* Created by qi_liang on 2018/6/27.
*/
public interface WechatTemplateBuilder {

@ -4,6 +4,7 @@ import java.util.HashMap;
import java.util.Map;
/**
* 构造器默认实现类
* Created by qi_liang on 2018/6/27.
*/
public class WechatTemplateConcreteBuilder implements WechatTemplateBuilder {
@ -82,7 +83,7 @@ public class WechatTemplateConcreteBuilder implements WechatTemplateBuilder {
@Override
public WechatTemplateBuilder appendKeyWord(String value) {
appendKeyWord(value,DEFAULT_COLORD);
return null;
return this;
}
@Override

@ -1,7 +1,7 @@
package com.lq.wechat.mode.template;
/**
*
* 消息模版内容
* Created by qi_liang on 2018/6/27.
*/
public class WechatTemplateData {

@ -35,13 +35,13 @@
{field:'id',title:'编号',width:35},
{field:'wechatName',title:'微信名称',width:100},
{field:'wechatOpenId',title:'微信openId',width:100},
{field:'appId',title:'appId',width:100},
{field:'appSecpet',title:'开发者密码',width:100},
{field:'appId',title:'appId',width:120},
{field:'appSecpet',title:'开发者密码',width:200},
{field:'token',title:'令牌',width:100},
{field:'wechatInfoTypeStr',title:'类型',width:80},
{field:'encodingTypeStr',title:'消息模式',width:100},
{field:'encodingAesKey',title:'消息加密key',width:100},
{field:'createTimeStr',title:'创建时间',width:150},
{field:'createTimeStr',title:'创建时间',width:130},
{field:'url',title:'对接url',width:300},
]],
toolbar: [{

@ -28,8 +28,8 @@
{field:'content',title:'消息内容',width:100},
{field:'imageUrl',title:'图片路径',width:100},
{field:'mediaId',title:'素材ID',width:100},
{field:'toUrl',title:'跳转路径',width:100},
{field:'createTimeStr',title:'创建时间',width:150},
{field:'toUrl',title:'跳转路径',width:150},
{field:'createTimeStr',title:'创建时间',width:120},
{field:'editId',title:'编辑',width:200,formatter:function (value,row,index) {
var html="<a href='#' onclick='openEdit(\"编辑\","+row.id+")'>编辑</a>&nbsp&nbsp";
html+="<a href='#' onclick='del("+row.id+")'>删除</a>&nbsp&nbsp";

Loading…
Cancel
Save