|
@@ -45,12 +45,34 @@ public class ReviewImgRecord implements Serializable {
|
|
|
|
|
|
private LocalDateTime createTime;
|
|
private LocalDateTime createTime;
|
|
|
|
|
|
|
|
+ @JsonIgnore
|
|
private String status;
|
|
private String status;
|
|
|
|
|
|
@TableField(exist = false)
|
|
@TableField(exist = false)
|
|
private ImgReviewResp reviewResult;
|
|
private ImgReviewResp reviewResult;
|
|
|
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
+ private String statusCode;
|
|
|
|
+
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
+ private String statusDesc;
|
|
|
|
+
|
|
public ImgReviewResp getReviewResult() {
|
|
public ImgReviewResp getReviewResult() {
|
|
return JSON.parseObject(this.result, ImgReviewResp.class);
|
|
return JSON.parseObject(this.result, ImgReviewResp.class);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public String getStatusCode(){
|
|
|
|
+ if (TypeDict.STATUS_MAPPING.containsKey(this.status)){
|
|
|
|
+ this.statusCode = TypeDict.STATUS_MAPPING.get(this.status).getKey();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ return this.statusCode;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getStatusDesc(){
|
|
|
|
+ if (TypeDict.STATUS_MAPPING.containsKey(this.status)){
|
|
|
|
+ this.statusDesc = TypeDict.STATUS_MAPPING.get(this.status).getValue();
|
|
|
|
+ }
|
|
|
|
+ return this.statusDesc;
|
|
|
|
+ }
|
|
}
|
|
}
|