企业人员

This commit is contained in:
zhuyy 2023-02-01 10:56:22 +08:00
parent 260ac66935
commit 394e55ce09
5 changed files with 192 additions and 7 deletions

View File

@ -20,18 +20,18 @@ import com.ydool.common.base.BaseService;
*/
public class Generator {
private static String url = "jdbc:mysql://localhost:3306/ydool_demo?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai";
private static String username = "root";
private static String password = "Wang09211108";
private static String url = "jdbc:mysql://10.0.0.200:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai";
private static String username = "lc_oa";
private static String password = "wZxxeSJjtTzT2iAk";
private static String driverName = "com.mysql.cj.jdbc.Driver";
public static void main(String[] args) {
//表名
String tableName = "t_sys_role";
String tableName = "t_lc_personnel";
//表前缀
String tablePrefix = "t_sys_";
String tablePrefix = "t_lc_";
//作者
String author = "ljq";
String author = "msf";
generate(tableName, tablePrefix, author);
}
@ -66,7 +66,7 @@ public class Generator {
//包配置
PackageConfig pc = new PackageConfig();
pc.setParent("com.ydool.system");
pc.setParent("com.ydool.staff");
pc.setEntity("entity");
pc.setServiceImpl("service");
pc.setServiceImpl("service.impl");

View File

@ -0,0 +1,132 @@
package com.ydool.staff.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ydool.common.base.BaseEntity;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 人员表
* </p>
*
* @author msf
* @since 2023-02-01
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_lc_personnel")
@ApiModel(value = "Personnel对象", description = "人员表")
public class Personnel extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "统一社会信用代码")
private String socialCreditCode;
@ApiModelProperty(value = "姓名")
private String username;
@ApiModelProperty(value = "企业名称")
private String companyName;
@ApiModelProperty(value = "性别")
private String gender;
@ApiModelProperty(value = "出生日期")
private Date birthday;
@ApiModelProperty(value = "身份证号")
private String numberId;
@ApiModelProperty(value = "民族")
private String nation;
@ApiModelProperty(value = "政治面貌")
private String politicsStatus;
@ApiModelProperty(value = "学历")
private String education;
@ApiModelProperty(value = "是否应届毕业生")
private String freshGraduate;
@ApiModelProperty(value = "毕业院校")
private String academy;
@ApiModelProperty(value = "专业")
private String specialty;
@ApiModelProperty(value = "录用方式")
private String hireType;
@ApiModelProperty(value = "执业资格证")
private String qualification;
@ApiModelProperty(value = "专业技术职称")
private String jobTitle;
@ApiModelProperty(value = "所在部门")
private String presentDept;
@ApiModelProperty(value = "岗位职务")
private String position;
@ApiModelProperty(value = "合同形式")
private String contractModality;
@ApiModelProperty(value = "人员类型")
private String personnelType;
@ApiModelProperty(value = "工作状态")
private String workState;
@ApiModelProperty(value = "人员性质")
private String personnelCharacter;
@ApiModelProperty(value = "年薪")
private BigDecimal annualSalary;
@ApiModelProperty(value = "入职时间")
private Date hireDate;
@ApiModelProperty(value = "退休时间")
private Date retirementTime;
@ApiModelProperty(value = "离职时间")
private Date resignationTime;
@ApiModelProperty(value = "退休返聘开始时间")
private Date txfpStartTime;
@ApiModelProperty(value = "退休返聘结束时间")
private Date txfpEndTime;
@ApiModelProperty(value = "人员招聘单号")
private String recruitNumber;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "初审意见")
private String firstTrialRemark;
@ApiModelProperty(value = "终审意见")
private String finalTrialRemark;
@ApiModelProperty(value = "相关附件")
private String attachmentFile;
@ApiModelProperty(value = "变更标志")
private String alterationSign;
}

View File

@ -0,0 +1,18 @@
package com.ydool.staff.mapper;
import com.ydool.staff.entity.Personnel;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* 人员表 Mapper 接口
* </p>
*
* @author msf
* @since 2023-02-01
*/
@Mapper
public interface PersonnelMapper extends MPJBaseMapper<Personnel> {
}

View File

@ -0,0 +1,14 @@
package com.ydool.staff.service;
/**
* <p>
* 人员表 服务类
* </p>
*
* @author msf
* @since 2023-02-01
*/
public interface IPersonnelService {
}

View File

@ -0,0 +1,21 @@
package com.ydool.staff.service.impl;
import com.ydool.staff.entity.Personnel;
import com.ydool.common.base.BaseService;
import com.ydool.staff.mapper.PersonnelMapper;
import com.ydool.staff.service.IPersonnelService;
import org.springframework.stereotype.Service;
/**
* <p>
* 人员表 服务类
* </p>
*
* @author msf
* @since 2023-02-01
*/
@Service
public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel> implements IPersonnelService {
}