Compare commits
6 Commits
3e881778c3
...
defc603f99
| Author | SHA256 | Date | |
|---|---|---|---|
| defc603f99 | |||
| 418babd19a | |||
| 489527cd5f | |||
| 9a7dcccfb5 | |||
| 124ae8e197 | |||
| 96213adec5 |
@ -8,4 +8,6 @@ public interface EbikeContents {
|
|||||||
|
|
||||||
String TENANT_ID = "operator_id";
|
String TENANT_ID = "operator_id";
|
||||||
|
|
||||||
|
String LOGIC_DELETE = "is_deleted";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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); // 关键配置
|
||||||
|
|||||||
@ -62,7 +62,6 @@ public class EbikeBatteryInfo implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 删除状态(true表示已删除)
|
* 删除状态(true表示已删除)
|
||||||
*/
|
*/
|
||||||
@Column(isLogicDelete = true)
|
|
||||||
private Boolean isDeleted;
|
private Boolean isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -130,7 +130,6 @@ public class EbikeBikeInfo implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 删除与否
|
* 删除与否
|
||||||
*/
|
*/
|
||||||
@Column(isLogicDelete = true)
|
|
||||||
private Boolean isDeleted;
|
private Boolean isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -66,7 +66,7 @@ public class EbikeBikeQr implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
@Column(isLogicDelete = true)
|
|
||||||
private Boolean isDeleted;
|
private Boolean isDeleted;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,7 +59,6 @@ public class EbikeEcuInfo implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 删除状态
|
* 删除状态
|
||||||
*/
|
*/
|
||||||
@Column(isLogicDelete = true)
|
|
||||||
private Boolean isDeleted;
|
private Boolean isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -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); // 关键配置
|
||||||
|
|||||||
@ -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")
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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); // 关键配置
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user