TaskContract.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.wtkj.entity;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.baomidou.mybatisplus.annotation.TableName;
  4. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  5. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  6. import io.swagger.annotations.ApiModelProperty;
  7. import lombok.Data;
  8. import lombok.EqualsAndHashCode;
  9. import org.springblade.core.mp.base.BaseEntity;
  10. import javax.validation.constraints.NotNull;
  11. import java.math.BigDecimal;
  12. /**
  13. * @author Blizzard
  14. * @create at 2023-09-18 09:20
  15. * @describe 任务相关合同
  16. */
  17. @EqualsAndHashCode(callSuper = true)
  18. @TableName("blade_task_contract")
  19. @Data
  20. public class TaskContract extends BaseEntity {
  21. private static final long serialVersionUID = 1L;
  22. @TableField("project_id")
  23. @NotNull(message = "projectId can't be null")
  24. @JsonSerialize(using = ToStringSerializer.class)
  25. private Long projectId;
  26. @TableField("task_id")
  27. @NotNull(message = "taskId can't be null")
  28. @JsonSerialize(using = ToStringSerializer.class)
  29. private Long taskId;
  30. @TableField("org_dept_id")
  31. @ApiModelProperty(value = "任务执行机构的顶级id,即乙方")
  32. @NotNull(message = "orgDeptId can't be null")
  33. @JsonSerialize(using = ToStringSerializer.class)
  34. private Long orgDeptId;
  35. @TableField("blade_file_id")
  36. @ApiModelProperty(value = "文件上传完返回的主键id")
  37. private String bladeFileId;
  38. @TableField("amount")
  39. @ApiModelProperty(value = "合同金额")
  40. private BigDecimal amount;
  41. @TableField("unpaid_amount")
  42. @ApiModelProperty(value = "未付金额")
  43. private BigDecimal unpaidAmount;
  44. @TableField("year")
  45. @ApiModelProperty(value = "签订年")
  46. private Integer year;
  47. }