You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
3.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. package com.inscloudtech.datacenter.domain;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
  4. import com.alibaba.excel.annotation.ExcelProperty;
  5. import com.baomidou.mybatisplus.annotation.*;
  6. import com.inscloudtech.common.annotation.DeduplicationField;
  7. import com.inscloudtech.common.annotation.UpdateValueLog;
  8. import com.inscloudtech.common.core.domain.BaseEntity;
  9. import lombok.Data;
  10. import lombok.EqualsAndHashCode;
  11. import org.dromara.easyes.annotation.IndexField;
  12. import org.dromara.easyes.annotation.IndexId;
  13. import org.dromara.easyes.annotation.IndexName;
  14. import org.dromara.easyes.annotation.rely.FieldType;
  15. import org.dromara.easyes.annotation.rely.RefreshPolicy;
  16. /**
  17. * 重点人员资产-车辆信息对象 dc_car_info
  18. *
  19. * @author inscloudtech
  20. * @date 2023-11-09
  21. */
  22. @Data
  23. @EqualsAndHashCode(callSuper = true)
  24. @TableName("dc_car_info")
  25. @ExcelIgnoreUnannotated
  26. @IndexName(value = "dc_car_info",refreshPolicy = RefreshPolicy.IMMEDIATE)
  27. public class CarInfo extends BaseEntity {
  28. /** id */
  29. @TableId(type = IdType.ASSIGN_ID)
  30. @IndexId(type = org.dromara.easyes.annotation.rely.IdType.CUSTOMIZE)
  31. private String id;
  32. /**
  33. * 姓名
  34. */
  35. @UpdateValueLog(fieldName = "姓名")
  36. @ExcelProperty(value = "姓名",index = 0)
  37. @DeduplicationField
  38. @IndexField(fieldType = FieldType.KEYWORD_TEXT, analyzer = "ngram_analyzer")
  39. private String name;
  40. /**
  41. * 身份证号
  42. */
  43. @ExcelProperty(value = "身份证号",index = 1)
  44. @DeduplicationField
  45. @UpdateValueLog(fieldName = "身份证号")
  46. @IndexField(fieldType = FieldType.KEYWORD_TEXT, analyzer = "ngram_analyzer")
  47. private String idCard;
  48. /**
  49. * 车牌号
  50. */
  51. @ExcelProperty(value = "车牌号",index = 2)
  52. @DeduplicationField
  53. @UpdateValueLog(fieldName = "车牌号")
  54. @IndexField(fieldType = FieldType.KEYWORD)
  55. private String carNo;
  56. /**
  57. * 车型
  58. */
  59. @UpdateValueLog(fieldName = "车型")
  60. @ExcelProperty(value = "车型",index = 3)
  61. @DeduplicationField
  62. @IndexField(fieldType = FieldType.KEYWORD)
  63. private String carType;
  64. /**
  65. * 转让登记
  66. */
  67. @UpdateValueLog(fieldName = "转让登记")
  68. @ExcelProperty(value = "转让登记",index = 4)
  69. @DeduplicationField
  70. @IndexField(fieldType = FieldType.KEYWORD)
  71. private String registration;
  72. /**
  73. * 备注
  74. */
  75. @UpdateValueLog(fieldName = "备注")
  76. @ExcelProperty(value = "备注",index = 5)
  77. @DeduplicationField
  78. @IndexField(fieldType = FieldType.KEYWORD_TEXT, analyzer = "ngram_analyzer")
  79. @TableField(updateStrategy = FieldStrategy.IGNORED)
  80. private String remark;
  81. /**
  82. * 车辆停放及登记地址
  83. */
  84. @UpdateValueLog(fieldName = "车辆停放及登记地址")
  85. @ExcelProperty(value = "车辆停放及登记地址",index = 6)
  86. @DeduplicationField
  87. @IndexField(fieldType = FieldType.KEYWORD)
  88. private String address;
  89. @UpdateValueLog(fieldName = "背景色")
  90. @IndexField(strategy = org.dromara.easyes.annotation.rely.FieldStrategy.IGNORED)
  91. @TableField(updateStrategy = FieldStrategy.IGNORED)
  92. private String bgc;
  93. @DeduplicationField
  94. private String caseId;
  95. @IndexField(fieldType = FieldType.KEYWORD)
  96. @DeduplicationField
  97. private String analysisResultId;
  98. @ExcelIgnore
  99. @TableField(exist = false)
  100. @IndexField(exist = false)
  101. private Integer lineNo;
  102. }