/* * Copyright 2019-2020 Zheng Jie * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package me.zhengjie.modules.system.domain; import lombok.Data; import cn.hutool.core.bean.BeanUtil; import io.swagger.annotations.ApiModelProperty; import cn.hutool.core.bean.copier.CopyOptions; import me.zhengjie.base.BaseEntity; import javax.persistence.*; import javax.validation.constraints.*; import java.sql.Timestamp; import java.math.BigDecimal; import java.io.Serializable; /** * @website https://eladmin.vip * @description / * @author 赵士淞 * @date 2022-12-14 **/ @Entity @Data @Table(name="sys_level") public class SysLevel extends BaseEntity implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "`id`") @ApiModelProperty(value = "ID") private Long id; @Column(name = "`job_id`",nullable = false) @NotNull @ApiModelProperty(value = "岗位ID") private Long jobId; @Column(name = "`name`",nullable = false) @NotBlank @ApiModelProperty(value = "名称") private String name; @Column(name = "`description`") @ApiModelProperty(value = "描述") private String description; @Column(name = "`level_wage`",nullable = false) @NotNull @ApiModelProperty(value = "级别工资") private BigDecimal levelWage; @Column(name = "`basic_wage_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "基本工资比例") private Double basicWageProportion; @Column(name = "`achievements_wage_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "绩效工资比例") private Double achievementsWageProportion; @Column(name = "`performance_wage_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "业绩工资比例") private Double performanceWageProportion; @Column(name = "`team_wage_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "团队工资比例") private Double teamWageProportion; @Column(name = "`accumulation_radix`",nullable = false) @NotNull @ApiModelProperty(value = "公积金基数") private BigDecimal accumulationRadix; @Column(name = "`accumulation_personal_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "公积金个人缴纳比例") private Double accumulationPersonalProportion; @Column(name = "`accumulation_company_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "公积金公司缴纳比例") private Double accumulationCompanyProportion; @Column(name = "`pension_radix`",nullable = false) @NotNull @ApiModelProperty(value = "养老险基数") private BigDecimal pensionRadix; @Column(name = "`pension_personal_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "养老险个人缴纳比例") private Double pensionPersonalProportion; @Column(name = "`pension_company_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "养老险公司缴纳比例") private Double pensionCompanyProportion; @Column(name = "`medical_radix`",nullable = false) @NotNull @ApiModelProperty(value = "医疗险基数") private BigDecimal medicalRadix; @Column(name = "`medical_personal_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "医疗险个人缴纳比例") private Double medicalPersonalProportion; @Column(name = "`medical_company_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "医疗险公司缴纳比例") private Double medicalCompanyProportion; @Column(name = "`unemployment_radix`",nullable = false) @NotNull @ApiModelProperty(value = "失业险基数") private BigDecimal unemploymentRadix; @Column(name = "`unemployment_personal_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "失业险个人缴纳比例") private Double unemploymentPersonalProportion; @Column(name = "`unemployment_company_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "失业险公司缴纳比例") private Double unemploymentCompanyProportion; @Column(name = "`maternity_radix`",nullable = false) @NotNull @ApiModelProperty(value = "生育险基数") private BigDecimal maternityRadix; @Column(name = "`maternity_personal_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "生育险个人缴纳比例") private Double maternityPersonalProportion; @Column(name = "`maternity_company_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "生育险公司缴纳比例") private Double maternityCompanyProportion; @Column(name = "`industrial_injury_radix`",nullable = false) @NotNull @ApiModelProperty(value = "工伤险基数") private BigDecimal industrialInjuryRadix; @Column(name = "`industrial_injury_personal_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "工伤险个人缴纳比例") private Double industrialInjuryPersonalProportion; @Column(name = "`industrial_injury_company_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "工伤险公司缴纳比例") private Double industrialInjuryCompanyProportion; @Column(name = "`personal_performance_proportion`",nullable = false) @NotNull @ApiModelProperty(value = "个人业绩比例") private Double personalPerformanceProportion; @Column(name = "`annual_leave_days`",nullable = false) @NotNull @ApiModelProperty(value = "年假天数") private Integer annualLeaveDays; @Column(name = "`remarks`") @ApiModelProperty(value = "备注") private String remarks; public void copy(SysLevel source){ BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); } }