|
|
@@ -2,45 +2,40 @@ package com.coffee.bus.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
-import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
|
|
import com.coffee.common.config.mybatis.DateToBigIntHandler;
|
|
|
-import com.coffee.common.entity.RecordCreationEntity;
|
|
|
-import com.coffee.common.entity.RecordModifierEntity;
|
|
|
import com.coffee.common.entity.TenantGenericEntity;
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
-import org.hibernate.validator.constraints.Length;
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* @author lifang
|
|
|
* @version 1.0.0
|
|
|
- * @ClassName BusTemplateAnalgesicEntity.java
|
|
|
+ * @ClassName BusEvaluationTmpEntity.java
|
|
|
* @Description TODO
|
|
|
* @createTime 2022年03月21日 14:18:00
|
|
|
*/
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
@Data
|
|
|
-@TableName(value = "bus_template_analgesic",autoResultMap = true)
|
|
|
+@TableName(value = "bus_evaluation_temp",autoResultMap = true)
|
|
|
@ApiModel(value="评价模板", description="评价模板")
|
|
|
-public class BusTemplateAnalgesicEntity extends TenantGenericEntity<Long,Long> implements RecordModifierEntity, RecordCreationEntity {
|
|
|
+public class BusEvaluationTmpEntity extends TenantGenericEntity<String,String> {
|
|
|
|
|
|
- @ApiModelProperty(value = "评价配置详情(接收数据为String集合,请传入需要展示的字段集合,如[\"createBy\",\"createTime\"])")
|
|
|
- @Length(max = 1024,message = "评价配置详情长度不得超过1024个字节")
|
|
|
+ @ApiModelProperty(value = "不需要评价的字段,如calm、leftArm等")
|
|
|
@TableField(typeHandler = FastjsonTypeHandler.class)
|
|
|
- private List<String> config;
|
|
|
+ private List<String> excludeConfig;
|
|
|
|
|
|
|
|
|
@TableField(fill = FieldFill.INSERT)
|
|
|
private String createBy;
|
|
|
|
|
|
- @TableField(fill = FieldFill.UPDATE)
|
|
|
+ @TableField(fill = FieldFill.INSERT_UPDATE)
|
|
|
private String updateBy;
|
|
|
|
|
|
@TableField(typeHandler = DateToBigIntHandler.class,fill = FieldFill.INSERT)
|
|
|
@@ -51,7 +46,4 @@ public class BusTemplateAnalgesicEntity extends TenantGenericEntity<Long,Long>
|
|
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private Date updateTime;
|
|
|
|
|
|
- @TableField(fill = FieldFill.INSERT)
|
|
|
- @TableLogic(value = "0",delval = "1")
|
|
|
- private Integer isDelete;
|
|
|
}
|