소스 검색

Merge branch 'cpq-dev' of wangfan/adweb3-server into master

chenpeiqing 1 개월 전
부모
커밋
adc1da98bb

+ 10 - 13
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/message/mapper/SysMessageTemplateMapper.java

@@ -1,24 +1,21 @@
 package org.jeecg.modules.message.mapper;
 package org.jeecg.modules.message.mapper;
 
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import java.util.List;
 import org.apache.ibatis.annotations.Select;
 import org.apache.ibatis.annotations.Select;
 import org.jeecg.modules.message.entity.SysMessageTemplate;
 import org.jeecg.modules.message.entity.SysMessageTemplate;
 
 
-import java.util.List;
-
 /**
 /**
- * @Description: 消息模板
- * @Author: jeecg-boot
- * @Date:  2019-04-09
- * @Version: V1.0
+ * @Description: 消息模板 @Author: jeecg-boot @Date: 2019-04-09 @Version: V1.0
  */
  */
 public interface SysMessageTemplateMapper extends BaseMapper<SysMessageTemplate> {
 public interface SysMessageTemplateMapper extends BaseMapper<SysMessageTemplate> {
 
 
-    /**
-     * 通过模板CODE查询消息模板
-     * @param code 模板CODE
-     * @return List<SysMessageTemplate>
-     */
-    @Select("SELECT * FROM SYS_SMS_TEMPLATE WHERE TEMPLATE_CODE = #{code}")
-    List<SysMessageTemplate> selectByCode(String code);
+  /**
+   * 通过模板CODE查询消息模板
+   *
+   * @param code 模板CODE
+   * @return List<SysMessageTemplate>
+   */
+  @Select("SELECT * FROM sys_sms_template WHERE template_code = #{code}")
+  List<SysMessageTemplate> selectByCode(String code);
 }
 }

+ 162 - 220
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/entity/SysUser.java

@@ -6,6 +6,9 @@ import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableLogic;
 import com.baomidou.mybatisplus.annotation.TableLogic;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
 import lombok.Data;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.EqualsAndHashCode;
 import lombok.experimental.Accessors;
 import lombok.experimental.Accessors;
@@ -13,16 +16,9 @@ import org.jeecg.common.aspect.annotation.Dict;
 import org.jeecgframework.poi.excel.annotation.Excel;
 import org.jeecgframework.poi.excel.annotation.Excel;
 import org.springframework.format.annotation.DateTimeFormat;
 import org.springframework.format.annotation.DateTimeFormat;
 
 
-import java.io.Serializable;
-import java.util.Date;
-import java.util.List;
-
 /**
 /**
- * <p>
- * 用户表
- * </p>
+ * 用户表 @Author scott
  *
  *
- * @Author scott
  * @since 2018-12-20
  * @since 2018-12-20
  */
  */
 @Data
 @Data
@@ -30,216 +26,162 @@ import java.util.List;
 @Accessors(chain = true)
 @Accessors(chain = true)
 public class SysUser implements Serializable {
 public class SysUser implements Serializable {
 
 
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * id
-     */
-    @TableId(type = IdType.ASSIGN_ID)
-    private String id;
-
-    /**
-     * 登录账号
-     */
-    @Excel(name = "登录账号", width = 15)
-    private String username;
-
-    /**
-     * 真实姓名
-     */
-    @Excel(name = "真实姓名", width = 15)
-    private String realname;
-
-    /**
-     * 密码
-     */
-    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
-    private String password;
-
-    /**
-     * md5密码盐
-     */
-    @JsonProperty(access = JsonProperty.Access.READ_WRITE)
-    private String salt;
-
-    /**
-     * 头像
-     */
-    @Excel(name = "头像", width = 15, type = 2)
-    private String avatar;
-
-    /**
-     * 生日
-     */
-    @Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
-    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
-    @DateTimeFormat(pattern = "yyyy-MM-dd")
-    private Date birthday;
-
-    /**
-     * 性别(1:男 2:女)
-     */
-    @Excel(name = "性别", width = 15, dicCode = "sex")
-    @Dict(dicCode = "sex")
-    private Integer sex;
-
-    /**
-     * 电子邮件
-     */
-    @Excel(name = "电子邮件", width = 15)
-    private String email;
-
-    /**
-     * 电话
-     */
-    @Excel(name = "电话", width = 15)
-    private String phone;
-
-    /**
-     * 登录选择部门编码
-     */
-    private String orgCode;
-    /**
-     * 登录选择租户ID
-     */
-    private Integer loginTenantId;
-
-    /**
-     * 部门名称
-     */
-    private transient String orgCodeTxt;
-
-    /**
-     * 状态(1:正常  2:冻结 )
-     */
-    @Excel(name = "状态", width = 15, dicCode = "user_status")
-    @Dict(dicCode = "user_status")
-    private Integer status;
-
-    /**
-     * 删除状态(0,正常,1已删除)
-     */
-    @Excel(name = "删除状态", width = 15, dicCode = "del_flag")
-    @TableLogic
-    private Integer delFlag;
-
-    /**
-     * 工号,唯一键
-     */
-    @Excel(name = "工号", width = 15)
-    private String workNo;
-
-    /**
-     * 职务,关联职务表
-     */
-    @Excel(name = "职务", width = 15)
-    @Dict(dictTable = "sys_position", dicText = "name", dicCode = "id")
-    @TableField(exist = false)
-    private String post;
-
-    /**
-     * 座机号
-     */
-    @Excel(name = "座机号", width = 15)
-    private String telephone;
-
-    /**
-     * 创建人
-     */
-    private String createBy;
-
-    /**
-     * 创建时间
-     */
-    private Date createTime;
-
-    /**
-     * 更新人
-     */
-    private String updateBy;
-
-    /**
-     * 更新时间
-     */
-    private Date updateTime;
-    /**
-     * 同步工作流引擎1同步0不同步
-     */
-    private Integer activitiSync;
-
-    /**
-     * 身份(0 普通成员 1 上级)
-     */
-    @Excel(name = "(1普通成员 2上级)", width = 15)
-    private Integer userIdentity;
-
-    /**
-     * 负责部门
-     */
-    @Excel(name = "负责部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
-    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
-    private String departIds;
-
-    /**
-     * 多租户ids临时用,不持久化数据库(数据库字段不存在)
-     */
-    @TableField(exist = false)
-    private String relTenantIds;
-
-    /**
-     * 多租户ids临时用,不持久化数据库(数据库字段不存在)
-     */
-    @TableField(exist = false)
-    private transient String relTenantNames;
-
-    /**
-     * 设备id uniapp推送用
-     */
-    private String clientId;
-
-    /**
-     * 用户渠道来源code
-     */
-    private String oemCode;
-
-    /**
-     * 是否有主账户
-     */
-    private Integer hasMasterAccount;
-
-    /**
-     * 登录首页地址
-     */
-    @TableField(exist = false)
-    private String homePath;
-
-    /**
-     * 职位名称
-     */
-    @TableField(exist = false)
-    private String postText;
-
-    /**
-     * 流程状态
-     */
-    private String bpmStatus;
-
-    /**
-     * 是否已经绑定第三方
-     */
-    @TableField(exist = false)
-    private boolean izBindThird;
-
-    /**
-     * 用户角色
-     */
-    @TableField(exist = false)
-    private List<String> roles;
-
-
-    /**
-     * 用户角色
-     */
-    @TableField(exist = false)
-    private transient String roleNames;
+  private static final long serialVersionUID = 1L;
+
+  /** id */
+  @TableId(type = IdType.ASSIGN_ID)
+  private String id;
+
+  /** 登录账号 */
+  @Excel(name = "登录账号", width = 15)
+  private String username;
+
+  /** 真实姓名 */
+  @Excel(name = "真实姓名", width = 15)
+  private String realname;
+
+  /** 企业全称 */
+  @Excel(name = "企业全称", width = 15)
+  private String companyName;
+
+  /** 社会信用代码 */
+  @Excel(name = "社会信用代码", width = 15)
+  private String socialCreditCode;
+
+  /** 头像 */
+  @Excel(name = "营业执照", width = 15, type = 2)
+  private String businessLicense;
+
+  /** 密码 */
+  @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
+  private String password;
+
+  /** md5密码盐 */
+  @JsonProperty(access = JsonProperty.Access.READ_WRITE)
+  private String salt;
+
+  /** 头像 */
+  @Excel(name = "头像", width = 15, type = 2)
+  private String avatar;
+
+  /** 生日 */
+  @Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
+  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
+  @DateTimeFormat(pattern = "yyyy-MM-dd")
+  private Date birthday;
+
+  /** 性别(1:男 2:女) */
+  @Excel(name = "性别", width = 15, dicCode = "sex")
+  @Dict(dicCode = "sex")
+  private Integer sex;
+
+  /** 电子邮件 */
+  @Excel(name = "电子邮件", width = 15)
+  private String email;
+
+  /** 电话 */
+  @Excel(name = "电话", width = 15)
+  private String phone;
+
+  /** 登录选择部门编码 */
+  private String orgCode;
+
+  /** 登录选择租户ID */
+  private Integer loginTenantId;
+
+  /** 部门名称 */
+  private transient String orgCodeTxt;
+
+  /** 状态(1:正常 2:冻结 ) */
+  @Excel(name = "状态", width = 15, dicCode = "user_status")
+  @Dict(dicCode = "user_status")
+  private Integer status;
+
+  /** 删除状态(0,正常,1已删除) */
+  @Excel(name = "删除状态", width = 15, dicCode = "del_flag")
+  @TableLogic
+  private Integer delFlag;
+
+  /** 工号,唯一键 */
+  @Excel(name = "工号", width = 15)
+  private String workNo;
+
+  /** 职务,关联职务表 */
+  @Excel(name = "职务", width = 15)
+  @Dict(dictTable = "sys_position", dicText = "name", dicCode = "id")
+  @TableField(exist = false)
+  private String post;
+
+  /** 座机号 */
+  @Excel(name = "座机号", width = 15)
+  private String telephone;
+
+  /** 创建人 */
+  private String createBy;
+
+  /** 创建时间 */
+  private Date createTime;
+
+  /** 更新人 */
+  private String updateBy;
+
+  /** 更新时间 */
+  private Date updateTime;
+
+  /** 同步工作流引擎1同步0不同步 */
+  private Integer activitiSync;
+
+  /** 身份(0 普通成员 1 上级) */
+  @Excel(name = "(1普通成员 2上级)", width = 15)
+  private Integer userIdentity;
+
+  /** 负责部门 */
+  @Excel(
+      name = "负责部门",
+      width = 15,
+      dictTable = "sys_depart",
+      dicText = "depart_name",
+      dicCode = "id")
+  @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
+  private String departIds;
+
+  /** 多租户ids临时用,不持久化数据库(数据库字段不存在) */
+  @TableField(exist = false)
+  private String relTenantIds;
+
+  /** 多租户ids临时用,不持久化数据库(数据库字段不存在) */
+  @TableField(exist = false)
+  private transient String relTenantNames;
+
+  /** 设备id uniapp推送用 */
+  private String clientId;
+
+  /** 用户渠道来源code */
+  private String oemCode;
+
+  /** 是否有主账户 */
+  private Integer hasMasterAccount;
+
+  /** 登录首页地址 */
+  @TableField(exist = false)
+  private String homePath;
+
+  /** 职位名称 */
+  @TableField(exist = false)
+  private String postText;
+
+  /** 流程状态 */
+  private String bpmStatus;
+
+  /** 是否已经绑定第三方 */
+  @TableField(exist = false)
+  private boolean izBindThird;
+
+  /** 用户角色 */
+  @TableField(exist = false)
+  private List<String> roles;
+
+  /** 用户角色 */
+  @TableField(exist = false)
+  private transient String roleNames;
 }
 }