Repair.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. package com.fdkankan.sale.entity;
  2. import com.alibaba.fastjson.JSONArray;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableLogic;
  6. import com.baomidou.mybatisplus.annotation.TableName;
  7. import java.io.Serializable;
  8. import java.math.BigDecimal;
  9. import com.fasterxml.jackson.annotation.JsonFormat;
  10. import com.fdkankan.sale.typehandle.JsonArrayTypeHandler;
  11. import lombok.Getter;
  12. import lombok.Setter;
  13. import org.apache.ibatis.type.JdbcType;
  14. /**
  15. * <p>
  16. *
  17. * </p>
  18. *
  19. * @author
  20. * @since 2022-12-12
  21. */
  22. @Getter
  23. @Setter
  24. @TableName(value = "t_repair",autoResultMap = true)
  25. public class Repair implements Serializable {
  26. private static final long serialVersionUID = 1L;
  27. /**
  28. * 报修表 工单号
  29. */
  30. @TableId(value = "repair_id")
  31. private String repairId;
  32. /**
  33. * 相机编码
  34. */
  35. @TableField("camera_sn_code")
  36. private String cameraSnCode;
  37. /**
  38. * 相机类型
  39. */
  40. @TableField("camera_type")
  41. private Integer cameraType;
  42. /**
  43. * 故障描述
  44. */
  45. @TableField("fault_msg")
  46. private String faultMsg;
  47. /**
  48. * 故障相关图片
  49. */
  50. @TableField(typeHandler= JsonArrayTypeHandler.class)
  51. private JSONArray faultImg;
  52. /**
  53. * 状态0待接单,1待检测,2待报价,3待确认,4已取消,5待备料,6待回收,7维修中,8待测试,9已完成,10待收货,11已发货,12已评价
  54. */
  55. @TableField("status")
  56. private Integer status;
  57. /**
  58. * 评论状态 0 未评论,1已评论
  59. */
  60. @TableField("comment_status")
  61. private Integer commentStatus;
  62. /**
  63. * 是否需要开发票0未填写,1是,2否
  64. */
  65. @TableField("invoice_status")
  66. private Integer invoiceStatus;
  67. /**
  68. * 备注
  69. */
  70. @TableField("remark")
  71. private String remark;
  72. /**
  73. * 接单类型,0系统录单,1客户报修
  74. */
  75. @TableField("receiver_type")
  76. private Integer receiverType;
  77. @TableField("rec_status")
  78. @TableLogic(value = "A",delval = "I")
  79. private String recStatus;
  80. @TableField("create_time")
  81. private String createTime;
  82. @TableField("update_time")
  83. private String updateTime;
  84. @TableField("sys_user_id")
  85. private Long sysUserId;
  86. /**
  87. * 保修界满日期
  88. */
  89. @TableField("warranty_date")
  90. private String warrantyDate;
  91. /**
  92. * 0保内维修 ,1保内维修-人为损坏 = 保外 ,2保外维修,3保外转保内
  93. */
  94. @TableField("warranty_type")
  95. private Integer warrantyType;
  96. /**
  97. * 是否取消维修,0 否,1是
  98. */
  99. @TableField("cancel_status")
  100. private Integer cancelStatus;
  101. @TableField("cancel_remark")
  102. private String cancelRemark;
  103. @TableField("repair_type")
  104. private String repairType;
  105. @TableField("repair_item")
  106. private String repairItem;
  107. @TableField("fault_version")
  108. private String faultVersion;
  109. @TableField(exist = false)
  110. @JsonFormat(shape = JsonFormat.Shape.STRING)
  111. private BigDecimal payAmount;
  112. }