MISBoot快速开发平台

Model类

一、通过自动生成代码功能生成代码

把生成出来的model类复制到项目对应的文件夹下。

二、示例

示例
package cn.ewsd.mdata.model;

    import java.io.Serializable;
    import java.util.Date;
    import org.apache.commons.lang.builder.ReflectionToStringBuilder;
    import cn.ewsd.common.model.MCoreBase;
    import javax.persistence.Table;

    /**
     *
     *
     * @Author zhaoxiace
     * @Email zhaoxiace@ewsd.cn
     * @Date 2019-07-16 03:29:31
     */
    @Table(name="sys_user")
    public class SysUser extends MCoreBase{
        private static final long serialVersionUID = 1L;

                    // 是否删除
            private Integer isDel;
                    // 备注
            private String remark;
                    // 生日
            private String birthday;
                    //学位
            private String degree;
                    // 学历
            private String education;
                    //省份
            private String province;
                    //城市
            private String city;
                    //固定电话
            private String telephone;
                    //手机
            private String cellphone;
                    //电子邮箱
            private String email;
                    //民族
            private String  nation;
                    //籍贯
            private String nativePlace;
                    //昵称
            private String nickName;
                    //组织机构ID
            private String orgId;
                    //组织机构名称
            private String orgName;
                    //职务
            private String post;
                    //毕业院校
            private String school;
                    //用户帐户
            private String userAccount;
                    //角色授权
            private String userGroup;
                    //数据授权
            private String dataAuth;
                    //用户名称
            private String userName;
                    //用户ID
            private String userNameId;
                    //密码
            private String password;
                    //
            private String idCardNo;
                    //年龄
            private Integer age;
                    //
            private String idCard;
                    //性别
            private String sex;
                    //状态
            private Integer status;
                    // 职务值
            private String posttext;
                    //
            private String headimgurl;
                    // 创建时间
            @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
            )
             @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
           )
            private Date createtime;
                    // 创建人ID
            private String creatorid;
                    //
            private String dataauth;
                    //修改人ID
            private String modifierid;
                    // 修改时间
            @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
            )
            @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
           )
            private Date modifytime;
                    //
            private String nativeplace;
                    //用户分组
            private String usergroup;
                    //
            private String nickname;
                    //职务名称
            private String postText;
                    // 用户在线状态
            private String onlineStatus;
                    // 个新签名
            private String sign;
                    // 头像
            private String avatar;
                    //国家
            private String country;
                    //所属区域
            private String zone;
                    //
            private String openid;
                    //
            private String unionid;
                    //区县
            private String district;


        /**
         * 设置:
         */
        public void setIsDel(Integer isDel) {
            this.isDel = isDel;
        }

        /**
         * 获取:
         */
        public Integer getIsDel() {
            return isDel;
        }

        /**
         * 设置:
         */
        public void setRemark(String remark) {
            this.remark = remark;
        }

        /**
         * 获取:
         */
        public String getRemark() {
            return remark;
        }

        /**
         * 设置:
         */
        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        /**
         * 获取:
         */
        public String getBirthday() {
            return birthday;
        }

        /**
         * 设置:
         */
        public void setDegree(String degree) {
            this.degree = degree;
        }

        /**
         * 获取:
         */
        public String getDegree() {
            return degree;
        }

        /**
         * 设置:
         */
        public void setEducation(String education) {
            this.education = education;
        }

        /**
         * 获取:
         */
        public String getEducation() {
            return education;
        }

        /**
         * 设置:
         */
        public void setProvince(String province) {
            this.province = province;
        }

        /**
         * 获取:
         */
        public String getProvince() {
            return province;
        }

        /**
         * 设置:
         */
        public void setCity(String city) {
            this.city = city;
        }

        /**
         * 获取:
         */
        public String getCity() {
            return city;
        }

        /**
         * 设置:
         */
        public void setTelephone(String telephone) {
            this.telephone = telephone;
        }

        /**
         * 获取:
         */
        public String getTelephone() {
            return telephone;
        }

        /**
         * 设置:
         */
        public void setCellphone(String cellphone) {
            this.cellphone = cellphone;
        }

        /**
         * 获取:
         */
        public String getCellphone() {
            return cellphone;
        }

        /**
         * 设置:
         */
        public void setEmail(String email) {
            this.email = email;
        }

        /**
         * 获取:
         */
        public String getEmail() {
            return email;
        }

        /**
         * 设置:
         */
        public void setNation(String nation) {
            this.nation = nation;
        }

        /**
         * 获取:
         */
        public String getNation() {
            return nation;
        }

        /**
         * 设置:
         */
        public void setNativePlace(String nativePlace) {
            this.nativePlace = nativePlace;
        }

        /**
         * 获取:
         */
        public String getNativePlace() {
            return nativePlace;
        }

        /**
         * 设置:
         */
        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        /**
         * 获取:
         */
        public String getNickName() {
            return nickName;
        }

        /**
         * 设置:
         */
        public void setOrgId(String orgId) {
            this.orgId = orgId;
        }

        /**
         * 获取:
         */
        public String getOrgId() {
            return orgId;
        }

        /**
         * 设置:
         */
        public void setOrgName(String orgName) {
            this.orgName = orgName;
        }

        /**
         * 获取:
         */
        public String getOrgName() {
            return orgName;
        }

        /**
         * 设置:
         */
        public void setPost(String post) {
            this.post = post;
        }

        /**
         * 获取:
         */
        public String getPost() {
            return post;
        }

        /**
         * 设置:
         */
        public void setSchool(String school) {
            this.school = school;
        }

        /**
         * 获取:
         */
        public String getSchool() {
            return school;
        }

        /**
         * 设置:
         */
        public void setUserAccount(String userAccount) {
            this.userAccount = userAccount;
        }

        /**
         * 获取:
         */
        public String getUserAccount() {
            return userAccount;
        }

        /**
         * 设置:
         */
        public void setUserGroup(String userGroup) {
            this.userGroup = userGroup;
        }

        /**
         * 获取:
         */
        public String getUserGroup() {
            return userGroup;
        }

        /**
         * 设置:
         */
        public void setDataAuth(String dataAuth) {
            this.dataAuth = dataAuth;
        }

        /**
         * 获取:
         */
        public String getDataAuth() {
            return dataAuth;
        }

        /**
         * 设置:
         */
        public void setUserName(String userName) {
            this.userName = userName;
        }

        /**
         * 获取:
         */
        public String getUserName() {
            return userName;
        }

        /**
         * 设置:
         */
        public void setUserNameId(String userNameId) {
            this.userNameId = userNameId;
        }

        /**
         * 获取:
         */
        public String getUserNameId() {
            return userNameId;
        }

        /**
         * 设置:
         */
        public void setPassword(String password) {
            this.password = password;
        }

        /**
         * 获取:
         */
        public String getPassword() {
            return password;
        }

        /**
         * 设置:
         */
        public void setIdCardNo(String idCardNo) {
            this.idCardNo = idCardNo;
        }

        /**
         * 获取:
         */
        public String getIdCardNo() {
            return idCardNo;
        }

        /**
         * 设置:
         */
        public void setAge(Integer age) {
            this.age = age;
        }

        /**
         * 获取:
         */
        public Integer getAge() {
            return age;
        }

        /**
         * 设置:
         */
        public void setIdCard(String idCard) {
            this.idCard = idCard;
        }

        /**
         * 获取:
         */
        public String getIdCard() {
            return idCard;
        }

        /**
         * 设置:
         */
        public void setSex(String sex) {
            this.sex = sex;
        }

        /**
         * 获取:
         */
        public String getSex() {
            return sex;
        }

        /**
         * 设置:
         */
        public void setStatus(Integer status) {
            this.status = status;
        }

        /**
         * 获取:
         */
        public Integer getStatus() {
            return status;
        }

        /**
         * 设置:职务值
         */
        public void setPosttext(String posttext) {
            this.posttext = posttext;
        }

        /**
         * 获取:职务值
         */
        public String getPosttext() {
            return posttext;
        }

        /**
         * 设置:
         */
        public void setHeadimgurl(String headimgurl) {
            this.headimgurl = headimgurl;
        }

        /**
         * 获取:
         */
        public String getHeadimgurl() {
            return headimgurl;
        }

        /**
         * 设置:
         */
        public void setCreatetime(Date createtime) {
            this.createtime = createtime;
        }

        /**
         * 获取:
         */
        public Date getCreatetime() {
            return createtime;
        }

        /**
         * 设置:
         */
        public void setCreatorid(String creatorid) {
            this.creatorid = creatorid;
        }

        /**
         * 获取:
         */
        public String getCreatorid() {
            return creatorid;
        }

        /**
         * 设置:
         */
        public void setDataauth(String dataauth) {
            this.dataauth = dataauth;
        }

        /**
         * 获取:
         */
        public String getDataauth() {
            return dataauth;
        }

        /**
         * 设置:
         */
        public void setIdcard(String idcard) {
            this.idcard = idcard;
        }

        /**
         * 获取:
         */
        public String getIdcard() {
            return idcard;
        }

        /**
         * 设置:
         */
        public void setModifierid(String modifierid) {
            this.modifierid = modifierid;
        }

        /**
         * 获取:
         */
        public String getModifierid() {
            return modifierid;
        }

        /**
         * 设置:
         */
        public void setModifytime(Date modifytime) {
            this.modifytime = modifytime;
        }

        /**
         * 获取:
         */
        public Date getModifytime() {
            return modifytime;
        }

        /**
         * 设置:
         */
        public void setNativeplace(String nativeplace) {
            this.nativeplace = nativeplace;
        }

        /**
         * 获取:
         */
        public String getNativeplace() {
            return nativeplace;
        }

        /**
         * 设置:
         */
        public void setOrgid(String orgid) {
            this.orgid = orgid;
        }

        /**
         * 获取:
         */
        public String getOrgid() {
            return orgid;
        }

        /**
         * 设置:
         */
        public void setOrgname(String orgname) {
            this.orgname = orgname;
        }

        /**
         * 获取:
         */
        public String getOrgname() {
            return orgname;
        }


        /**
         * 设置:
         */
        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        /**
         * 获取:
         */
        public String getNickname() {
            return nickname;
        }

        /**
         * 设置:
         */
        public void setPostText(String postText) {
            this.postText = postText;
        }

        /**
         * 获取:
         */
        public String getPostText() {
            return postText;
        }

        /**
         * 设置:用户在线状态
         */
        public void setOnlineStatus(String onlineStatus) {
            this.onlineStatus = onlineStatus;
        }

        /**
         * 获取:用户在线状态
         */
        public String getOnlineStatus() {
            return onlineStatus;
        }

        /**
         * 设置:个新签名
         */
        public void setSign(String sign) {
            this.sign = sign;
        }

        /**
         * 获取:个新签名
         */
        public String getSign() {
            return sign;
        }

        /**
         * 设置:头像
         */
        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        /**
         * 获取:头像
         */
        public String getAvatar() {
            return avatar;
        }

        /**
         * 设置:
         */
        public void setCountry(String country) {
            this.country = country;
        }

        /**
         * 获取:
         */
        public String getCountry() {
            return country;
        }

        /**
         * 设置:
         */
        public void setZone(String zone) {
            this.zone = zone;
        }

        /**
         * 获取:
         */
        public String getZone() {
            return zone;
        }

        /**
         * 设置:
         */
        public void setOpenid(String openid) {
            this.openid = openid;
        }

        /**
         * 获取:
         */
        public String getOpenid() {
            return openid;
        }

        /**
         * 设置:
         */
        public void setUnionid(String unionid) {
            this.unionid = unionid;
        }

        /**
         * 获取:
         */
        public String getUnionid() {
            return unionid;
        }

        /**
         * 设置:
         */
        public void setDistrict(String district) {
            this.district = district;
        }

        /**
         * 获取:
         */
        public String getDistrict() {
            return district;
        }

        @Override
        public String toString() {
            return  ReflectionToStringBuilder.toString(this);
        }
    }
QQ在线咨询
客服 QQ
251122361
微信/手机
18973127736
办公电话
0731-89565588