修改注释说明

master
星期八 5 years ago
parent 63f85ef9ea
commit 4a6279ca03
  1. 60
      src/main/java/com/lq/cms/vo/WechatUserVo.java
  2. 1
      src/main/java/com/lq/code/service/BaseService.java
  3. 25
      src/main/java/com/lq/code/service/impl/BaseServiceImpl.java
  4. 6
      src/main/java/com/lq/code/web/BaseController.java
  5. 9
      src/main/java/com/lq/wechat/mode/template/WechatTemplateData.java

@ -9,35 +9,65 @@ import java.util.Date;
*/ */
public class WechatUserVo extends AdminBaseVo{ public class WechatUserVo extends AdminBaseVo{
//用户openId /**
* 用户openId
*/
private String openId; private String openId;
//昵称 /**
* 昵称
*/
private String nickName; private String nickName;
//性别 /**
* 性别
*/
private Integer sex; private Integer sex;
//语言 /**
* 语言
*/
private String language; private String language;
//城市 /**
* 城市
*/
private String city; private String city;
//省份 /**
* 省份
*/
private String province; private String province;
//国家 /**
* 国家
*/
private String country; private String country;
//头像地址 /**
* 头像地址
*/
private String headImgUrl; private String headImgUrl;
//用户关注时间(多次关注,取最后一次时间) /**
* 用户关注时间(多次关注取最后一次时间)
*/
private Date subscribeTime; private Date subscribeTime;
//用户对应微信开放平台账号(只有绑定了开放平台账号,才出现该字段) /**
* 用户对应微信开放平台账号(只有绑定了开放平台账号才出现该字段)
*/
private String unionid; private String unionid;
//运营者对用户备注 /**
* 运营者对用户备注
*/
private String remark; private String remark;
//用户对应分组 /**
* 用户对应分组
*/
private String groupid; private String groupid;
//用户对应的标签 /**
* 用户对应的标签
*/
private String tagidId; private String tagidId;
//用户关注渠道 /**
* 用户关注渠道
*/
private String sybscribeScene; private String sybscribeScene;
//关联的微信ID /**
* 关联的微信ID
*/
private Long wechatInfoId; private Long wechatInfoId;
public String getOpenId() { public String getOpenId() {

@ -7,6 +7,7 @@ import java.util.List;
/** /**
* Created by qi_liang on 2018/6/21. * Created by qi_liang on 2018/6/21.
* @author qi
*/ */
public interface BaseService<T> { public interface BaseService<T> {

@ -7,6 +7,7 @@ import org.springframework.transaction.annotation.Transactional;
import java.util.List; import java.util.List;
/** /**
* @author qi
* Created by qi_liang on 2018/6/21. * Created by qi_liang on 2018/6/21.
*  采用jdk8 默认方法所以该实现类废弃 *  采用jdk8 默认方法所以该实现类废弃
*/ */
@ -26,43 +27,43 @@ public abstract class BaseServiceImpl<T> implements BaseService<T>{
} }
@Override @Override
@Transactional @Transactional(rollbackFor = Exception.class)
public Long save(T entity) { public Long save(T entity) {
return getBaseDao().save(entity); return getBaseDao().save(entity);
} }
@Override @Override
@Transactional @Transactional(rollbackFor = Exception.class)
public void update(T entity) { public void update(T entity) {
getBaseDao().update(entity); getBaseDao().update(entity);
} }
@Override @Override
@Transactional @Transactional(rollbackFor = Exception.class)
public void delete(Long id) { public void delete(Long id) {
getBaseDao().delete(id); getBaseDao().delete(id);
} }
@Override @Override
@Transactional @Transactional(rollbackFor = Exception.class)
public void batchSave(List<T> entitylist) { public void batchSave(List<T> entityList) {
getBaseDao().batchSave(entitylist); getBaseDao().batchSave(entityList);
} }
@Override @Override
@Transactional @Transactional(rollbackFor = Exception.class)
public void batchUpdate(List<T> entitylist) { public void batchUpdate(List<T> entityList) {
getBaseDao().batchUpdate(entitylist); getBaseDao().batchUpdate(entityList);
} }
@Override @Override
@Transactional @Transactional(rollbackFor = Exception.class)
public void batchDelete(List<T> entitylist) { public void batchDelete(List<T> entityList) {
getBaseDao().batchDelete(entitylist); getBaseDao().batchDelete(entityList);
} }
} }

@ -15,16 +15,12 @@ public class BaseController {
@ResponseBody @ResponseBody
public AjaxResult handleException(Exception e) { public AjaxResult handleException(Exception e) {
e.printStackTrace(); e.printStackTrace();
AjaxResult ajaxResult= getAjaxResult(); AjaxResult ajaxResult= AjaxResult.getSuccessInstance();
ajaxResult.setSuccess(false); ajaxResult.setSuccess(false);
ajaxResult.setMsg(e.getMessage()); ajaxResult.setMsg(e.getMessage());
return ajaxResult; return ajaxResult;
} }
//返回ajax数据结构
public AjaxResult getAjaxResult(){
return new AjaxResult(true,"操作成功","");
}
} }

@ -3,11 +3,16 @@ package com.lq.wechat.mode.template;
/** /**
* 消息模版内容 * 消息模版内容
* Created by qi_liang on 2018/6/27. * Created by qi_liang on 2018/6/27.
* @author qi
*/ */
public class WechatTemplateData { public class WechatTemplateData {
//内容 /**
* 内容
*/
private String value; private String value;
//字体样式 /**
* 字体样式
*/
private String color; private String color;
public String getValue() { public String getValue() {

Loading…
Cancel
Save