Compare commits

...

6 Commits

17 changed files with 18 additions and 18 deletions

View File

@ -8,4 +8,6 @@ public interface EbikeContents {
String TENANT_ID = "operator_id"; String TENANT_ID = "operator_id";
String LOGIC_DELETE = "is_deleted";
} }

View File

@ -42,6 +42,9 @@ public class MyBatisFlexConfiguration {
keyConfig.setBefore(true); keyConfig.setBefore(true);
globalConfig.setTenantColumn(EbikeContents.TENANT_ID); globalConfig.setTenantColumn(EbikeContents.TENANT_ID);
globalConfig.setLogicDeleteColumn(EbikeContents.LOGIC_DELETE);
globalConfig.setKeyConfig(keyConfig); globalConfig.setKeyConfig(keyConfig);
//方言配置 //方言配置
globalConfig.setDbType(DbType.POSTGRE_SQL); // 关键配置 globalConfig.setDbType(DbType.POSTGRE_SQL); // 关键配置

View File

@ -62,7 +62,6 @@ public class EbikeBatteryInfo implements Serializable {
/** /**
* 删除状态true表示已删除 * 删除状态true表示已删除
*/ */
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
/** /**

View File

@ -130,7 +130,6 @@ public class EbikeBikeInfo implements Serializable {
/** /**
* 删除与否 * 删除与否
*/ */
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
} }

View File

@ -66,7 +66,7 @@ public class EbikeBikeQr implements Serializable {
*/ */
private Integer status; private Integer status;
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
} }

View File

@ -59,7 +59,6 @@ public class EbikeEcuInfo implements Serializable {
/** /**
* 删除状态 * 删除状态
*/ */
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
/** /**

View File

@ -42,6 +42,9 @@ public class MyBatisFlexConfiguration {
keyConfig.setBefore(true); keyConfig.setBefore(true);
globalConfig.setTenantColumn(EbikeContents.TENANT_ID); globalConfig.setTenantColumn(EbikeContents.TENANT_ID);
globalConfig.setLogicDeleteColumn(EbikeContents.LOGIC_DELETE);
globalConfig.setKeyConfig(keyConfig); globalConfig.setKeyConfig(keyConfig);
//方言配置 //方言配置
globalConfig.setDbType(DbType.POSTGRE_SQL); // 关键配置 globalConfig.setDbType(DbType.POSTGRE_SQL); // 关键配置

View File

@ -56,7 +56,6 @@ public class EbikeDic implements Serializable {
@Column(onUpdateValue = "now()") @Column(onUpdateValue = "now()")
private LocalDateTime updateTime; private LocalDateTime updateTime;
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
@RelationOneToMany(selfField = "dicId",targetField = "dicId") @RelationOneToMany(selfField = "dicId",targetField = "dicId")

View File

@ -59,7 +59,6 @@ public class EbikeOperator implements Serializable {
@Column(onUpdateValue = "now()") @Column(onUpdateValue = "now()")
private LocalDateTime updateTime; private LocalDateTime updateTime;
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
} }

View File

@ -57,7 +57,6 @@ public class EbikeOperatorStaff implements Serializable {
@Column(onUpdateValue = "now()") @Column(onUpdateValue = "now()")
private LocalDateTime updateTime; private LocalDateTime updateTime;
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
private String contactPhone; private String contactPhone;

View File

@ -58,7 +58,6 @@ public class EbikePermission implements Serializable {
@Column(onUpdateValue = "now()") @Column(onUpdateValue = "now()")
private LocalDateTime updateTime; private LocalDateTime updateTime;
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
/** /**

View File

@ -2,7 +2,6 @@ package com.cdzy.staff.model.entity;
import com.mybatisflex.annotation.Column; import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id; import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table; import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -46,7 +45,6 @@ public class EbikeRolePermission implements Serializable {
@Column(onUpdateValue = "now()") @Column(onUpdateValue = "now()")
private LocalDateTime updateTime; private LocalDateTime updateTime;
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
private Boolean isEmpower; private Boolean isEmpower;

View File

@ -2,7 +2,6 @@ package com.cdzy.staff.model.entity;
import com.mybatisflex.annotation.Column; import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id; import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table; import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
@ -46,7 +45,6 @@ public class EbikeStaffRole implements Serializable {
@Column(onUpdateValue = "now()") @Column(onUpdateValue = "now()")
private LocalDateTime updateTime; private LocalDateTime updateTime;
@Column(isLogicDelete = true)
private Boolean isDeleted; private Boolean isDeleted;
} }

View File

@ -42,6 +42,9 @@ public class MyBatisFlexConfiguration {
keyConfig.setBefore(true); keyConfig.setBefore(true);
globalConfig.setTenantColumn(EbikeContents.TENANT_ID); globalConfig.setTenantColumn(EbikeContents.TENANT_ID);
globalConfig.setLogicDeleteColumn(EbikeContents.LOGIC_DELETE);
globalConfig.setKeyConfig(keyConfig); globalConfig.setKeyConfig(keyConfig);
//方言配置 //方言配置
globalConfig.setDbType(DbType.POSTGRE_SQL); // 关键配置 globalConfig.setDbType(DbType.POSTGRE_SQL); // 关键配置

View File

@ -16,8 +16,8 @@ import java.time.LocalDateTime;
/** /**
* 用户订单表实体类 * 用户订单表实体类
* *
* @Author: yanglei * @author : yanglei
* @Since: 2025-10-15 15:11 * @since : 2025-10-15 15:11
*/ */
@Data @Data

View File

@ -15,8 +15,8 @@ import java.time.LocalDateTime;
/** /**
* 用户基本信息实体类 * 用户基本信息实体类
* *
* @Author: yanglei * @author : yanglei
* @Since: 2025-10-15 09:21 * @since : 2025-10-15 09:21
*/ */
@Data @Data

View File

@ -15,8 +15,8 @@ import java.time.LocalDateTime;
/** /**
* 实名认证信息 实体类 * 实名认证信息 实体类
* *
* @Author: yanglei * @author : yanglei
* @Since: 2025-10-15 09:49 * @since : 2025-10-15 09:49
*/ */
@Data @Data