Commit 0f53e593 by fsn

重新初始化model文件

parent 766e4ae5
package com.stylefeng.guns.persistence.dao;
import com.stylefeng.guns.persistence.model.Attach;
import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author stylefeng
* @since 2017-04-26
*/
public interface AttachMapper extends BaseMapper<Attach> {
}
\ No newline at end of file
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface DeptMapper extends BaseMapper<Dept> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface DictMapper extends BaseMapper<Dict> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface GenerateMapper extends BaseMapper<Generate> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface LoginLogMapper extends BaseMapper<LoginLog> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface MenuMapper extends BaseMapper<Menu> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface NoticeMapper extends BaseMapper<Notice> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface OperationLogMapper extends BaseMapper<OperationLog> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface ParameterMapper extends BaseMapper<Parameter> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface RelationMapper extends BaseMapper<Relation> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface RoleExtMapper extends BaseMapper<RoleExt> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface RoleMapper extends BaseMapper<Role> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
public interface UserMapper extends BaseMapper<User> {
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.stylefeng.guns.persistence.dao.AttachMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.stylefeng.guns.persistence.model.Attach">
<id column="id" property="id" />
<result column="code" property="code" />
<result column="name" property="name" />
<result column="url" property="url" />
<result column="status" property="status" />
<result column="creater" property="creater" />
<result column="createtime" property="createtime" />
</resultMap>
</mapper>
......@@ -8,11 +8,8 @@
<result column="title" property="title" />
<result column="type" property="type" />
<result column="content" property="content" />
<result column="publishtime" property="publishtime" />
<result column="createtime" property="createtime" />
<result column="creater" property="creater" />
<result column="pic" property="pic" />
<result column="version" property="version" />
</resultMap>
</mapper>
package com.stylefeng.guns.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
/**
* <p>
*
* </p>
*
* @author stylefeng
* @since 2017-04-26
*/
@TableName("_attach")
public class Attach extends Model<Attach> {
private static final long serialVersionUID = 1L;
@TableId(value="id", type= IdType.AUTO)
private Integer id;
private String code;
private String name;
private String url;
private Integer status;
private Integer creater;
private Date createtime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getCreater() {
return creater;
}
public void setCreater(Integer creater) {
this.creater = creater;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
@Override
protected Serializable pkVal() {
return this.id;
}
}
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_dept")
public class Dept extends Model<Dept> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_dict")
public class Dict extends Model<Dict> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_generate")
public class Generate extends Model<Generate> {
......
package com.stylefeng.guns.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
......@@ -13,7 +14,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_login_log")
public class LoginLog extends Model<LoginLog> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_menu")
public class Menu extends Model<Menu> {
......
package com.stylefeng.guns.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
......@@ -13,7 +14,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_notice")
public class Notice extends Model<Notice> {
......@@ -38,10 +39,6 @@ public class Notice extends Model<Notice> {
*/
private String content;
/**
* 发布时间
*/
private Date publishtime;
/**
* 创建时间
*/
private Date createtime;
......@@ -49,11 +46,6 @@ public class Notice extends Model<Notice> {
* 创建人
*/
private Integer creater;
/**
* 图片
*/
private Integer pic;
private Integer version;
public Integer getId() {
......@@ -88,14 +80,6 @@ public class Notice extends Model<Notice> {
this.content = content;
}
public Date getPublishtime() {
return publishtime;
}
public void setPublishtime(Date publishtime) {
this.publishtime = publishtime;
}
public Date getCreatetime() {
return createtime;
}
......@@ -112,22 +96,6 @@ public class Notice extends Model<Notice> {
this.creater = creater;
}
public Integer getPic() {
return pic;
}
public void setPic(Integer pic) {
this.pic = pic;
}
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
@Override
protected Serializable pkVal() {
return this.id;
......
package com.stylefeng.guns.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
......@@ -13,7 +14,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_operation_log")
public class OperationLog extends Model<OperationLog> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_parameter")
public class Parameter extends Model<Parameter> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_relation")
public class Relation extends Model<Relation> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_role")
public class Role extends Model<Role> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_role_ext")
public class RoleExt extends Model<RoleExt> {
......
package com.stylefeng.guns.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
......@@ -13,7 +14,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-05-05
* @since 2017-05-09
*/
@TableName("_user")
public class User extends Model<User> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment