From f227e6ac3439116a0f8cc185bce053e19bd65307 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期三, 28 十二月 2022 11:50:16 +0800
Subject: [PATCH] fix: 优化code
---
src/main/java/com/example/jz/modle/entity/Report.java | 132 ++++++++-----------------------------------
1 files changed, 25 insertions(+), 107 deletions(-)
diff --git a/src/main/java/com/example/jz/modle/entity/Report.java b/src/main/java/com/example/jz/modle/entity/Report.java
index 5c99828..4b4920d 100644
--- a/src/main/java/com/example/jz/modle/entity/Report.java
+++ b/src/main/java/com/example/jz/modle/entity/Report.java
@@ -2,8 +2,17 @@
import java.util.Date;
+import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+import org.springframework.format.annotation.DateTimeFormat;
+
import java.io.Serializable;
/**
@@ -13,6 +22,11 @@
* @since 2022-07-13 11:52:58
*/
@TableName("qyjz.report")
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
public class Report extends Model<Report> {
//妗堜欢ID
private Integer id;
@@ -23,10 +37,11 @@
//鏄惁浠e姙 1锛堜唬鍔烇級 0锛堜笉鏄唬鍔烇級
private String isCommission;
//娑夋閲戦
- private String amountInvolved;
+ private Double amountInvolved;
//鎶ユ鏉愭枡鍥剧墖鍦板潃 澶氫釜鐢�,鍒嗛殧
private String reportMaterials;
//鎶ユ鏃堕棿
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date reportTime;
//鎶ユ鏂瑰紡
private String reportMethod;
@@ -35,116 +50,19 @@
//鐘舵�侊紝1涓洪�氳繃 0涓烘湭瀹℃牳
private Integer status;
//鍒涘缓鏃堕棿
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date ctime;
//琚獥鏃堕棿
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date cheatTime;
//琛ュ厖淇℃伅
private String information;
-
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getPic() {
- return pic;
- }
-
- public void setPic(String pic) {
- this.pic = pic;
- }
-
- public Integer getUserId() {
- return userId;
- }
-
- public void setUserId(Integer userId) {
- this.userId = userId;
- }
-
- public String getIsCommission() {
- return isCommission;
- }
-
- public void setIsCommission(String isCommission) {
- this.isCommission = isCommission;
- }
-
- public String getAmountInvolved() {
- return amountInvolved;
- }
-
- public void setAmountInvolved(String amountInvolved) {
- this.amountInvolved = amountInvolved;
- }
-
- public String getReportMaterials() {
- return reportMaterials;
- }
-
- public void setReportMaterials(String reportMaterials) {
- this.reportMaterials = reportMaterials;
- }
-
- public Date getReportTime() {
- return reportTime;
- }
-
- public void setReportTime(Date reportTime) {
- this.reportTime = reportTime;
- }
-
- public String getReportMethod() {
- return reportMethod;
- }
-
- public void setReportMethod(String reportMethod) {
- this.reportMethod = reportMethod;
- }
-
- public Integer getCreator() {
- return creator;
- }
-
- public void setCreator(Integer creator) {
- this.creator = creator;
- }
-
- public Integer getStatus() {
- return status;
- }
-
- public void setStatus(Integer status) {
- this.status = status;
- }
-
- public Date getCtime() {
- return ctime;
- }
-
- public void setCtime(Date ctime) {
- this.ctime = ctime;
- }
-
- public Date getCheatTime() {
- return cheatTime;
- }
-
- public void setCheatTime(Date cheatTime) {
- this.cheatTime = cheatTime;
- }
-
- public String getInformation() {
- return information;
- }
-
- public void setInformation(String information) {
- this.information = information;
- }
+ //妗堜欢Id
+ private Integer causeId;
+ //妗堜欢鎻忚堪
+ private String reportDescription;
+ //鏄惁杩涚兢
+ private Integer isInGroup;
/**
* 鑾峰彇涓婚敭鍊�
@@ -155,5 +73,5 @@
protected Serializable pkVal() {
return this.id;
}
- }
+}
--
Gitblit v1.8.0