Commit 96b9e70e by 284718418@qq.com

添加项目信息表

parent 3fc684ce
package cn.timer.api.bean.zpgl;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* 项目信息表
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-04-1 10:14:40
*/
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "zpgl_rcxx_project")
@Data
public class ZpglRcxxProject extends Model<ZpglRcxxProject> {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Id
@GeneratedValue
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "编号")
private Integer id;
/**
* 人才信息ID
*/
@ApiModelProperty(value = "人才信息ID")
private Integer zpglRcxxId;
/**
* 开始时间
*/
@ApiModelProperty(value = "开始时间")
private Date startTime;
/**
* 结束时间
*/
@ApiModelProperty(value = "结束时间")
private Date endTime;
/**
* 项目名称
*/
@ApiModelProperty(value = "项目名称")
private String projectName;
/**
* 项目角色:职位名称/职位名
*/
@ApiModelProperty(value = "项目角色:职位名称/职位名")
private String job;
/**
* 工作描述:项目详情介绍
*/
@ApiModelProperty(value = "工作描述:项目详情介绍")
private String describe;
/**
* 个人在该项目负责的具体工作详情
*/
@ApiModelProperty(value = "个人在该项目负责的具体工作详情")
private String duty;
/**
* 项目地点城市或区域
*/
@ApiModelProperty(value = "项目地点城市或区域")
private String location;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 逻辑删除标记0.未删除 1.删除
*/
@ApiModelProperty(value = "逻辑删除标记0.未删除 1.删除")
private Integer deleteFlag;
}
package cn.timer.api.dao.zpgl;
import cn.timer.api.bean.zpgl.ZpglRcxxProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* 教育经历
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-08 15:14:40
*/
@Repository
public interface ZpglRcxxProjectMapper extends BaseMapper<ZpglRcxxProject> {
}
<?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="cn.timer.api.dao.zpgl.ZpglRcxxProjectMapper">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="cn.timer.api.bean.zpgl.ZpglRcxxProject" id="zpglRcxxProjectMap">
<result property="id" column="id"/>
<result property="zpglRcxxId" column="zpgl_rcxx_id"/>
<result property="startTime" column="start_time"/>
<result property="endTime" column="end_time"/>
<result property="projectName" column="project_name"/>
<result property="job" column="job"/>
<result property="describe" column="describe"/>
<result property="duty" column="duty"/>
<result property="createTime" column="create_time"/>
<result property="location" column="location"/>
<result property="deleteFlag" column="delete_flag"/>
</resultMap>
</mapper>
\ No newline at end of file
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