|
|
@ -0,0 +1,186 @@ |
|
|
|
package com.qs.serve.modules.vtb.entity; |
|
|
|
|
|
|
|
import java.time.LocalDate; |
|
|
|
import java.io.Serializable; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.*; |
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import lombok.Data; |
|
|
|
import org.hibernate.validator.constraints.Length; |
|
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
|
|
|
|
import javax.validation.constraints.NotNull; |
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
|
|
|
|
/** |
|
|
|
* 核销审批线明细 实体类 |
|
|
|
* @author YenHex |
|
|
|
* @since 2023-11-28 |
|
|
|
*/ |
|
|
|
@Data |
|
|
|
@TableName("vtb_verification_yard_center_item") |
|
|
|
public class VtbVerificationYardCenterItem implements Serializable { |
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
|
|
|
|
/** id */ |
|
|
|
@TableId(type = IdType.AUTO) |
|
|
|
private Long id; |
|
|
|
|
|
|
|
/** 核销线id */ |
|
|
|
@NotNull(message = "核销线id不能为空") |
|
|
|
private Long yardId; |
|
|
|
|
|
|
|
/** 核算id */ |
|
|
|
@NotNull(message = "核算id不能为空") |
|
|
|
private Long verificationId; |
|
|
|
|
|
|
|
/** 科目核销编码 */ |
|
|
|
@NotBlank(message = "科目核销编码不能为空") |
|
|
|
@Length(max = 32,message = "科目核销编码长度不能超过32字") |
|
|
|
private String verificationSubCode; |
|
|
|
|
|
|
|
/** 费用申请id */ |
|
|
|
@NotNull(message = "费用申请id不能为空") |
|
|
|
private Long costApplyId; |
|
|
|
|
|
|
|
/** 活动id */ |
|
|
|
@NotNull(message = "活动id不能为空") |
|
|
|
private Long activityId; |
|
|
|
|
|
|
|
/** 科目id */ |
|
|
|
@NotNull(message = "科目id不能为空") |
|
|
|
private Long subjectId; |
|
|
|
|
|
|
|
/** 科目编码 */ |
|
|
|
@NotBlank(message = "科目编码不能为空") |
|
|
|
@Length(max = 50,message = "科目编码长度不能超过50字") |
|
|
|
private String subjectCode; |
|
|
|
|
|
|
|
/** 科目名称 */ |
|
|
|
@NotBlank(message = "科目名称不能为空") |
|
|
|
@Length(max = 50,message = "科目名称长度不能超过50字") |
|
|
|
private String subjectName; |
|
|
|
|
|
|
|
/** 客户id */ |
|
|
|
@NotNull(message = "客户id不能为空") |
|
|
|
private Long supplierId; |
|
|
|
|
|
|
|
/** 客户编码 */ |
|
|
|
@NotBlank(message = "客户编码不能为空") |
|
|
|
@Length(max = 30,message = "客户编码长度不能超过30字") |
|
|
|
private String supplierCode; |
|
|
|
|
|
|
|
/** 客户名称 */ |
|
|
|
@NotBlank(message = "客户名称不能为空") |
|
|
|
@Length(max = 30,message = "客户名称长度不能超过30字") |
|
|
|
private String supplierName; |
|
|
|
|
|
|
|
/** 上次审批金额 */ |
|
|
|
@NotNull(message = "上次审批金额不能为空") |
|
|
|
private BigDecimal lastAmount; |
|
|
|
|
|
|
|
/** 本次审批金额 */ |
|
|
|
@NotNull(message = "本次审批金额不能为空") |
|
|
|
private BigDecimal currAmount; |
|
|
|
|
|
|
|
/** 备注1 */ |
|
|
|
@Length(max = 255,message = "备注1长度不能超过255字") |
|
|
|
private String remark; |
|
|
|
|
|
|
|
/** 创建时间 */ |
|
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|
|
|
@TableField(fill = FieldFill.INSERT) |
|
|
|
private LocalDateTime createTime; |
|
|
|
|
|
|
|
/** 最后更新时间 */ |
|
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|
|
|
@TableField(fill = FieldFill.UPDATE) |
|
|
|
private LocalDateTime updateTime; |
|
|
|
|
|
|
|
/** 所属租户 */ |
|
|
|
@JsonIgnore |
|
|
|
@JsonProperty |
|
|
|
private String tenantId; |
|
|
|
|
|
|
|
/** 创建人 */ |
|
|
|
@TableField(fill = FieldFill.INSERT) |
|
|
|
private String createBy; |
|
|
|
|
|
|
|
/** 更新人 */ |
|
|
|
@TableField(fill = FieldFill.UPDATE) |
|
|
|
private String updateBy; |
|
|
|
|
|
|
|
/** 逻辑删除标记(0:显示;1:隐藏) */ |
|
|
|
@JsonIgnore |
|
|
|
@JsonProperty |
|
|
|
private String delFlag; |
|
|
|
|
|
|
|
/** 是否无效 */ |
|
|
|
@NotNull(message = "是否无效不能为空") |
|
|
|
private Integer effectiveFlag; |
|
|
|
|
|
|
|
/** 成本中心类型 */ |
|
|
|
@NotBlank(message = "成本中心类型不能为空") |
|
|
|
@Length(max = 255,message = "成本中心类型长度不能超过255字") |
|
|
|
private String centerType; |
|
|
|
|
|
|
|
/** 成本中心id */ |
|
|
|
@NotBlank(message = "成本中心id不能为空") |
|
|
|
@Length(max = 32,message = "成本中心id长度不能超过32字") |
|
|
|
private String centerId; |
|
|
|
|
|
|
|
/** 成本中心编码 */ |
|
|
|
@NotBlank(message = "成本中心编码不能为空") |
|
|
|
@Length(max = 50,message = "成本中心编码长度不能超过50字") |
|
|
|
private String centerCode; |
|
|
|
|
|
|
|
/** 成本中心名称 */ |
|
|
|
@NotBlank(message = "成本中心名称不能为空") |
|
|
|
@Length(max = 200,message = "成本中心名称长度不能超过200字") |
|
|
|
private String centerName; |
|
|
|
|
|
|
|
/** 活动成本中心ID */ |
|
|
|
private Long activityCenterId; |
|
|
|
|
|
|
|
|
|
|
|
public static VtbVerificationYardCenterItem toNewObject(VtbVerificationYardItem source){ |
|
|
|
VtbVerificationYardCenterItem verificationYardCenterItem = new VtbVerificationYardCenterItem(); |
|
|
|
//verificationYardCenterItem.setId(source.getId());
|
|
|
|
verificationYardCenterItem.setYardId(source.getYardId()); |
|
|
|
verificationYardCenterItem.setVerificationId(source.getVerificationId()); |
|
|
|
verificationYardCenterItem.setVerificationSubCode(source.getVerificationSubCode()); |
|
|
|
verificationYardCenterItem.setCostApplyId(source.getCostApplyId()); |
|
|
|
verificationYardCenterItem.setActivityId(source.getActivityId()); |
|
|
|
verificationYardCenterItem.setSubjectId(source.getSubjectId()); |
|
|
|
verificationYardCenterItem.setSubjectCode(source.getSubjectCode()); |
|
|
|
verificationYardCenterItem.setSubjectName(source.getSubjectName()); |
|
|
|
verificationYardCenterItem.setSupplierId(source.getSupplierId()); |
|
|
|
verificationYardCenterItem.setSupplierCode(source.getSupplierCode()); |
|
|
|
verificationYardCenterItem.setSupplierName(source.getSupplierName()); |
|
|
|
// verificationYardCenterItem.setLastAmount(source.getLastAmount());
|
|
|
|
// verificationYardCenterItem.setCurrAmount(source.getCurrAmount());
|
|
|
|
verificationYardCenterItem.setRemark(source.getRemark()); |
|
|
|
verificationYardCenterItem.setCreateTime(source.getCreateTime()); |
|
|
|
verificationYardCenterItem.setUpdateTime(source.getUpdateTime()); |
|
|
|
verificationYardCenterItem.setTenantId(source.getTenantId()); |
|
|
|
verificationYardCenterItem.setCreateBy(source.getCreateBy()); |
|
|
|
verificationYardCenterItem.setUpdateBy(source.getUpdateBy()); |
|
|
|
verificationYardCenterItem.setDelFlag(source.getDelFlag()); |
|
|
|
verificationYardCenterItem.setEffectiveFlag(source.getEffectiveFlag()); |
|
|
|
// verificationYardCenterItem.setCenterType(source.getCenterType());
|
|
|
|
// verificationYardCenterItem.setCenterId(source.getCenterId());
|
|
|
|
// verificationYardCenterItem.setCenterCode(source.getCenterCode());
|
|
|
|
// verificationYardCenterItem.setCenterName(source.getCenterName());
|
|
|
|
// verificationYardCenterItem.setActivityCenterId(source.getActivityCenterId());
|
|
|
|
return verificationYardCenterItem; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|