Dept.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * Copyright 2019-2020 Zheng Jie
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package easydo.technology.system.domain;
  17. import com.baomidou.mybatisplus.annotation.IdType;
  18. import com.baomidou.mybatisplus.annotation.TableId;
  19. import com.baomidou.mybatisplus.annotation.TableName;
  20. import com.fasterxml.jackson.annotation.JsonFormat;
  21. import easydo.technology.base.CommonEntity;
  22. import lombok.Getter;
  23. import lombok.Setter;
  24. import org.springframework.beans.BeanUtils;
  25. import javax.validation.constraints.NotBlank;
  26. import javax.validation.constraints.NotNull;
  27. import java.time.LocalDateTime;
  28. @Setter
  29. @Getter
  30. @TableName("sys_dept")
  31. public class Dept extends CommonEntity {
  32. private static final long serialVersionUID = 1L;
  33. @TableId(value = "dept_id", type = IdType.AUTO)
  34. private Long id;
  35. @NotNull
  36. private Long pid;
  37. private Integer subCount;
  38. @NotBlank
  39. private String name;
  40. private Integer deptSort;
  41. @NotNull
  42. private Boolean enabled;
  43. @NotNull
  44. private String firmType;
  45. @NotNull
  46. private String firmCredit;
  47. @NotNull
  48. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  49. private LocalDateTime firmTime;
  50. @NotNull
  51. private String firmAddress;
  52. @NotNull
  53. private String firmCapital;
  54. @NotNull
  55. private String firmNature;
  56. @NotNull
  57. private String firmLegalPerson;
  58. @NotNull
  59. private String firmLegalPersonPhone;
  60. @NotNull
  61. private String firmFunctionary;
  62. @NotNull
  63. private String firmFunctionaryPhone;
  64. @NotNull
  65. private String firmOfficePhone;
  66. @NotNull
  67. private String firmFaxNumber;
  68. @NotNull
  69. private String firmBusinessAddress;
  70. @NotNull
  71. private String remark;
  72. private String deptType;
  73. public void copyFrom(Dept source) {
  74. BeanUtils.copyProperties(source, this);
  75. }
  76. }