sql 语句 初始化

This commit is contained in:
2025-03-27 16:03:56 +08:00
parent f9f84ff342
commit 86c475ecdf
5 changed files with 237 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
package com.czg.system.entity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.io.Serial;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 实体类。
*
* @author ww
* @since 2025-03-27
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("sql_script")
public class SqlScript implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@Id
private Long id;
/**
* 表名
*/
private String tableName;
/**
* 是否已执行
*/
private Integer isUp;
/**
* 该次执行描述
*/
private String message;
/**
* 执行的 sql语句
*/
private String sqls;
/**
* 操作日期 yyMMdd
*/
private String tradeDay;
/**
* 时间
*/
@Column(onInsertValue = "now()")
private LocalDateTime createTime;
}

View File

@@ -0,0 +1,14 @@
package com.czg.system.service;
import com.mybatisflex.core.service.IService;
import com.czg.system.entity.SqlScript;
/**
* 服务层。
*
* @author ww
* @since 2025-03-27
*/
public interface SqlScriptService extends IService<SqlScript> {
}